summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2019-07-30 12:59:20 +0000
committerjem-odoo <jem@openerp.com>2019-07-30 12:59:20 +0000
commited4d14a31b3c96a9911e6f254a5849caca21e1a1 (patch)
tree022c10b6275eba6621225139c95a18f80a645f61 /addons
parent1631c9dbc92b258b8cee5d0aafbd5bdb1d5ee1df (diff)
[FIX] account: analytic lines access with timesheet manager
When validating a invoice, the billing user should have access (read) for all analytic lines. A problem appears when timesheet is installed, since there is a mismatch with ir.rule (a timesheet is an analytic line with a project set). The rule "account.analytic.line.billing.user" already exists for this problem, but should be extended to work in any case. To reproduce: - set a user as timesheet manager and billing user - try to validate an invoice (or post an expense) - got an access error with "account.analytic.line.timesheet.manager" opw-2041615 closes odoo/odoo#35297 Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/account/security/account_security.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/security/account_security.xml b/addons/account/security/account_security.xml
index 48514f664ab..9e06e5a31c1 100644
--- a/addons/account/security/account_security.xml
+++ b/addons/account/security/account_security.xml
@@ -72,7 +72,7 @@
<field name="perm_create" eval="1"/>
<field name="perm_write" eval="1"/>
<field name="perm_unlink" eval="1"/>
- <field name="perm_read" eval="0"/>
+ <field name="perm_read" eval="1"/>
</record>
</data>