Please sign in to comment.
[FIX] account, sale_timesheet: access rights when validating invoice
When validate an invoice, if the user is member of the timesheet user group and the billing user group, it is forbidden to create an analytic line without a project set. The previous commit (81218a8) allow the user to create an analytic account line by adding a record rule in the sale_timesheet module. If only the account and timesheet modules' are installed, before this commit, an error was raised when trying to validate an invoice in the account module. This issue occurs because the record rule to allow the user to create an analytic account line is found in sale_timesheet module, and this one is not installed. As an invoice can be validated without the need of the sales module's, from the purchase module, or directly in the account module. In this commit, the record rule was move to the account module. opw-1948132 closes #31661 Signed-off-by: Nicolas Martinelli (nim) <email@example.com>
- Loading branch information...
Showing with 11 additions and 11 deletions.