-
- Downloads
[FIX] product, sale, stock: remove deleted product from demo data
Current behaviour:
When installing Sales, then PoS, we get an error when loading the modules.
Expected behaviour:
No error should be present when installing PoS just after the Sales app.
Steps to reproduce:
(With demo data)
- Install Sales
- Install PoS
- Get Error
Reason for the problem:
When installing Sales, there is the Product dependency that creates a product variant,
named product_product_4d.
Then in the Sales demo data there is the addition of an "exclude_for"
record (basically an exclusivity rule for variant attributes, for ex: A AND B cannot be together).
In our case it happens to be the attributes which product_product_4d was based of. Therefor the ORM
deletes said record (from the database).
Then when installing PoS, it installs Stock as a dependency, which demo data references product_product_4d,
which is not present anymore in the database.
Fix:
Remove the creation of product_product_4d and all the records that reference it.
Affected versions:
- 14.0 (separate PR)
- 15.0
- saas-15.2
- saas-15.3
- 16.0
- master
opw-2999180
closes odoo/odoo#104132
X-original-commit: f2b8b91fb05e0bc0efdf0293b608a96345774919
Signed-off-by:
Piryns Victor (pivi) <pivi@odoo.com>
Showing
- addons/l10n_in/demo/product_demo.xml 0 additions, 4 deletionsaddons/l10n_in/demo/product_demo.xml
- addons/product/data/product_demo.xml 0 additions, 10 deletionsaddons/product/data/product_demo.xml
- addons/sale/data/product_demo.xml 0 additions, 4 deletionsaddons/sale/data/product_demo.xml
- addons/stock/data/stock_demo.xml 0 additions, 6 deletionsaddons/stock/data/stock_demo.xml
Loading
Please register or sign in to comment