Ila Rana(Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-573244-ira into
lp:openobject-addons/6.1.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-573244-ira/+merge/99706
Hello Naresh,
There is a problem in payment_cancel invoice. The state of invoice remain paid
after unreconciled whole payment. So I have forward-ported from stable6.0.
Thanks,
Ila Rana(ira)
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-573244-ira/+merge/99706
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-573244-ira.
=== modified file 'account/account_invoice.py'
--- account/account_invoice.py 2012-02-16 19:11:07 +0000
+++ account/account_invoice.py 2012-03-28 11:33:52 +0000
@@ -80,8 +80,11 @@
def _reconciled(self, cr, uid, ids, name, args, context=None):
res = {}
- for id in ids:
- res[id] = self.test_paid(cr, uid, [id])
+ wf_service = netsvc.LocalService("workflow")
+ for inv in self.browse(cr, uid, ids, context=context):
+ res[inv.id] = self.test_paid(cr, uid, [inv.id])
+ if not res[inv.id] and inv.state == 'paid':
+ wf_service.trg_validate(uid, 'account.invoice', inv.id, 'open_test', cr)
return res
def _get_reference_type(self, cr, uid, context=None):
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp