Ravish(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-1022677-rmu into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #1022677 in OpenERP Addons: "paying an non existing invoice from a bank
statement"
https://bugs.launchpad.net/openobject-addons/+bug/1022677
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1022677-rmu/+merge/114400
Hello
I have added warning message for bank statement line in account voucher's
voucher_move_line_create method. it will raise when you cancel account invoice
and try to confirm bank statement with that cancel invoice.
Thanks!!!
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1022677-rmu/+merge/114400
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-1022677-rmu.
=== modified file 'account_voucher/account_voucher.py'
--- account_voucher/account_voucher.py 2012-06-26 14:02:30 +0000
+++ account_voucher/account_voucher.py 2012-07-11 11:47:19 +0000
@@ -1047,6 +1047,8 @@
# if the amount encoded in voucher is equal to the amount unreconciled, we need to compute the
# currency rate difference
if line.amount == line.amount_unreconciled:
+ if not line.move_line_id.amount_residual:
+ raise osv.except_osv(_('Wrong bank statement line'),_("You must have delete the bank statement line manualy to which the payment was reconcile. Please check the payment of the partner %s by the amount of %s !")%(line.voucher_id.partner_id.name, line.voucher_id.amount))
currency_rate_difference = line.move_line_id.amount_residual - amount
else:
currency_rate_difference = 0.0
_______________________________________________
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