sofiagvaladze
aa8bfeca0c
[IMP] sale_expense_margin: set purchase_price on sale.order.line for expense
...
Purpose: When re-invoicing the expense on the SO, the cost (purchase_price)
is not correctly set. For expenses with zero product it is set to zero,
and for the expenses with price on it, it is set to unit_price of the product.
As a result, the margin is calculated incorrectly on SO.
It should be set to the untaxed_amount of the expense in case of zero
product, or untaxed_amount of the product in case of a product with
price defined on it.
task - 2867723
closes odoo/odoo#96981
Signed-off-by: Kevin Baptiste <kba@odoo.com >
2022-08-10 16:08:06 +02:00
..
2022-08-10 03:11:53 +02:00
2022-08-03 13:44:49 +02:00
2022-08-10 03:11:53 +02:00
2022-08-08 23:45:42 +02:00
2022-08-10 03:11:53 +02:00
2022-08-02 00:26:53 +02:00
2022-07-26 13:24:57 +02:00
2022-08-03 13:44:49 +02:00
2022-08-03 13:44:49 +02:00
2022-08-10 03:11:53 +02:00
2022-08-08 21:03:13 +02:00
2022-07-22 16:21:45 +02:00
2022-08-08 14:17:11 +02:00
2022-08-10 13:23:56 +02:00
2022-08-10 14:43:41 +02:00
2022-08-10 14:43:41 +02:00
2022-08-09 09:00:20 +02:00
2022-08-08 14:16:49 +02:00
2022-08-02 00:26:53 +02:00
2022-08-02 18:43:50 +02:00
2022-08-04 15:15:48 +02:00
2022-08-02 00:26:53 +02:00
2022-08-03 13:44:49 +02:00
2022-08-02 00:26:53 +02:00
2022-08-04 09:14:10 +02:00
2022-08-10 03:11:53 +02:00
2022-08-10 14:43:23 +02:00
2022-08-10 03:11:53 +02:00
2022-08-10 14:43:02 +02:00
2022-08-10 14:43:02 +02:00
2022-08-09 10:15:55 +02:00
2022-08-10 14:43:41 +02:00
2022-08-02 00:26:53 +02:00
2022-08-04 13:54:14 +02:00
2022-08-10 03:11:53 +02:00
2022-08-02 00:26:53 +02:00
2022-08-10 14:43:41 +02:00
2022-08-08 10:50:48 +02:00
2022-08-08 21:02:15 +02:00
2022-08-04 13:54:12 +02:00
2022-08-08 10:50:23 +02:00
2022-08-02 00:26:53 +02:00
2022-08-02 00:26:53 +02:00
2022-07-27 16:34:10 +02:00
2022-08-10 14:43:41 +02:00
2022-08-03 13:44:49 +02:00
2022-08-10 03:11:53 +02:00
2022-08-10 03:11:53 +02:00
2022-08-08 21:02:27 +02:00
2022-08-10 03:11:53 +02:00
2022-08-10 03:11:53 +02:00
2022-08-10 03:11:53 +02:00
2022-08-10 03:11:53 +02:00
2022-08-10 03:11:53 +02:00
2022-08-03 13:44:49 +02:00
2022-08-08 23:45:48 +02:00
2022-08-08 14:17:14 +02:00
2022-08-03 13:44:49 +02:00
2022-07-31 11:17:00 +02:00
2022-08-03 13:44:49 +02:00
2022-08-10 03:11:53 +02:00
2022-08-02 00:26:53 +02:00
2022-08-03 13:44:49 +02:00
2022-08-09 11:31:54 +02:00
2022-08-08 22:16:17 +02:00
2022-08-03 13:44:49 +02:00
2022-08-10 03:11:53 +02:00
2022-08-09 04:49:56 +02:00
2022-08-02 00:26:53 +02:00
2022-07-22 08:01:39 +02:00
2022-08-03 13:44:49 +02:00
2022-08-10 03:11:53 +02:00
2022-07-27 07:59:50 +02:00
2022-08-10 03:11:53 +02:00
2022-08-10 14:43:52 +02:00
2022-08-02 00:26:53 +02:00
2022-08-04 13:54:14 +02:00
2022-08-09 11:32:08 +02:00
2022-08-02 00:26:53 +02:00
2022-08-09 11:32:07 +02:00
2022-08-02 00:26:53 +02:00
2022-07-27 19:20:15 +02:00
2022-08-09 10:15:55 +02:00
2022-08-08 12:33:03 +02:00
2022-08-03 13:44:49 +02:00
2022-08-03 15:09:57 +02:00
2022-08-03 15:09:57 +02:00
2022-08-10 14:43:41 +02:00
2022-08-02 10:32:00 +02:00
2022-08-02 00:26:53 +02:00
2022-07-26 13:24:57 +02:00
2022-07-26 13:24:57 +02:00
2022-08-03 15:10:10 +02:00
2022-07-26 13:24:57 +02:00
2022-08-02 00:26:53 +02:00
2022-07-26 13:24:57 +02:00
2022-07-26 13:24:57 +02:00
2022-07-26 13:24:57 +02:00
2022-07-26 15:48:53 +02:00
2022-08-10 13:23:53 +02:00
2022-08-02 11:48:46 +02:00
2022-08-02 00:26:53 +02:00
2022-08-08 10:50:14 +02:00
2022-07-29 01:51:13 +02:00
2022-08-02 00:26:53 +02:00
2022-08-08 10:50:14 +02:00
2022-08-08 10:50:14 +02:00
2022-08-02 00:26:53 +02:00
2022-08-08 10:50:14 +02:00
2022-08-08 21:03:16 +02:00
2022-08-10 03:11:53 +02:00
2022-08-03 13:44:49 +02:00
2022-08-04 13:54:12 +02:00
2022-08-09 02:24:57 +02:00
2022-08-10 03:11:53 +02:00
2022-08-02 00:26:53 +02:00
2022-08-08 10:50:22 +02:00
2022-08-10 14:43:12 +02:00
2022-08-04 09:14:10 +02:00
2022-08-08 23:45:51 +02:00
2022-08-10 14:43:41 +02:00
2022-08-04 13:54:14 +02:00
2022-07-27 04:53:13 +02:00
2022-08-10 16:08:06 +02:00
2022-08-10 03:11:53 +02:00
2022-08-10 16:08:06 +02:00
2022-08-02 10:31:54 +02:00
2022-08-08 12:33:04 +02:00
2022-08-03 13:44:49 +02:00
2022-08-08 23:45:39 +02:00
2022-08-02 00:26:53 +02:00
2022-08-10 03:11:53 +02:00
2022-08-10 03:11:53 +02:00
2022-08-10 03:11:53 +02:00
2022-08-08 14:16:48 +02:00
2022-08-02 00:26:53 +02:00
2022-08-10 14:43:41 +02:00
2022-08-02 00:26:53 +02:00
2022-08-10 03:11:53 +02:00
2022-08-03 13:44:49 +02:00
2022-08-02 10:32:07 +02:00
2022-08-10 03:11:53 +02:00
2022-08-02 00:26:53 +02:00
2022-08-02 00:26:53 +02:00
2022-08-10 09:21:28 +02:00
2022-08-03 13:44:49 +02:00
2022-07-27 02:18:15 +02:00
2022-08-03 13:44:49 +02:00
2022-08-10 14:43:41 +02:00
2022-08-10 14:43:41 +02:00
2022-07-27 04:53:13 +02:00
2022-08-04 09:14:10 +02:00
2022-08-09 11:31:59 +02:00
2022-07-22 16:21:45 +02:00
2022-08-08 12:33:03 +02:00
2022-08-04 13:54:14 +02:00
2022-08-10 14:43:55 +02:00
2022-08-10 14:44:02 +02:00
2022-08-08 12:33:11 +02:00
2022-08-09 11:32:14 +02:00
2022-08-10 03:11:53 +02:00
2022-07-28 11:54:24 +02:00
2022-08-04 15:15:48 +02:00
2022-08-08 12:33:11 +02:00
2022-08-04 15:15:48 +02:00
2022-08-09 11:32:17 +02:00
2022-08-04 11:45:31 +02:00
2022-08-10 14:43:41 +02:00
2022-07-28 03:51:04 +02:00
2022-08-04 11:45:31 +02:00
2022-08-08 22:16:28 +02:00
2022-08-10 04:27:42 +02:00
2022-08-01 19:37:17 +02:00
2022-08-10 03:11:53 +02:00
2022-08-02 00:26:53 +02:00
2022-08-01 10:55:25 +02:00
2022-08-10 14:43:41 +02:00
2022-08-04 11:45:31 +02:00
2022-08-03 15:10:14 +02:00
2022-08-09 10:15:55 +02:00