division by zero in payment from
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Invalid
|
Medium
|
Unassigned |
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:/
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,
Changed in openobject-addons: | |
importance: | Undecided → Medium |
Hello Cristian,
Checked on trunk and it gives the warning such as "No currency rate associated for currency 1 for the given period ".
Which is quite fine.
Would you please check this again and let us know.
Thank you!