[FIX] mrp_operations: undefined name.
bzr revid: vmt@openerp.com-20130726135830-86mrf92bz49rhqzb
This commit is contained in:
parent
abde98eb16
commit
34c97e9802
|
@ -246,6 +246,7 @@ class mrp_production(osv.osv):
|
|||
""" Cancels work order if production order is canceled.
|
||||
@return: Super method
|
||||
"""
|
||||
workcenter_pool = self.pool.get('mrp.production.workcenter.line')
|
||||
obj = self.browse(cr, uid, ids,context=context)[0]
|
||||
for workcenter_line in obj.workcenter_lines:
|
||||
workcenter_pool.signal_button_cancel(cr, uid, [workcenter_line.id])
|
||||
|
|
Loading…
Reference in New Issue