From 937d929b74163c4061e75ab28d439accf0e831da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Maes?= Date: Wed, 22 May 2019 13:53:43 +0000 Subject: [PATCH] [FIX] sale_timesheet: allow billing user in journal entries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since a timesheet is an analytic line, access rights are mixed for timesheet manager and billing user, when hr_timesheet is installed. Group mecanism use logical 'OR' between none global rules, so timesheet access restrict the one of billing user. The ir.rule of sale_timesheet tries to restore the access of billing user (which can thus modified timesheet. This point is unfixable, unfortunately). This commit completely restore (even for 'read' access) the rule for billing user, otherwise such user can not validate an invoice if they are timesheet user. opw-2001421 closes odoo/odoo#33575 Signed-off-by: Jérome Maes (jem) --- addons/sale_timesheet/security/sale_timesheet_security.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale_timesheet/security/sale_timesheet_security.xml b/addons/sale_timesheet/security/sale_timesheet_security.xml index b4b5dde9754..fecc5292e63 100644 --- a/addons/sale_timesheet/security/sale_timesheet_security.xml +++ b/addons/sale_timesheet/security/sale_timesheet_security.xml @@ -11,7 +11,7 @@ - +