[MERGE] merge from dev3
authorARA (OpenERP) <ara@tinyerp.com>
Tue, 16 Nov 2010 07:15:54 +0000 (12:45 +0530)
committerARA (OpenERP) <ara@tinyerp.com>
Tue, 16 Nov 2010 07:15:54 +0000 (12:45 +0530)
bzr revid: ara@tinyerp.com-20101116071554-91h4snhiegd46o4z

addons/account/invoice.py

index af65a50..4eae61d 100644 (file)
@@ -598,6 +598,7 @@ class account_invoice(osv.osv):
         self.write(cr, uid, ids, {'state':'draft'})
         wf_service = netsvc.LocalService("workflow")
         for inv_id in ids:
+            wf_service.trg_delete(uid, 'account.invoice', inv_id, cr)
             wf_service.trg_create(uid, 'account.invoice', inv_id, cr)
         return True