[SECURITY] ~fix access to pos.make.payment 7.0
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 29 May 2020 10:19:24 +0000 (12:19 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 29 May 2020 10:19:24 +0000 (12:19 +0200)
__openerp__.py
security/ir.model.access.csv [new file with mode: 0644]

index f273154..4a2ac19 100644 (file)
@@ -23,6 +23,7 @@ This module adds features to OpenERP POS module for french bikecoops for "Coup d
     'init_xml': [
     ],
     'update_xml': [
     'init_xml': [
     ],
     'update_xml': [
+        'security/ir.model.access.csv',
         'view/account_statement.xml',
     ],
     'installable': True,
         'view/account_statement.xml',
     ],
     'installable': True,
diff --git a/security/ir.model.access.csv b/security/ir.model.access.csv
new file mode 100644 (file)
index 0000000..120c52b
--- /dev/null
@@ -0,0 +1,3 @@
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink\r
+access_pos_make_payment_group_user,pos.make.payment user,model_pos_make_payment,point_of_sale.group_pos_user,1,1,1,0\r
+access_pos_make_payment_group_manager,pos.make.payment manager,model_pos_make_payment,point_of_sale.group_pos_manager,1,1,1,0\r