[FIX] hr_expense: limit activity type creation to expense managers

Expense users should not be able to create activity types. This is limited to
managers like in other applications allowing to create activity types.
This commit is contained in:
Thibault Delavallée
2018-04-20 17:56:32 +02:00
parent e82030433d
commit bdb0d128b7
@@ -14,4 +14,4 @@ access_account_invoice_tax_user,account.invoice.tax.user,account.model_account_i
access_account_move_user,account.move.user,account.model_account_move,hr_expense.group_hr_expense_user,1,0,0,0
access_account_move_line_user,account.move.line.user,account.model_account_move_line,hr_expense.group_hr_expense_user,1,0,0,0
access_account_analytic_line_user,account.analytic.line.user,account.model_account_analytic_line,hr_expense.group_hr_expense_user,1,1,1,1
access_mail_activity_type_expense_user,mail.activity.type.expense.user,mail.model_mail_activity_type,hr_expense.group_hr_expense_user,1,1,1,1
access_mail_activity_type_expense_user,mail.activity.type.expense.user,mail.model_mail_activity_type,hr_expense.group_hr_expense_manager,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
14 access_account_move_user account.move.user account.model_account_move hr_expense.group_hr_expense_user 1 0 0 0
15 access_account_move_line_user account.move.line.user account.model_account_move_line hr_expense.group_hr_expense_user 1 0 0 0
16 access_account_analytic_line_user account.analytic.line.user account.model_account_analytic_line hr_expense.group_hr_expense_user 1 1 1 1
17 access_mail_activity_type_expense_user mail.activity.type.expense.user mail.model_mail_activity_type hr_expense.group_hr_expense_user hr_expense.group_hr_expense_manager 1 1 1 1