32ea90106d1167374f5e9bb8683f2aaec6092720
savepoint do a flush that throw the current context and then recompute the stored field (with a random matching context from the transaction). In the case of qty_to_order, it will call qty_forecast and then _compute_quantities on product.product. Currently it will call _compute_quantities with a mix of self.env.context (from the transaction) and a context generated from the orderpoint (with deterministic data). But sometimes in the context took from the transaction it could remain some other key used by _compute_quantities (e.g. warehouse_id). Since qty_to_order doens't depends from context it should not use self.env.context and only use the deterministic context from the stock.orderpoint closes odoo/odoo#100150 X-original-commit: 79694a88978ebc1213d6ba0ac0dcc59640f16d04 Signed-off-by: William Henrotin (whe) <whe@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%