From 507f916d7c99ffbd39f5566a2520ae961d76bf4d Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Wed, 14 Oct 2020 16:09:21 -0300 Subject: [PATCH] [MIG][REF] Security groups. --- .../demo/res_users.xml | 2 +- .../security/cnab_cobranca_security.xml | 23 +++++++++++++++---- .../security/ir.model.access.csv | 3 ++- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/l10n_br_account_payment_order/demo/res_users.xml b/l10n_br_account_payment_order/demo/res_users.xml index 183b54fe2761..3b8e149f9240 100644 --- a/l10n_br_account_payment_order/demo/res_users.xml +++ b/l10n_br_account_payment_order/demo/res_users.xml @@ -3,7 +3,7 @@ - + diff --git a/l10n_br_account_payment_order/security/cnab_cobranca_security.xml b/l10n_br_account_payment_order/security/cnab_cobranca_security.xml index 0cf09df8ca0c..963afdc3ff1f 100644 --- a/l10n_br_account_payment_order/security/cnab_cobranca_security.xml +++ b/l10n_br_account_payment_order/security/cnab_cobranca_security.xml @@ -1,17 +1,30 @@ - - CNAB Cobranca - + + CNAB + Helps you handle your CNAB needs. + 99 + + + + CNAB User + + + + + + CNAB Manager + + - + - + diff --git a/l10n_br_account_payment_order/security/ir.model.access.csv b/l10n_br_account_payment_order/security/ir.model.access.csv index 60f4f4205cb3..8e539c1b1b50 100644 --- a/l10n_br_account_payment_order/security/ir.model.access.csv +++ b/l10n_br_account_payment_order/security/ir.model.access.csv @@ -1,2 +1,3 @@ "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -access_cnab_return_move_code,access_cnab_return_move_code,model_cnab_return_move_code,group_cnab_cobranca,1,1,1,1 +access_cnab_return_move_code_user,access_cnab_return_move_code_user,model_cnab_return_move_code,group_cnab_user,1,0,0,0 +access_cnab_return_move_code_manager,access_cnab_return_move_code_manager,model_cnab_return_move_code,group_cnab_manager,1,1,1,1 \ No newline at end of file