c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #22922
[Bug 772334] Re: division by zero error
** Description changed:
- when running compute assets wizard it threw division by zero exception
+ when running compute assets wizard it threw division by zero exception
+ period_ok = ((datetime.strptime(period.date_stop, '%Y-%m-%d').month % (12 / asset.method_freq)) == 0)
+ ZeroDivisionError: integer division or modulo by zero
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/772334
Title:
division by zero error
Status in OpenERP Modules (addons):
New
Bug description:
when running compute assets wizard it threw division by zero exception
period_ok = ((datetime.strptime(period.date_stop, '%Y-%m-%d').month % (12 / asset.method_freq)) == 0)
ZeroDivisionError: integer division or modulo by zero
References