← Back to team overview

openerp-india team mailing list archive

[Bug 912223] [NEW] Close Fiascla Year in Accounting

 

Public bug reported:

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 olt@xxxxxxxxxxx-20111215072039-is8ffprxux3mc221
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'

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/912223

Title:
  Close Fiascla Year in Accounting

Status in OpenERP Server:
  New

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 olt@xxxxxxxxxxx-20111215072039-is8ffprxux3mc221
  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'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/912223/+subscriptions


Follow ups

References