[IMP]stock :production lot info should be hidden if user does not have extended view
bzr revid: sbh@tinyerp.com-20100922064527-3ddi9ul6gcngodsa
This commit is contained in:
@@ -104,7 +104,7 @@ class stock_partial_move(osv.osv_memory):
|
||||
<field name="move%s_product_id" nolabel="1"/>
|
||||
<field name="move%s_product_qty" string="Qty" />
|
||||
<field name="move%s_product_uom" nolabel="1" />
|
||||
<field name="move%s_prodlot_id" />
|
||||
<field name="move%s_prodlot_id" groups="base.group_extended" />
|
||||
"""%(m.id, m.id, m.id,m.id)
|
||||
if (m.picking_id.type == 'in') and (m.product_id.cost_method == 'average'):
|
||||
_moves_fields.update({
|
||||
|
||||
@@ -105,7 +105,7 @@ class stock_partial_picking(osv.osv_memory):
|
||||
<field name="move%s_product_id" nolabel="1"/>
|
||||
<field name="move%s_product_qty" string="Qty" />
|
||||
<field name="move%s_product_uom" nolabel="1" />
|
||||
<field name="move%s_prodlot_id" />
|
||||
<field name="move%s_prodlot_id" groups="base.group_extended" />
|
||||
"""%(m.id, m.id, m.id, m.id)
|
||||
if (m.product_id.cost_method == 'average'):
|
||||
_moves_fields.update({
|
||||
|
||||
Reference in New Issue
Block a user