Reviewers: ,


Please review this at http://codereview.tryton.org/109003/

Affected files:
  M configuration.xml
  M inventory.xml
  M move.xml
  M party.xml
  M period.xml
  M product.xml
  M shipment.xml
  M stock.xml


Index: configuration.xml
===================================================================

--- a/configuration.xml
+++ b/configuration.xml
@@ -72,5 +72,22 @@
<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>

Index: inventory.xml
===================================================================

--- a/inventory.xml
+++ b/inventory.xml
@@ -189,7 +189,7 @@

         <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 @@

         <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"/>

Index: move.xml
===================================================================

--- a/move.xml
+++ b/move.xml
@@ -150,7 +150,7 @@

         <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"/>

Index: party.xml
===================================================================

--- a/party.xml
+++ b/party.xml
@@ -14,6 +14,11 @@
             <field name="model">party.party,0</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 @@
             <field name="model">party.party,0</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>

Index: period.xml
===================================================================

--- a/period.xml
+++ b/period.xml
@@ -58,6 +58,14 @@

         <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 @@

         <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"/>

Index: product.xml
===================================================================

--- a/product.xml
+++ b/product.xml
@@ -62,6 +62,11 @@
             <field name="model">product.product,0</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>

Index: shipment.xml
===================================================================

--- a/shipment.xml
+++ b/shipment.xml
@@ -1415,7 +1415,7 @@
         <!-- 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 @@

         <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 @@

         <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 @@

         <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 @@

         <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"/>

Index: stock.xml
===================================================================

--- a/stock.xml
+++ b/stock.xml
@@ -50,6 +50,12 @@
         </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"



--
tryton-dev@googlegroups.com mailing list

Reply via email to