Xavier ALT (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-bug-928899-xal into
lp:openobject-addons/6.1.
Requested reviews:
OpenERP R&D Team (openerp-dev)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-bug-928899-xal/+merge/95533
Hi,
This branch is a forward-port of v6.0 fix for bug #928899.
When manually unreconciling entry from account.move.line, linked invoice
doesn't switch back to "Open" state.
Thanks,
Xavier
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-bug-928899-xal/+merge/95533
Your team OpenERP R&D Team is requested to review the proposed merge of
lp:~openerp-dev/openobject-addons/6.1-bug-928899-xal into
lp:openobject-addons/6.1.
=== modified file 'account/account_invoice.py'
--- account/account_invoice.py 2012-02-16 19:11:07 +0000
+++ account/account_invoice.py 2012-03-02 11:18:22 +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