Arnold Moyaux
e1e8f33ca9
[FIX] purchase_stock: wrong supplier from orderpoint:
...
Use case to reproduce:
- Set "receive good in input and then stock" on the warehouse.
- Set two suppliers on a product. one from a partner (higher priority)
and one from a child partner (lower priority).
- Set the child partner as the vendor on the replenishment report.
- Order a replenishment for the product.
It happens due to an hack that use a field on `stock.move` in order
to temporaly store the partner among the moves until the RFQ.
But this field is a many2one on `res.partner` model and not on
`product.supplierinfo`
`_run_buy` receive a partner and still use `_select_seller` with the
partner in order to find the best pricelist. But it won't use the
specific supplier price list set on the orderpoint.
In order to fix, we don't store anymore the price list partner on the
intermediate move. In run_buy we receive the orderpoint if it's the
origin of the procurement. On the orderpoint the supplierinfo is set.
So we take it from there.
opw-3180945
closes odoo/odoo#119063
X-original-commit: 3cd5b9b7688ef7e6c6fa4fce1c0ad319fb577745
Signed-off-by: William Henrotin (whe) <whe@odoo.com >
2023-04-20 11:57:36 +02:00
..
2023-04-20 00:50:00 +02:00
2023-04-06 18:18:06 +02:00
2023-04-19 21:58:27 +02:00
2023-04-17 11:46:47 +02:00
2023-04-17 16:34:44 +02:00
2023-04-17 11:46:47 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-03-31 11:58:47 +02:00
2023-03-24 12:50:13 +01:00
2023-04-19 21:58:27 +02:00
2023-04-13 16:40:11 +02:00
2023-04-20 10:51:57 +02:00
2023-04-04 13:35:18 +02:00
2023-04-03 17:07:24 +02:00
2023-04-20 11:57:29 +02:00
2023-04-20 11:57:34 +02:00
2023-04-03 17:07:24 +02:00
2023-03-30 16:22:51 +02:00
2023-04-13 04:08:50 +02:00
2023-04-13 12:29:51 +02:00
2023-03-28 18:45:47 +02:00
2023-04-20 11:57:29 +02:00
2023-04-07 21:48:48 +02:00
2023-04-19 21:58:27 +02:00
2023-04-03 17:07:24 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-18 08:26:23 +02:00
2023-04-19 21:58:27 +02:00
2023-04-13 05:07:36 +02:00
2023-03-23 09:06:52 +01:00
2023-04-19 21:58:27 +02:00
2023-04-13 12:29:51 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-03-24 07:45:15 +01:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 17:31:49 +02:00
2023-04-18 11:33:46 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-03-22 00:53:57 +01:00
2023-04-19 11:01:13 +02:00
2023-04-19 21:58:27 +02:00
2023-04-13 16:39:48 +02:00
2023-04-14 09:39:50 +02:00
2023-04-13 16:39:48 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-14 11:49:15 +02:00
2023-04-13 15:25:46 +02:00
2023-04-19 21:58:27 +02:00
2023-04-14 10:45:09 +02:00
2023-03-27 12:47:20 +02:00
2023-04-13 16:40:38 +02:00
2023-04-20 11:57:29 +02:00
2023-04-13 16:39:48 +02:00
2023-04-11 19:48:40 +02:00
2023-04-12 16:33:11 +02:00
2023-04-13 16:40:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-18 11:33:40 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-06 10:40:49 +02:00
2023-04-06 10:40:49 +02:00
2023-03-30 15:09:36 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 22:47:49 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-03-30 16:23:10 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-20 11:57:29 +02:00
2023-04-13 09:31:31 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-11 18:49:32 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-18 19:29:12 +02:00
2023-04-13 16:39:48 +02:00
2023-04-13 16:39:48 +02:00
2023-04-12 16:33:11 +02:00
2023-04-17 16:34:44 +02:00
2023-04-17 16:34:44 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-03-28 16:44:20 +02:00
2023-04-12 16:33:11 +02:00
2023-03-24 12:50:13 +01:00
2023-04-12 08:05:44 +02:00
2023-03-31 15:52:18 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-03-27 20:06:54 +02:00
2023-04-19 21:58:27 +02:00
2023-04-20 11:57:31 +02:00
2023-04-13 16:39:48 +02:00
2023-04-19 21:58:28 +02:00
2023-04-19 21:58:27 +02:00
2023-04-20 11:57:29 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-03-24 12:50:13 +01:00
2023-04-20 10:51:51 +02:00
2023-04-05 09:42:37 +02:00
2023-04-19 21:58:27 +02:00
2023-04-18 09:24:31 +02:00
2023-04-19 21:58:27 +02:00
2023-04-17 15:19:06 +02:00
2023-04-20 11:57:29 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-17 14:14:24 +02:00
2023-04-20 11:57:29 +02:00
2023-04-20 11:57:29 +02:00
2023-04-20 11:57:29 +02:00
2023-04-13 16:40:11 +02:00
2023-04-13 16:40:11 +02:00
2023-04-13 16:40:11 +02:00
2023-04-12 15:42:27 +02:00
2023-04-20 11:57:29 +02:00
2023-04-06 16:12:24 +02:00
2023-04-20 11:57:29 +02:00
2023-04-19 21:58:27 +02:00
2023-04-04 13:35:06 +02:00
2023-04-13 04:08:08 +02:00
2023-04-12 15:42:27 +02:00
2023-04-13 16:40:11 +02:00
2023-04-19 21:58:27 +02:00
2023-04-14 10:44:53 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:28 +02:00
2023-04-11 09:21:00 +02:00
2023-04-06 17:20:44 +02:00
2023-04-18 08:26:23 +02:00
2023-04-19 21:58:27 +02:00
2023-04-06 17:20:44 +02:00
2023-04-19 21:58:27 +02:00
2023-04-13 05:07:55 +02:00
2023-04-19 21:58:27 +02:00
2023-04-20 11:57:29 +02:00
2023-04-13 15:26:41 +02:00
2023-04-03 17:07:24 +02:00
2023-04-05 17:31:55 +02:00
2023-04-20 11:57:36 +02:00
2023-04-19 21:58:27 +02:00
2023-04-18 09:24:33 +02:00
2023-04-17 11:47:01 +02:00
2023-04-20 11:57:29 +02:00
2023-03-30 10:53:48 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-05 15:11:06 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-20 11:57:29 +02:00
2023-04-03 17:07:24 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:45 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 11:01:13 +02:00
2023-04-13 16:40:19 +02:00
2023-03-30 07:54:04 +02:00
2023-04-17 14:14:10 +02:00
2023-04-19 21:58:27 +02:00
2023-04-17 09:27:58 +02:00
2023-04-07 17:46:42 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-20 11:57:29 +02:00
2023-03-24 12:50:13 +01:00
2023-04-14 17:38:04 +02:00
2023-04-13 04:08:11 +02:00
2023-04-14 17:38:04 +02:00
2023-04-18 15:38:49 +02:00
2023-04-13 16:39:48 +02:00
2023-04-04 20:08:37 +02:00
2023-04-13 17:57:56 +02:00
2023-04-11 15:17:20 +02:00
2023-04-04 16:02:12 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-17 09:28:03 +02:00
2023-04-19 11:00:59 +02:00
2023-04-20 11:57:29 +02:00
2023-04-20 11:57:29 +02:00
2023-04-20 11:57:29 +02:00
2023-04-20 11:57:29 +02:00
2023-04-20 11:57:29 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 11:01:13 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-19 21:58:27 +02:00
2023-04-20 11:57:29 +02:00
2023-04-18 11:33:46 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-20 11:57:29 +02:00
2023-04-19 21:58:27 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-20 11:57:29 +02:00
2023-04-05 12:50:43 +02:00
2023-04-05 12:50:43 +02:00
2023-04-19 21:58:27 +02:00
2023-04-06 17:20:44 +02:00
2023-04-20 11:57:29 +02:00
2023-04-03 17:07:24 +02:00
2023-04-18 11:33:46 +02:00
2023-04-20 11:57:29 +02:00
2023-04-18 11:33:46 +02:00
2023-04-19 21:58:27 +02:00
2023-04-17 08:24:47 +02:00
2023-04-17 08:24:47 +02:00
2023-04-19 21:58:27 +02:00
2023-04-18 15:38:54 +02:00
2023-04-12 14:02:35 +02:00
2023-04-20 11:57:29 +02:00
2023-04-20 11:57:29 +02:00
2023-04-05 12:50:43 +02:00
2023-04-19 21:58:27 +02:00
2023-03-24 11:08:32 +01:00
2023-04-05 12:50:43 +02:00
2023-03-27 20:06:54 +02:00
2023-04-13 16:40:11 +02:00
2023-04-19 21:58:27 +02:00
2023-04-04 13:35:12 +02:00
2023-04-20 11:57:29 +02:00
2023-04-20 11:57:29 +02:00
2023-03-22 17:03:28 +01:00
2023-04-13 04:08:35 +02:00
2023-04-20 11:57:29 +02:00