[IMP] stock: set the split into production lot wizard display in done state
bzr revid: sbh@tinyerp.com-20100831083120-5zl5yddmx0e625dk
This commit is contained in:
@@ -1454,7 +1454,6 @@ class stock_move(osv.osv):
|
||||
group=[i for i in group_id if (i and (i not in user_rec['groups_id']))]
|
||||
if group:
|
||||
raise osv.except_osv(_('Error!'), _('Quantities, UoMs, Products and Locations cannot be modified on stock moves in Done state (except by the Administrator ' ))
|
||||
#
|
||||
return super(stock_move, self).write(cr, uid, ids, vals, context=context)
|
||||
|
||||
def copy(self, cr, uid, id, default=None, context=None):
|
||||
|
||||
@@ -1433,7 +1433,7 @@
|
||||
<label/>
|
||||
<button name="%(track_line)d"
|
||||
groups="base.group_extended"
|
||||
states="draft,waiting,confirmed,assigned"
|
||||
states="draft,waiting,confirmed,assigned,done"
|
||||
string="Split in production lots" type="action" icon="terp-stock_effects-object-colorize" colspan="2" />
|
||||
<label/>
|
||||
<button name="%(split_into)d" string="Put in a new pack" type="action"
|
||||
@@ -1532,7 +1532,7 @@
|
||||
<field name="prodlot_id" groups="base.group_extended"/>
|
||||
<button name="%(track_line)d" string="Split in production lots" type="action"
|
||||
icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','<>',False)]}"
|
||||
states="draft,waiting,confirmed,assigned"
|
||||
states="draft,waiting,confirmed,assigned,done"
|
||||
context="{'default_use_exist': picking_id.type=='in'}"
|
||||
groups="base.group_extended"/>
|
||||
<field name="tracking_id" groups="base.group_extended"/>
|
||||
@@ -1588,7 +1588,7 @@
|
||||
<newline/>
|
||||
<label/>
|
||||
<button name="%(track_line)d" string="Split in production lots"
|
||||
states="draft,waiting,confirmed,assigned"
|
||||
states="draft,waiting,confirmed,assigned,done"
|
||||
groups="base.group_extended"
|
||||
type="action" icon="terp-stock_effects-object-colorize"/>
|
||||
<label/>
|
||||
|
||||
Reference in New Issue
Block a user