3b7fb9934d795ff6971727089e6bbe0a77c06476
Let's assume the following situation: we have a one2many field displayed as a list in a form view. The list isn't editable, so when a subrecord is clicked, it is opened in a form view in a dialog. In this form view, there is a relational field X that is not in the list. In the main form view, there is a field with an onchange. When its value changes, the onchange returns a new value for the one2many: a command 5 (delete all), and a command 0 (create) with a dict of values containing a value for X. However, as X is unknown as long as no subrecord has been open in the dialog, the value for X can't be processed (we don't know the type of X, so we don't know how to process the value). Before this rev., when this happened, we discarded the value of X. This caused an issue for example in the Quotation form view (with website_quote installed): - create a new Quotation - set PartnerShip Contract as quotation template -> the onchange returns two 'create' commands for the order_line one2many - click on one of the two subrecords in the one2many -> error. This rev. ensures to keep changes on unknown fields. We keep them unprocessed, and once the form view is opened, we process and apply them.
…
…
…
…
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.
If you are a developer you may type the following command at your terminal:
wget -O- https://raw.githubusercontent.com/odoo/odoo/master/setup/setup_dev.py | python
Then follow the developer tutorials
For Odoo employees
To add the odoo-dev remote use this command:
$ ./setup/setup_dev.py setup_git_dev
To fetch odoo merge pull requests refs use this command:
$ ./setup/setup_dev.py setup_git_review
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%