openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #03512
lp:~openerp-dev/openobject-addons/6.0-opw-invoice_reopen_bug-ach into lp:openobject-addons/6.0
Anup(OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/6.0-opw-invoice_reopen_bug-ach into lp:openobject-addons/6.0.
Requested reviews:
Jay Vora (OpenERP) (jvo-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-invoice_reopen_bug-ach/+merge/51517
Hello,
It solves a bug of payment unreconcilation. To generate this bug please follow the steps given below.
1.Create an Invoice and Pay it.
2. Now Un-reconcile the voucher that was paid.
3. Check the Invoice state. It's still in "Paid" state. It should be in "Open" State.
The above merge proposal fixes the issue.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-invoice_reopen_bug-ach/+merge/51517
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/6.0-opw-invoice_reopen_bug-ach.
=== modified file 'account_voucher/account_voucher.py'
--- account_voucher/account_voucher.py 2011-01-17 11:20:56 +0000
+++ account_voucher/account_voucher.py 2011-02-28 11:22:55 +0000
@@ -588,6 +588,9 @@
'move_id':False,
}
self.write(cr, uid, ids, res)
+ if context.get('invoice_id'):
+ wf_service = netsvc.LocalService("workflow")
+ wf_service.trg_validate(uid, 'account.invoice', context.get('invoice_id'), 'open_test', cr)
return True
def unlink(self, cr, uid, ids, context=None):
Follow ups