Remove default read access

issue2067
review109003
This commit is contained in:
Cédric Krier
2011-09-30 17:11:16 +02:00
parent c3312d44ad
commit c9fe155c40
8 changed files with 62 additions and 8 deletions
+17
View File
@@ -72,5 +72,22 @@ this repository contains the full copyright notices and license terms. -->
<field name="value" eval="'ir.sequence,' + str(ref('sequence_shipment_internal'))"/>
</record>
<record model="ir.model.access" id="access_configuration">
<field name="model" search="[('model', '=', 'stock.configuration')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_configuration_admin">
<field name="model" search="[('model', '=', 'stock.configuration')]"/>
<field name="group" ref="group_stock_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
</data>
</tryton>
+2 -2
View File
@@ -189,7 +189,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.access" id="access_inventory">
<field name="model" search="[('model', '=', 'stock.inventory')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
@@ -205,7 +205,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.access" id="access_inventory_line">
<field name="model" search="[('model', '=', 'stock.inventory.line')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
+1 -1
View File
@@ -150,7 +150,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.access" id="access_move">
<field name="model" search="[('model', '=', 'stock.move')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
+10
View File
@@ -14,6 +14,11 @@ this repository contains the full copyright notices and license terms. -->
<field name="model">party.party,-1</field>
<field name="action" ref="act_shipment_out_form2"/>
</record>
<record model="ir.action-res.group"
id="act_shipment_out_form2-group_stock">
<field name="action" ref="act_shipment_out_form2"/>
<field name="group" ref="group_stock"/>
</record>
<record model="ir.action.act_window" id="act_shipment_out_form3">
<field name="name">Supplier Shipments</field>
@@ -26,6 +31,11 @@ this repository contains the full copyright notices and license terms. -->
<field name="model">party.party,-1</field>
<field name="action" ref="act_shipment_out_form3"/>
</record>
<record model="ir.action-res.group"
id="act_shipment_out_form3-group_stock">
<field name="action" ref="act_shipment_out_form3"/>
<field name="group" ref="group_stock"/>
</record>
</data>
</tryton>
+16
View File
@@ -58,6 +58,14 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.access" id="access_period">
<field name="model" search="[('model', '=', 'stock.period')]"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_period_stock">
<field name="model" search="[('model', '=', 'stock.period')]"/>
<field name="group" ref="group_stock"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
@@ -107,6 +115,14 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.access" id="access_period_cache_cache">
<field name="model" search="[('model', '=', 'stock.period.cache')]"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_period_cache_cache_stock">
<field name="model" search="[('model', '=', 'stock.period.cache')]"/>
<field name="group" ref="group_stock"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
+5
View File
@@ -62,6 +62,11 @@ this repository contains the full copyright notices and license terms. -->
<field name="model">product.product,-1</field>
<field name="action" ref="wizard_location_open"/>
</record>
<record model="ir.action-res.group"
id="wizard_location_open-group_stock">
<field name="action" ref="wizard_location_open"/>
<field name="group" ref="group_stock"/>
</record>
<record model="ir.ui.view" id="product_stock_date_init_view_form">
<field name="model">stock.product_stock_date.init</field>
+5 -5
View File
@@ -1415,7 +1415,7 @@ this repository contains the full copyright notices and license terms. -->
<!-- Model Access -->
<record model="ir.model.access" id="access_shipment_in">
<field name="model" search="[('model', '=', 'stock.shipment.in')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
@@ -1439,7 +1439,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.access" id="access_shipment_out">
<field name="model" search="[('model', '=', 'stock.shipment.out')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
@@ -1463,7 +1463,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.access" id="access_shipment_internal">
<field name="model" search="[('model', '=', 'stock.shipment.internal')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
@@ -1487,7 +1487,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.access" id="access_shipment_out_return">
<field name="model" search="[('model', '=', 'stock.shipment.out.return')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
@@ -1511,7 +1511,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.access" id="access_shipment_in_return">
<field name="model" search="[('model', '=', 'stock.shipment.in.return')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
+6
View File
@@ -50,6 +50,12 @@ this repository contains the full copyright notices and license terms. -->
</record>
<menuitem name="Inventory &amp; Stock" sequence="3" id="menu_stock"
icon="tryton-inventory"/>
<record model="ir.ui.menu-res.group"
id="menu_stock_group_stock">
<field name="menu" ref="menu_stock"/>
<field name="group" ref="group_stock"/>
</record>
<menuitem name="Configuration" parent="menu_stock"
id="menu_configuration" sequence="0" icon="tryton-preferences"/>
<record model="ir.ui.menu-res.group"