← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 772334] Re: division by zero error

 

On 16. 05. 11 14:13, Mohammed wrote:
> Dear Bogdan,
>
> Yes, it is present in your branch.
>
> To reproduce: register a new asset with "frequency of writing set to
> zero", then compute asset depreciation.
>
> Thanks,
>
> --- On Mon, 5/9/11, Bogdan Stanciu <bogdanovidiu.stanciu@xxxxxxxxx>
> wrote:
>
> From: Bogdan Stanciu <bogdanovidiu.stanciu@xxxxxxxxx>
> Subject: Re: [Bug 772334] Re: division by zero error
> To: gaafer5@xxxxxxxxx
> Date: Monday, May 9, 2011, 11:56 PM
>
> On 09. 05. 11 09:28, Mohammed wrote:
>> ** Branch linked: lp:~bstanciu/openobject-addons/account-fixed-assets
>>
> Mohammed,
>
> Does this means that the bug is present in my branch?
>
> how do you get it? please detail your steps.
>
> thank you,
> bogdan
>
ok, I got it... it is a error to catch, as zero is not a proper option.

thank you again!

b

-- 
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):
  Confirmed

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