3bb35d68b6b8ef301225aa927b9c90e182149f58
The set_value() function of x2many fields is asynchronous. When a record is loaded, the invisibility changers (IC) are evaluated once set_value() has been performed on every fields. As set_value() didn't return its deferred, the IC where evaluated with wrong values. It produced in particular the following bug: Go to Customers > Agrolait (the Contacts tab is displayed), switch to next record, which is the first contact of Agrolait. The Contacts tab is still displayed, whereas it should not (the invisible condition being is_company == false and child_ids == [], i.e. there is no contact). Also call this._super() in set_value() of AbstractManyField instead of duplicating the function of its parent.
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, 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/odoo.py | python
Then follow the developer tutorials
For Odoo employees
To add the odoo-dev remote use this command:
$ ./odoo.py setup_git_dev
To fetch odoo merge pull requests refs use this command:
$ ./odoo.py setup_git_review
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%