From 089214b0f2bc593509cd2a55717890c1a220bab2 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Fri, 8 Mar 2013 12:04:49 +0100 Subject: [PATCH] [FIX] point_of_sale: add the missing call to the workflow service bzr revid: stw@openerp.com-20130308110449-feobq8yoc6kg3efy --- addons/point_of_sale/point_of_sale.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 2e5b4c1ffd8..7d608a73a7b 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -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':