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

bzr revid: vmt@openerp.com-20130128092930-6lhgyprwirpt6y3z
This commit is contained in:
Vo Minh Thu 2013-01-28 10:29:30 +01:00
parent 494b2481e2
commit 86680d853b
1 changed files with 1 additions and 2 deletions

View File

@ -135,9 +135,8 @@ class payment_order(osv.osv):
return True
def set_done(self, cr, uid, ids, *args):
wf_service = netsvc.LocalService("workflow")
self.write(cr, uid, ids, {'date_done': time.strftime('%Y-%m-%d')})
wf_service.trg_validate(uid, 'payment.order', ids[0], 'done', cr)
self.signal_done(cr, uid, [ids[0]])
return True
def copy(self, cr, uid, id, default=None, context=None):