[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:
parent
494b2481e2
commit
86680d853b
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue