[FIX] point_of_sale: add the missing call to the workflow service

bzr revid: stw@openerp.com-20130308110449-feobq8yoc6kg3efy
This commit is contained in:
Stephane Wirtel 2013-03-08 12:04:49 +01:00
parent 3f40cad548
commit 089214b0f2
1 changed files with 1 additions and 0 deletions

View File

@ -706,6 +706,7 @@ class pos_order(osv.osv):
@return: True
"""
stock_picking_obj = self.pool.get('stock.picking')
wf_service = netsvc.LocalService("workflow")
for order in self.browse(cr, uid, ids, context=context):
wf_service.trg_validate(uid, 'stock.picking', order.picking_id.id, 'button_cancel', cr)
if stock_picking_obj.browse(cr, uid, order.picking_id.id, context=context).state <> 'cancel':