← Back to team overview

openerp-india team mailing list archive

[Bug 900286] Re: journal entries with journal centralised counterpart error

 

Hello,

Would you please try with the latest updated code.

If you still face the problem then you can reopen this with more
information.

Thanks.


** Changed in: openobject-addons
       Status: Expired => Invalid

-- 
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/900286

Title:
  journal entries with journal centralised counterpart error

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  Hello,

  I'm working on v6.0.3 and got error when I was creating journal
  entries record with items. Journal have "centralised counterpart"
  checked.

  Log:

  File "/home/komsas/addons/account/account.py", line 1241, in write
  self.validate(cr, uid, ids, context=context)
  File "/home/komsas/addons/account/account.py", line 1498, in validate
  self._centralise(cr, uid, move, 'debit', context=context)
  File "/home/komsas/addons/account/account.py", line 1386, in _centralise
  if not currency_obj.is_zero(cr, uid, currency_id, row['amount_currency']):
  File "/home/komsas/openerp-server/bin/addons/base/res/res_currency.py", line 100, in is_zero
  return abs(self.round(cr, uid, currency, amount)) < currency.rounding
  File "/home/komsas/openerp-server/bin/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'

  Problem comes that row['amount_currency'] can be null if I you don't
  set currency for jouranl item.

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


References