From cad945159e26c9ae714d9ca3f3030163e62a2529 Mon Sep 17 00:00:00 2001 From: ronozoro Date: Sun, 13 Oct 2024 16:47:07 -0700 Subject: [PATCH] fix issue regarding sec in payment --- odex25_accounting/odex25_account_payment_fix/__manifest__.py | 1 + .../odex25_account_payment_fix/security/ir.model.access.csv | 2 ++ .../pw_restrict_account_journal/views/res_user_view.xml | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 odex25_accounting/odex25_account_payment_fix/security/ir.model.access.csv diff --git a/odex25_accounting/odex25_account_payment_fix/__manifest__.py b/odex25_accounting/odex25_account_payment_fix/__manifest__.py index 13885e3d5..e77170be1 100644 --- a/odex25_accounting/odex25_account_payment_fix/__manifest__.py +++ b/odex25_accounting/odex25_account_payment_fix/__manifest__.py @@ -11,6 +11,7 @@ 'website': "http://www.exp-sa.com", 'depends': ['account', 'odex25_account_accountant'], 'data': [ + 'security/ir.model.access.csv', 'security/security.xml', 'views/account_payment_views.xml', ], diff --git a/odex25_accounting/odex25_account_payment_fix/security/ir.model.access.csv b/odex25_accounting/odex25_account_payment_fix/security/ir.model.access.csv new file mode 100644 index 000000000..45a119f0b --- /dev/null +++ b/odex25_accounting/odex25_account_payment_fix/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_stock_valuation_layer_account_user,access_stock_valuation_layer_account_user user,stock_account.model_stock_valuation_layer,base.group_user,1,1,1,1 diff --git a/odex25_accounting/pw_restrict_account_journal/views/res_user_view.xml b/odex25_accounting/pw_restrict_account_journal/views/res_user_view.xml index ba98f18c9..7ddae2c37 100755 --- a/odex25_accounting/pw_restrict_account_journal/views/res_user_view.xml +++ b/odex25_accounting/pw_restrict_account_journal/views/res_user_view.xml @@ -10,7 +10,7 @@ - +