706f9286f4bbca97ef9159b2ce009de829275e86
Problem case : - Create a product with MTO and Buy route activated. - Create a Sale Order containing this product. - Confirm the Sale Order, this will generate a Purchase Order for this product. - Go to Alternatives -> Create Alternative -> Select another vendor & select "Copy products". The alternative PO won't be linked to the Sale Order, as this link is done through the relation `created_purchase_line_id` <-> `move_dest_ids` respectively on the `stock.move` and the `purchase.order.line`. The only way to enable multiple Purchase Order to be linked to a single move is to extend the number of `created_purchase_line_id` linked to a move, hence changing it to a Many2Many relation. Then, when an alternative PO is created, we link the original PO lines `move_dest_ids` to the newly created PO lines, which correctly links the SO and the alternative PO. closes odoo/odoo#106411 Related: odoo/upgrade#4116 Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%