71d86afb5819c514ce00bee4857036e8ff206854
When a language is deactivated, it may still be referred to in a default value. A ir.value is created at the database setup to specify the default language. If a user deactivate the default language but not the ir.value, the creation of a res.partner would fail as trying to set an unknown value to a selection field. This commit removes the default value when deactivating the linked language. The patch is minimal for the bug. A more generic solution would be to verify the ir.value when calling the default_get method. This is however a risk of performance degradation (e.g. during a csv import) for a rare scenario. The dynamic selection scenario is probably on relevant to res.lang. A similar problem can occur with many2one fields but is difficult to fix without performance degradation. Closes #16009 Fixes #15979 Fixes #3854
…
…
…
…
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/10.0/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%