diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-07-16 13:22:12 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-07-17 10:25:54 +0000 |
| commit | 2e91d26194f71c70bfc0d9ca4fd3374deda9a768 (patch) | |
| tree | 2cf1d745c924aa917e93359cb9c24541233a4b01 /doc/reference/javascript_reference.rst | |
| parent | e2893ce3863ddf858ebee00096e06bbf010ddbc2 (diff) | |
[FIX] project_timesheet_holidays: Allow to create a company
It is currently impossible to create a company.
The reason being that the newly created company is
not yet in context `allowed_company_ids`.
Therefore, every consequent access to a record protected with
a multi company `ir.rule` fails for that company.
Here, the module automatically creates a project in that company
and later read that project to check a constraint.
The read raises an AccessError, hence the company is not created.
On the other hand, a user without project creation access rights
but erp manager could want to create a company. It should work
in that case too, as the project creation is transparent to the
user and the project is archived.
closes odoo/odoo#34920
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
