[IMP] procurement, stock : Added groups to restrict the fields.
bzr revid: mdi@tinyerp.com-20120702052816-ct29279dygwg1mgl
This commit is contained in:
@@ -170,10 +170,10 @@
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Reordering Rules">
|
||||
<field name="name"/>
|
||||
<field name="warehouse_id"/>
|
||||
<field name="warehouse_id" groups="stock.group_locations"/>
|
||||
<field name="location_id" groups="stock.group_locations"/>
|
||||
<field name="product_id"/>
|
||||
<field name="product_uom"/>
|
||||
<field name="product_uom" groups="product.group_uom"/>
|
||||
<field name="product_min_qty"/>
|
||||
<field name="product_max_qty"/>
|
||||
</tree>
|
||||
@@ -216,8 +216,8 @@
|
||||
<field name="product_id" on_change="onchange_product_id(product_id)"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)" widget="selection"/>
|
||||
<field name="product_uom"/>
|
||||
<field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)" widget="selection" groups="stock.group_locations"/>
|
||||
<field name="product_uom" groups="product.group_uom"/>
|
||||
<field name="location_id" groups="stock.group_locations"/>
|
||||
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
||||
</group>
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
<page string="General Informations">
|
||||
<field name="inventory_line_id">
|
||||
<tree string="Products" editable="bottom">
|
||||
<field domain="[('usage','=','internal')]" name="location_id"/>
|
||||
<field domain="[('usage','=','internal')]" name="location_id" groups="stock.group_locations"/>
|
||||
<field context="{'location':location_id, 'uom':product_uom, 'to_date':parent.date}" name="product_id" on_change="on_change_product_id(location_id,product_id,product_uom,parent.date)" domain="[('type','<>','service')]"/>
|
||||
<field name="product_qty"/>
|
||||
<field name="product_uom" groups="product.group_uom"/>
|
||||
@@ -1258,7 +1258,7 @@
|
||||
|
||||
</group>
|
||||
<group>
|
||||
<label for="tracking_id"/>
|
||||
<label for="tracking_id" groups="stock.group_tracking_lot"/>
|
||||
<div>
|
||||
<field name="tracking_id" groups="stock.group_tracking_lot" class="oe_inline"/>
|
||||
<button name="%(split_into)d" string="New Pack" type="action"
|
||||
@@ -1266,7 +1266,7 @@
|
||||
icon="terp-stock_effects-object-colorize"
|
||||
states="draft,assigned,confirmed"/>
|
||||
</div>
|
||||
<label for="prodlot_id"/>
|
||||
<label for="prodlot_id" groups="stock.group_production_lot"/>
|
||||
<div>
|
||||
<field name="prodlot_id" groups="stock.group_production_lot"
|
||||
context="{'location_id':location_id, 'product_id':product_id}"
|
||||
@@ -1425,7 +1425,7 @@
|
||||
icon="gtk-convert" context="{'scrap': True}"
|
||||
states="draft,waiting,confirmed,assigned"/>
|
||||
</div>
|
||||
<label for="product_uos_qty"/>
|
||||
<label for="product_uos_qty" groups="product.group_uos"/>
|
||||
<div>
|
||||
<field name="product_uos_qty" groups="product.group_uos" class="oe_inline"
|
||||
on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)"/>
|
||||
|
||||
Reference in New Issue
Block a user