6387614dca1b001d0d4baddaf969505e52576dec
- Install stock module - Activate multi-company and variants - Create a second company - Create a product with 2 variants - Create a picking with the product for both companies - Add an attribute on the product with 2 values - Save An AccessError is raised on `stock.move`. It arises because the field `product_qty` on `stock.move` must be recomputed but is on a record in a different company. The `try` / `except` clause doesn't protect against the recomputation. Indeed, what happens is: - try to unlink in batch => AccessError due to recomputation - try to unlink individually => AccessError due to recomputation - try to write individually => the field couldn't be recomputed before (flagged as dirty), so try again to recompute => AccessError We perform the operation as sudo, and take care of checking the access rights beforehand. opw-2009450 closes odoo/odoo#34369 Signed-off-by: Nicolas Martinelli (nim) <nim@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, Purchase Management, ...
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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%