← Back to team overview

openerp-india team mailing list archive

[Bug 997316] Re: Validating a Bank Statement with centralized option in bank journal crashes

 

merged in trunk, v7.0

** Changed in: openobject-addons
       Status: Fix Committed => Fix Released

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

Title:
  Validating a Bank Statement with centralized option in bank journal
  crashes

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  6.1

  Setup a demo database
  Change the setting of bank journal and check the tickbox "Centralised Counterpart"
  Make a bank statement with two lines and validate it
  System crashes with following message

  Server Traceback (most recent call last):
    File "/home/tempo/openerp-6.1-1/openerp/addons/web/common/http.py", line 592, in send
      result = openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/tempo/openerp-6.1-1/openerp/netsvc.py", line 360, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/tempo/openerp-6.1-1/openerp/service/web_services.py", line 572, in dispatch
      res = fn(db, uid, *params)
    File "/home/tempo/openerp-6.1-1/openerp/osv/osv.py", line 167, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/tempo/openerp-6.1-1/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/tempo/openerp-6.1-1/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/tempo/openerp-6.1-1/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/tempo/openerp-6.1-1/openerp/addons/account/account_bank_statement.py", line 361, in button_confirm_bank
      self.create_move_from_st_line(cr, uid, st_line.id, company_currency_id, st_line_number, context)
    File "/home/tempo/openerp-6.1-1/openerp/addons/account_voucher/account_voucher.py", line 1436, in create_move_from_st_line
      return super(account_bank_statement, self).create_move_from_st_line(cr, uid, st_line.id, company_currency_id, next_number, context=context)
    File "/home/tempo/openerp-6.1-1/openerp/addons/account/account_bank_statement.py", line 270, in create_move_from_st_line
      move_line_id = account_move_line_obj.create(cr, uid, val, context=context)
    File "/home/tempo/openerp-6.1-1/openerp/addons/account/account_move_line.py", line 1371, in create
      tmp = move_obj.validate(cr, uid, [vals['move_id']], context)
    File "/home/tempo/openerp-6.1-1/openerp/addons/account/account.py", line 1624, in validate
      self._centralise(cr, uid, move, 'debit', context=context)
    File "/home/tempo/openerp-6.1-1/openerp/addons/account/account.py", line 1500, in _centralise
      }, context)
    File "/home/tempo/openerp-6.1-1/openerp/addons/account/account_move_line.py", line 1371, in create
      tmp = move_obj.validate(cr, uid, [vals['move_id']], context)
    File "/home/tempo/openerp-6.1-1/openerp/addons/account/account.py", line 1624, in validate
      self._centralise(cr, uid, move, 'debit', context=context)
    File "/home/tempo/openerp-6.1-1/openerp/addons/account/account.py", line 1519, in _centralise
      if not currency_obj.is_zero(cr, uid, currency_id, row['amount_currency']):
    File "/home/tempo/openerp-6.1-1/openerp/addons/base/res/res_currency.py", line 172, in is_zero
      return float_is_zero(amount, precision_rounding=currency.rounding)
    File "/home/tempo/openerp-6.1-1/openerp/tools/float_utils.py", line 97, in float_is_zero
      return abs(float_round(value, precision_rounding=epsilon)) < epsilon
    File "/home/tempo/openerp-6.1-1/openerp/tools/float_utils.py", line 66, in float_round
      normalized_value = value / rounding_factor # normalize
  TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'

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


References