Nicolas Martinelli
5a262f7b79
[FIX] sale_stock: prevent incorrect computation of kits
...
- Activate UoM
- Create 3 products: AB, A & B
- Create a kit BoM for AB
- 1 units of A
- 1 kg of B
- Sell 1 unit of AB, confirm
The error "The unit of measure Units defined on the order line
doesn't belong to the same category...".
This happens because `_compute_quantity` is called on `stock.moves`
related to different products.
As a first step, we simply keep only the moves of the same product,
meaning that the `qty_available_today` and `free_qty_today` are not
supported for kits.
opw-2372676
closes odoo/odoo#61071
X-original-commit: 15368c6d1316d43b1591b88e4d5786d86403f8a1
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com >
2020-10-30 15:54:51 +00:00
..
2020-10-30 13:20:27 +00:00
2020-10-23 09:09:21 +00:00
2020-10-01 07:20:29 +00:00
2020-10-15 20:22:30 +00:00
2020-10-29 10:05:55 +00:00
2020-09-29 17:52:02 +00:00
2020-10-12 15:19:12 +00:00
2020-10-19 07:03:01 +00:00
2020-10-02 17:50:16 +00:00
2020-09-29 17:52:02 +00:00
2020-09-29 17:52:02 +00:00
2020-10-14 10:29:10 +00:00
2020-09-30 16:40:59 +00:00
2020-09-29 17:52:46 +00:00
2020-10-19 07:03:01 +00:00
2020-10-07 13:25:32 +00:00
2020-10-27 12:54:49 +00:00
2020-10-12 16:18:49 +00:00
2020-10-20 10:03:58 +00:00
2020-10-22 17:23:13 +00:00
2020-10-28 11:38:42 +00:00
2020-09-21 06:25:29 +00:00
2020-10-06 14:30:00 +00:00
2020-10-27 18:42:46 +00:00
2020-10-06 07:51:59 +00:00
2020-10-28 10:10:11 +00:00
2020-10-27 11:11:54 +00:00
2020-10-29 19:23:41 +00:00
2020-09-29 17:52:02 +00:00
2020-09-28 11:32:27 +00:00
2020-10-20 10:43:36 +00:00
2020-10-29 19:23:41 +00:00
2020-10-29 10:05:55 +00:00
2020-10-19 07:03:01 +00:00
2020-10-08 11:46:20 +00:00
2020-10-27 16:23:20 +00:00
2020-10-06 11:09:43 +00:00
2020-09-29 17:52:02 +00:00
2020-10-28 14:56:20 +00:00
2020-10-15 19:54:53 +00:00
2020-10-16 12:56:52 +00:00
2020-10-08 13:12:59 +00:00
2020-09-29 17:52:02 +00:00
2020-10-15 14:18:30 +00:00
2020-10-15 19:54:53 +00:00
2020-10-16 12:56:52 +00:00
2020-10-20 13:15:34 +00:00
2020-10-23 13:19:45 +00:00
2020-10-19 07:03:01 +00:00
2020-09-29 17:52:02 +00:00
2020-10-28 14:55:47 +00:00
2020-10-23 17:20:09 +00:00
2020-10-22 16:17:26 +00:00
2020-10-30 13:20:49 +00:00
2020-10-29 19:23:41 +00:00
2020-10-23 17:20:09 +00:00
2020-10-22 07:27:52 +00:00
2020-10-22 16:17:26 +00:00
2020-10-23 07:17:29 +00:00
2020-09-24 13:55:22 +00:00
2020-10-29 12:58:10 +00:00
2020-10-06 09:52:17 +00:00
2020-10-22 16:17:26 +00:00
2020-10-19 15:21:13 +00:00
2020-10-27 11:15:26 +00:00
2020-10-21 09:19:07 +00:00
2020-10-23 16:03:04 +00:00
2020-10-22 16:17:26 +00:00
2020-10-22 16:17:26 +00:00
2020-10-23 07:17:29 +00:00
2020-10-22 16:17:26 +00:00
2020-10-29 19:23:41 +00:00
2020-09-29 17:52:02 +00:00
2020-10-29 19:23:41 +00:00
2020-09-30 09:19:16 +00:00
2020-09-29 17:52:02 +00:00
2020-10-22 15:54:25 +00:00
2020-09-29 17:52:02 +00:00
2020-09-24 10:29:44 +00:00
2020-09-29 17:52:02 +00:00
2020-10-20 12:29:29 +00:00
2020-10-13 07:31:58 +00:00
2020-10-29 19:23:41 +00:00
2020-10-26 11:48:02 +00:00
2020-10-07 11:17:38 +00:00
2020-09-29 17:52:02 +00:00
2020-10-20 08:41:50 +00:00
2020-09-22 14:16:37 +00:00
2020-10-29 19:23:41 +00:00
2020-10-27 22:30:36 +00:00
2020-10-12 15:19:12 +00:00
2020-10-05 09:36:34 +00:00
2020-10-26 13:26:21 +00:00
2020-10-13 13:59:31 +00:00
2020-10-28 17:01:03 +00:00
2020-10-22 13:06:15 +00:00
2020-10-16 12:56:52 +00:00
2020-10-29 12:39:09 +00:00
2020-10-22 14:21:22 +00:00
2020-09-29 04:25:44 +00:00
2020-10-15 14:27:14 +00:00
2020-09-29 17:52:02 +00:00
2020-10-29 19:23:41 +00:00
2020-10-23 07:17:53 +00:00
2020-09-29 17:52:02 +00:00
2020-10-29 19:23:41 +00:00
2020-10-28 16:37:06 +00:00
2020-10-05 09:36:34 +00:00
2020-10-19 07:03:01 +00:00
2020-09-28 10:12:22 +00:00
2020-10-29 19:23:41 +00:00
2020-10-29 11:42:31 +00:00
2020-10-30 08:45:10 +00:00
2020-10-21 15:43:32 +00:00
2020-10-21 15:43:32 +00:00
2020-09-24 15:51:19 +00:00
2020-10-06 11:10:54 +00:00
2020-10-29 19:23:41 +00:00
2020-10-20 10:18:57 +00:00
2020-10-15 12:02:47 +00:00
2020-09-28 12:45:08 +00:00
2020-10-06 11:21:38 +00:00
2020-10-16 12:56:52 +00:00
2020-10-09 07:35:59 +00:00
2020-10-30 15:54:51 +00:00
2020-10-29 19:23:41 +00:00
2020-10-06 17:38:00 +00:00
2020-10-14 13:33:49 +00:00
2020-10-05 09:36:34 +00:00
2020-10-29 19:23:41 +00:00
2020-10-26 11:48:02 +00:00
2020-10-09 11:58:53 +00:00
2020-10-21 10:46:33 +00:00
2020-09-30 17:15:03 +00:00
2020-10-29 19:23:41 +00:00
2020-10-05 09:36:34 +00:00
2020-10-28 10:51:51 +00:00
2020-10-29 13:12:34 +00:00
2020-10-20 12:29:28 +00:00
2020-10-20 12:29:28 +00:00
2020-10-27 15:29:28 +00:00
2020-10-05 09:36:34 +00:00
2020-09-29 17:52:02 +00:00
2020-10-29 19:23:41 +00:00
2020-10-29 12:27:13 +00:00
2020-10-14 10:29:09 +00:00
2020-10-13 07:39:01 +00:00
2020-10-27 15:29:28 +00:00
2020-10-27 15:29:23 +00:00
2020-10-16 12:56:52 +00:00
2020-10-09 08:21:23 +00:00
2020-09-29 17:52:02 +00:00
2020-10-29 19:23:41 +00:00
2020-10-16 12:56:52 +00:00
2020-09-29 17:52:02 +00:00
2020-10-06 08:51:09 +00:00
2020-10-21 10:18:36 +00:00
2020-10-16 12:56:52 +00:00
2020-10-02 07:26:27 +00:00
2020-10-29 19:23:41 +00:00
2020-10-21 13:50:28 +00:00
2020-10-29 19:23:41 +00:00
2020-10-02 08:52:39 +00:00
2020-10-07 10:21:51 +00:00
2020-10-20 11:53:16 +00:00
2020-10-23 15:20:46 +00:00
2020-10-16 12:56:52 +00:00
2020-10-14 10:29:11 +00:00
2020-10-30 08:08:03 +00:00
2020-09-29 17:52:02 +00:00
2020-10-16 12:56:52 +00:00
2020-10-22 18:00:23 +00:00
2020-10-14 09:48:04 +00:00
2020-10-16 12:56:52 +00:00
2020-09-29 17:52:02 +00:00
2020-10-28 12:09:04 +00:00
2020-10-22 13:30:03 +00:00
2020-10-29 19:23:41 +00:00
2020-09-29 17:52:02 +00:00
2020-10-19 10:58:39 +00:00
2020-10-05 09:36:34 +00:00
2020-10-14 10:29:11 +00:00