Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] purchase_stock: vendor reference
- Create a product A MTO, Buy Add a supplier S1 and set a specific reference - Create a product B MTO, Buy Add a supplier S2 and set a specific reference - Create a SO with A & B, confirm - 2 RFQ are created The first RFQ is created with the correct reference, but not the second one. This is because `display_name` depends on context keys: it is computed once for both products with `partner_id` set as `S1`, while it should be recomputed for product B with `partner_id` set as `S2`. In order to avoid this, we use `with_prefetch()` to avoid reusing the prefetched value. opw-2176638 closes odoo#44487 Signed-off-by: Nicolas Martinelli (nim) <[email protected]>
- Loading branch information