[IMP] account_followup: use the new signal_xxx methods instead of trg_validate.

bzr revid: vmt@openerp.com-20130128120147-oj7pvl2015x4764v
This commit is contained in:
Vo Minh Thu
2013-01-28 13:01:47 +01:00
parent 99664df35a
commit 781e6737ac
@@ -44,8 +44,7 @@ class TestAccountFollowup(TransactionCase):
'quantity': 5,
'price_unit':200
})]})
wf_service = netsvc.LocalService("workflow")
wf_service.trg_validate(uid, 'account.invoice', self.invoice_id, 'invoice_open', cr)
self.registry('account.invoice').signal_invoice_open(cr, uid, [self.invoice_id])
self.voucher = self.registry("account.voucher")