[FIX] mrp_operations: undefined name.

bzr revid: vmt@openerp.com-20130726135830-86mrf92bz49rhqzb
This commit is contained in:
Vo Minh Thu 2013-07-26 15:58:30 +02:00
parent abde98eb16
commit 34c97e9802
1 changed files with 1 additions and 0 deletions

View File

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