23ff4fba9b206f6aed7cf4dd5fbf269bcd4ecc74
If we had a product as an option to multiple products and we want to stop selling it we'll set sale_ok to `False`. We won't be able to add it to the sale lines but it will keep showing up in the products options popup and we'll be able to add it to the order that way. It must be prevented to keep a coherent behavior. Description of the issue/feature this PR addresses: - Add a product as optional product A to several products (B, C, D). - Set that product to `sale_ok` = False - Create a sale order Current behavior before PR: - Product A can't be selected from the order lines (👍 ) - Add either product B, C or D and the optional products popup shows up allowing us to add Product A to the sale lines. Desired behavior after PR is merged: When a product is discarded from sale, we should not be able to add it as an option. Removing it as option in the affected product is not a proper workflow, as the product could be simply temporarily out of sale due to multiple commercial reasons. cc @Tecnativa TT36178 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#90708 Forward-port-of: odoo/odoo#90593 Signed-off-by: Victor Feyens (vfe) <vfe@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%