summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2013-07-11 14:51:55 +0200
committerThibault Delavallée <tde@openerp.com>2013-07-11 14:51:55 +0200
commit034a5d5dcf00fcd81b2e3cd4d0f734bdff125cc0 (patch)
treea9309620c053aece6965b78d5ab25c8f1cc26db5 /addons
parentd6c74a369c1775370bc920b35dadc10cae290ee0 (diff)
[FIX] point_of_sale: LocalService -> signal_ validation
bzr revid: tde@openerp.com-20130711125155-hmf0u0p0o45iac66
Diffstat (limited to 'addons')
-rw-r--r--addons/point_of_sale/point_of_sale.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py
index d53b635ec21..efe8cd98689 100644
--- a/addons/point_of_sale/point_of_sale.py
+++ b/addons/point_of_sale/point_of_sale.py
@@ -539,8 +539,7 @@ class pos_order(osv.osv):
if to_invoice:
self.action_invoice(cr, uid, [order_id], context)
order_obj = self.browse(cr, uid, order_id, context)
- wf_service = netsvc.LocalService('workflow')
- wf_service.trg_validate(uid,'account.invoice', order_obj.invoice_id.id,'invoice_open',cr)
+ self.pool['account.invoice'].signal_invoice_open(cr, uid, [order_obj.invoice_id.id])
return order_ids