[FIX] [point_of_sale] security was not set for config/default_journal menu and pos.config.journal object

bzr revid: olt@tinyerp.com-20090703064524-2y7uo0w62uzconjy
This commit is contained in:
Olivier Laurent 2009-07-03 08:45:24 +02:00
parent 74b029c0f1
commit 135e694aea
2 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,6 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_pos_config_journal","pos.config.journal","model_pos_config_journal","point_of_sale.group_pos_user",1,0,0,0
"access_pos_config_journal_manager","pos.config.journal","model_pos_config_journal","point_of_sale.group_pos_manager",1, 1, 1, 1
"access_pos_order","pos.order","model_pos_order","point_of_sale.group_pos_user",1,1,1,1
"access_pos_order_line","pos.order.line","model_pos_order_line","point_of_sale.group_pos_user",1,1,1,1
"access_pos_payment","pos.payment","model_pos_payment","point_of_sale.group_pos_user",1,1,1,1

1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_pos_config_journal pos.config.journal model_pos_config_journal point_of_sale.group_pos_user 1 0 0 0
3 access_pos_config_journal_manager pos.config.journal model_pos_config_journal point_of_sale.group_pos_manager 1 1 1 1
4 access_pos_order pos.order model_pos_order point_of_sale.group_pos_user 1 1 1 1
5 access_pos_order_line pos.order.line model_pos_order_line point_of_sale.group_pos_user 1 1 1 1
6 access_pos_payment pos.payment model_pos_payment point_of_sale.group_pos_user 1 1 1 1

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<data noupdate="1">
<record id="group_pos_manager" model="res.groups">
<field name="name">Point of Sale / Manager</field>
@ -8,6 +8,13 @@
<record id="group_pos_user" model="res.groups">
<field name="name">Point of Sale / User</field>
</record>
</data>
</data>
<data>
<record id="menu_point_config" model="ir.ui.menu">
<field eval="[(6,0,[ref('group_pos_manager')])]" name="groups_id"/>
</record>
</data>
</openerp>