Anup(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-bug-812951-ach into
lp:openobject-addons/6.0.
Requested reviews:
Jay Vora (OpenERP) (jvo-openerp)
Related bugs:
Bug #812951 in OpenERP Addons: "problem when importing a purchase invoice in
bank statement"
https://bugs.launchpad.net/openobject-addons/+bug/812951
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-bug-812951-ach/+merge/70113
Hello,
There was a regression due to the fix in importing invoice in bank statement.
This fixes the issue.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-bug-812951-ach/+merge/70113
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-bug-812951-ach.
=== modified file 'account_voucher/wizard/account_statement_from_invoice.py'
--- account_voucher/wizard/account_statement_from_invoice.py 2011-07-04 10:59:16 +0000
+++ account_voucher/wizard/account_statement_from_invoice.py 2011-08-02 06:07:29 +0000
@@ -102,7 +102,9 @@
#Updated the amount of voucher in case of partially paid invoice
amount_res = voucher_line_dict.get('amount_unreconciled',amount)
voucher_obj.write(cr, uid, voucher_id, {'amount':amount_res}, context=context)
-
+ if amount < 0:
+ amount_res *= -1
+
if line.journal_id.type == 'sale':
type = 'customer'
elif line.journal_id.type == 'purchase':
_______________________________________________
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