[IMP] purchase: use the new signal_xxx methods instead of trg_validate.
bzr revid: vmt@openerp.com-20130128091716-ni5zb1qp4sib58rm
This commit is contained in:
parent
11632909ae
commit
494b2481e2
|
@ -62,8 +62,7 @@
|
|||
import netsvc
|
||||
invoice_ids = [x.id for x in self.browse(cr, uid, ref("purchase_order_1")).invoice_ids]
|
||||
wf_service = netsvc.LocalService("workflow")
|
||||
for invoice in invoice_ids:
|
||||
wf_service.trg_validate(uid, 'account.invoice', invoice, 'invoice_open', cr)
|
||||
self.pool.get('account.invoice').signal_invoice_open(cr, uid, invoice_ids)
|
||||
-
|
||||
I check that purchase order is invoiced.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue