Mahdi Cheikh Rouhou (macr) 0e2a431fc9 [FIX] sale_product_configurator: edit product with variants sale line
Issue:
======
When you edit an already saved product line which has variants it will
throw an error.

Steps to reproduce the error:
=============================
1-create 2 products having at least one variant each and make them
storable
2-create a sale order and add only the first product and save the SO
3-edit the sale line of the first product with the second product and
try to save it

Origin of the problem:
======================
When retrieving combination we didn't check that the variants are
associated to the product.

Solution:
=========
Try to get the variants that are associated to the product , if there is
no such variants we apply get_first_possible_combination

opw-3423065
opw-3450266

closes odoo/odoo#132527

X-original-commit: 06d18005762377c5188c5537ba4d17c4efd66948
Signed-off-by: Mahdi Cheikh Rouhou (macr) <macr@odoo.com>
2023-08-21 19:57:31 +02:00
2023-08-21 14:15:28 +02:00
…
…
…
…
…

Build Status Tech Doc Help Nightly Builds

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

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%