Arnold Moyaux
100b252b7a
[FIX] sale_stock: partial downpayment doesn't create COGS
...
Usecase to reproduce:
- Product wiht a real time valuation
- Product with invoice on delivered quantity
- Create a SO for 5 units and 1000$ each
- Do a full downpayment of 100% of quotation
- Deliver 3 out of 5 units and create a backorder
- Create an invoice
- Validate the invoice
Expected behavior:
The cogs entries are there
Current behavior:
No cogs
It only happens with partial downpayment. When the downpayment amount
equals the quotation amount. An invoice is created instead of a credit
note and the process works correctly.
It happens because it creates a credit note with a negative quantity to
invoice so the system doesn't understand it has to create the cogs at
that point.
closes odoo/odoo#161768
X-original-commit: d2a365c2ee9af6a9272d83183fc75fa6914bc560
Signed-off-by: Adrien Widart (awt) <awt@odoo.com >
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com >
2024-04-24 14:48:56 +00:00
..
2024-04-24 11:16:06 +00:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-07 00:08:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-24 09:28:15 +00:00
2024-04-24 11:16:06 +00:00
2024-04-21 00:08:43 +02:00
2024-04-22 11:51:22 +00:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-23 15:32:46 +00:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 14:12:46 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-22 13:39:50 +00:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-24 11:16:05 +00:00
2024-04-11 08:12:56 +00:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-24 09:28:15 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-24 11:16:03 +00:00
2024-04-21 00:08:43 +02:00
2024-04-23 09:20:44 +00:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-16 14:12:53 +00:00
2024-04-09 07:22:43 +00:00
2024-04-09 19:35:41 +00:00
2024-04-18 16:38:24 +00:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-22 11:51:30 +00:00
2024-04-21 00:08:43 +02:00
2024-04-24 09:28:15 +00:00
2024-04-11 16:43:19 +00:00
2024-04-22 11:51:27 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-04-18 11:18:46 +00:00
2024-04-09 23:14:46 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 13:38:50 +00:00
2024-04-20 01:36:02 +00:00
2024-04-24 07:55:44 +00:00
2024-04-19 14:40:10 +00:00
2024-04-11 15:02:49 +00:00
2024-04-16 07:02:58 +00:00
2024-04-22 13:39:47 +00:00
2024-04-11 15:02:48 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-04-21 18:14:37 +00:00
2024-04-14 09:28:07 +00:00
2024-04-10 20:56:59 +00:00
2024-04-08 11:13:51 +00:00
2024-04-15 09:10:18 +00:00
2024-04-17 22:47:07 +00:00
2024-04-20 17:39:55 +00:00
2024-04-22 08:27:09 +00:00
2024-04-14 21:02:42 +00:00
2024-04-23 17:09:48 +00:00
2024-04-09 15:06:45 +00:00
2024-04-23 17:09:48 +00:00
2024-04-10 11:45:53 +00:00
2024-04-23 17:09:48 +00:00
2024-04-04 08:18:55 +00:00
2024-04-24 07:55:44 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-04-11 08:12:51 +00:00
2024-04-22 11:51:23 +00:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-22 11:51:24 +00:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-22 17:04:39 +00:00
2024-04-24 09:28:16 +00:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-09 11:19:48 +00:00
2024-04-21 00:08:43 +02:00
2024-04-17 13:44:45 +00:00
2024-04-17 22:47:13 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-17 22:47:13 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-17 22:47:13 +00:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-23 15:32:54 +00:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-24 14:48:56 +00:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-23 23:18:05 +00:00
2024-04-23 15:32:47 +00:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-07 00:08:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-22 17:04:38 +00:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-16 16:18:44 +00:00
2024-04-21 00:08:43 +02:00
2024-04-23 09:20:47 +00:00
2024-04-22 08:27:06 +00:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-22 08:27:10 +00:00
2024-04-22 11:51:22 +00:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-18 07:28:30 +00:00
2024-04-16 10:32:32 +00:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-07 00:08:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-24 09:28:13 +00:00
2024-04-21 00:08:43 +02:00
2024-04-05 12:18:14 +00:00
2024-04-24 14:48:56 +00:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 09:42:54 +00:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-07 00:08:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-22 13:39:46 +00:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-24 07:55:43 +00:00
2024-04-17 22:47:19 +00:00
2024-04-17 22:47:19 +00:00
2024-04-17 22:47:19 +00:00
2024-04-17 22:47:19 +00:00
2024-04-07 10:03:48 +00:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-23 15:32:56 +00:00
2024-04-24 06:23:02 +00:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-23 17:09:50 +00:00
2024-04-19 23:49:48 +00:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-07 00:08:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-22 08:27:05 +00:00
2024-04-23 15:32:52 +00:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-22 08:27:11 +00:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-16 14:12:52 +00:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00
2024-04-21 00:08:43 +02:00
2024-04-14 00:09:33 +02:00
2024-04-21 00:08:43 +02:00