diff options
| author | Denis Ledoux <dle@odoo.com> | 2015-04-09 17:19:09 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-04-09 17:23:42 +0200 |
| commit | 972d966554e57274edb5a3f63df984b8880789a9 (patch) | |
| tree | 5fbd047cf15a1a5ff3858ff458786822d8602833 /addons/analytic_user_function/analytic_user_function_view.xml | |
| parent | 6f35b0b3fa707f3763a8d5cd918cfbc6f4f37ce0 (diff) | |
[FIX] account: ACLs contracts button in partner form
contracts_count function field
&
journal_item_count function field
used for the "contracts" and "journal items" buttons
in the partner view are computed by the same
method.
But, this is possible that you have access to
one without having access to the other.
e.g., Project users not being salesman nor accountant
must have access to the contract counts,
but not to the journal items.
Besides, these buttons are added to the partner form
by two separated views, applied to analytic accounting group
& accountant group, respectively.
We therefore avoid to compute the journal items count when
not needed, when not loaded in the partner view.
We therefore prevent the access right issue, and provide
a performance improvment at the same time. Yay.
opw-632454
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions
