be278780f75ca42b4f5586bc4e446ad1ae0cfbd4
Consider a form view with a one2many field, which has no form subview. Also the form view of the comodel (the one2many field's lines) contains the inverse many2one field of the one2many field. When adding a new line on some existing record, the form view shows the many2one field as empty, instead of being the main record. Explanation: the form view of the line invokes onchange() with the main record's values (dict) as the value of the many2one field. Inside onchange(), the field is actually set to a new record corresponding to the main record. Alas, when that value is sent back to the form, the new record is serialized as False. Solution: let onchange() serialize the new record as its origin record instead. closes odoo/odoo#114648 X-original-commit: d137ea4915da8d46909fcb082b5a88fd347874a4 Signed-off-by: Raphael Collet <rco@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%