Close Fiascla Year in Accounting

Bug #912223 reported by MALATESTA Yves
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
OpenERP Publisher's Warranty Team

Bug Description

When we want to close Fiascal Year we have this Error Report:

Environment Information :
System : Linux-2.6.38-13-generic-i686-with-Ubuntu-11.04-natty
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
Operating System Release : 2.6.38-13-generic
Operating System Version : #53-Ubuntu SMP Mon Nov 28 19:23:39 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : fr_FR.UTF8
Python Version : 2.7.1+
OpenERP-Client Version : 6.0.3
Last revision No. & ID :1918 <email address hidden>
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.7/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.7/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/malatesta/openerp/addons/account/wizard/account_fiscalyear_close.py", line 234, in data_save
    obj_acc_move.validate(cr, uid, [move_id], context=context)
  File "/home/malatesta/openerp/addons/account/account.py", line 1508, in validate
    self._centralise(cr, uid, move, 'debit', context=context)
  File "/home/malatesta/openerp/addons/account/account.py", line 1396, in _centralise
    if not currency_obj.is_zero(cr, uid, currency_id, row['amount_currency']):
  File "/usr/local/lib/python2.7/dist-packages/openerp-server/addons/base/res/res_currency.py", line 100, in is_zero
    return abs(self.round(cr, uid, currency, amount)) < currency.rounding
  File "/usr/local/lib/python2.7/dist-packages/openerp-server/addons/base/res/res_currency.py", line 97, in round
    return round(amount / currency.rounding) * currency.rounding
TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'

Tags: maintenance
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello MALATESTA Yves ,

have checked this issue with latest trunk and stable both but
I did not face any trace back at closing fiscal year
so would you please provide more information like video or revision no
regarding this issue.

I have checked at revision:

Stable 6.0.3 :

       Addons : 4984
       Server : 3559
       Gtk - Client : 1920
       web client : 4752

Thanks and waiting for replay.

Changed in openobject-server:
status: New → Incomplete
Revision history for this message
MALATESTA Yves (malatestay) wrote : RE: [Bug 912223] Re: Close Fiascla Year in Accounting
Download full text (3.8 KiB)

Hi,
Following revision 4988 seems to fix the problem.
We try to do some test next week and close bug if the results are OK.

Thanks

Yves MALATESTA
CYM - Choose Your Model
Gérant

<email address hidden>
www.chyomo.fr

Mob : +33 786 180 818
Voip : +33 981 499 407
Fix : +33 297 937 148
Fax: +33 981 403 057

CYM-Choose Your Model - Gaincru, 56140 RUFFIAC - R.C.S. VANNES 522 088 988

-----Message d'origine-----
De : <email address hidden> [mailto:<email address hidden>] De la part de Jignesh Rathod(OpenERP)
Envoyé : jeudi 5 janvier 2012 14:35
À : <email address hidden>
Objet : [Bug 912223] Re: Close Fiascla Year in Accounting

Hello MALATESTA Yves ,

have checked this issue with latest trunk and stable both but I did not face any trace back at closing fiscal year so would you please provide more information like video or revision no regarding this issue.

I have checked at revision:

Stable 6.0.3 :

       Addons : 4984
       Server : 3559
       Gtk - Client : 1920
       web client : 4752

Thanks and waiting for replay.

** Changed in: openobject-server
       Status: New => Incomplete

--
You received this bug notification because you are subscribed to the bug report.
https://bugs.launchpad.net/bugs/912223

Title:
  Close Fiascla Year in Accounting

Status in OpenERP Server:
  Incomplete

Bug description:
  When we want to close Fiascal Year we have this Error Report:

  Environment Information :
  System : Linux-2.6.38-13-generic-i686-with-Ubuntu-11.04-natty
  OS Name : posix
  Distributor ID: Ubuntu
  Description: Ubuntu 11.04
  Release: 11.04
  Codename: natty
  Operating System Release : 2.6.38-13-generic
  Operating System Version : #53-Ubuntu SMP Mon Nov 28 19:23:39 UTC 2011
  Operating System Architecture : 32bit
  Operating System Locale : fr_FR.UTF8
  Python Version : 2.7.1+
  OpenERP-Client Version : 6.0.3
  Last revision No. & ID :1918 <email address hidden>
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/usr/local/lib/python2.7/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/usr/local/lib/python2.7/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/openerp-server/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/local/lib/python2.7/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/malatesta/openerp/addons/account/wizard/account_fiscalyear_close.py", line 234, in data_save
      obj_acc_move.validate(cr, uid, [move_id], context=context)
    File "/home/malatesta/openerp/addons/account/account.py", line 1508, in validate
      self._centralise(cr, uid, move, 'debit', context=context)
    File "/home/malatesta/openerp/addons/account/account.py", line 1396, in _centralise
    ...

Read more...

Revision history for this message
MALATESTA Yves (malatestay) wrote :

Hi,
Following revision 4988 seems to fix the problem.
We try to do some test next week and close bug if the results are OK.

Thanks

Revision history for this message
MALATESTA Yves (malatestay) wrote :

Sorry that is revision 4986

Thanks

Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello ,

As per your comment #2 I am closing this issue.

Thank you!

Changed in openobject-server:
status: Incomplete → Invalid
Changed in openobject-server:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
status: Invalid → New
tags: added: maintenance
Revision history for this message
Erik Miers (p949b) wrote :

Just experienced the same issue on a live system.

Any workaround for this?

I don't know why the system is dealing with different currencies - we only use one currency in our whole setup...

Thx - comments appreciated

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.