diff options
| author | Toufik Benjaa <tbe@odoo.com> | 2018-04-11 11:19:19 +0200 |
|---|---|---|
| committer | Toufik Benjaa <tbe@odoo.com> | 2018-04-11 12:39:48 +0200 |
| commit | fc6d98df2427153050dd4386431cc24a023e2e2d (patch) | |
| tree | 37f96202aa3a7b321f48634593740a49d09ad380 /addons/web/static/lib/bootstrap-datetimepicker/src/js | |
| parent | 2a09289e32058fb6b16cab65ae1b962fbbd76b8a (diff) | |
[FIX] account_asset: Allow accountant to validate invoices
- When validating an invoice, the create method of the model account.asset.asset is called.
Accountant have the access rights to create account.asset.asset object, but they do not have the rights to write on them.
The issue here is that the create of the account.asset.asset is done, but right after a right is done in the same object, which trigger an AccessError.
To fix this issue, we make the write using the admin env. This doesn't cause security issues since the user needs the create accesses.
OPW-1832797
Diffstat (limited to 'addons/web/static/lib/bootstrap-datetimepicker/src/js')
0 files changed, 0 insertions, 0 deletions
