openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #13470
[Bug 1022677] Re: paying an non existing invoice from a bank statement
** Patch added: "account_voucher_raise.patch"
https://bugs.launchpad.net/bugs/1022677/+attachment/3217775/+files/account_voucher_raise.patch
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1022677
Title:
paying an non existing invoice from a bank statement
Status in OpenERP Addons (modules):
New
Bug description:
On OpenERP 6.1, If you are making you bank statement and applying
payments directly on it, let's say supplier invoice num 55, and for
some reason, someone (or you yourself), cancels an the supplier
invoice num 55, because an error on it, and regenerates it...
On the moment that you are confiming the statement, the OpenERP
(obviously) will not found the invoice (account.move.line) to pay, and
it will crash...
File "/home/josepato/erp/addons_all/6.1/account_voucher/account_voucher.py", line 1027, in voucher_move_line_create
currency_rate_difference = line.move_line_id.amount_residual - amount
TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'
2012-07-09 15:58:40,833 21995 ERROR lodi openerp.netsvc: unsupported operand type(s) for -: 'NoneType' and 'float'
What I see wrong is that the user can't fix this issue, it has to
relay on the partner, so I simply propose a raise communicating the
problem to the user...
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1022677/+subscriptions
References