15bfff301c4734efd66c45d83fe7fc8e3d2dc83d
Consider models A and B such that B inherits from A (with _inherits), and a form view of A with a one2many field that inverses the many2one "delegate" field from B to A. When adding a new record in the one2many, onchange() crashes while trying to update the cache of an empty parent record. The situation is caused by how onchange() initializes the new record of model B, and the fact that the form provides a value for the delegate field. The new record is actually initialized with an empty value for the delegate field, which causes the code to crash. The fix simply consists in updating the parent record only if is nonempty. opw-3744514 closes odoo/odoo#154735 Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com> Co-authored-by: Lucas Perais <lpe@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%