openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #26717
[Bug 1190304] Re: division by zero in payment from
Hi Cristian,
I'm removing OCB-addons as an affected project for this bug as per
project policy. Of course the bug affects ocb-addons/6.1, but we only
want to track bugs that we fix in OCB-specific changes. Therefore, you
should only add bugs to the project that you are going to propose a
solution for.
Thanks,
Stefan.
** No longer affects: ocb-addons
--
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/1190304
Title:
division by zero in payment from
Status in OpenERP Addons (modules):
Invalid
Bug description:
With latest revno in 6.1 and 7.0:
Fresh installation, install account_accountant module:
So system will create a fiscal year 2013
Create new fiscal year 2012
Change the invoice date to any day in 2012
Validate an Invoice, click o Payment button,
Change the date of payment to any day 2012
System crash: https://gist.github.com/ovnicraft/5767400
I invest and found the problem:
Division by zero is caused by currency rate, rate in res.currency is a function field base on date, so reconfigure rate currency to 2012 fix the problem but catch the bug was a little complicated and need to debug.
I consider two options:
Validate the case in vouche, line of crash
Validate the case in rate when not found any rate and return 1.0
Regards,
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1190304/+subscriptions