diff options
| author | Simon Lejeune <sle@openerp.com> | 2019-08-28 11:07:36 +0000 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2019-09-03 15:03:45 +0000 |
| commit | 504b5fe5a9613bb836bd865475c4b17713b78864 (patch) | |
| tree | ecb7241cb955006b84e563d64e62a1ec248ec021 /odoo/addons/test_new_api/tests/__init__.py | |
| parent | f6ab2198d7aee40f3b32c64379c9e973bcf85598 (diff) | |
[ADD] fields, models: company consistency check
Assigning `check_company=True` to a field will
- set a default domain filtering the companies
- allow to call `_check_company` on the records to ensure the domain is
respected
Setting `_check_company_auto = True` on a model will ensure
`_check_company` is called at create and write, enforcing the multi
company domain.
Joint work with Raphael Collet <rco@odoo.com>
task-1985992
Diffstat (limited to 'odoo/addons/test_new_api/tests/__init__.py')
| -rw-r--r-- | odoo/addons/test_new_api/tests/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/addons/test_new_api/tests/__init__.py b/odoo/addons/test_new_api/tests/__init__.py index eb3f8a53805..9bc1adeaeed 100644 --- a/odoo/addons/test_new_api/tests/__init__.py +++ b/odoo/addons/test_new_api/tests/__init__.py @@ -8,3 +8,4 @@ from . import test_qweb_float from . import test_ui from . import test_domain from . import test_schema +from . import test_company_checks |
