openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #07202
[Bug 900286] Re: journal entries with journal centralised counterpart error
[Expired for OpenERP Addons because there has been no activity for 60
days.]
** Changed in: openobject-addons
Status: Incomplete => Expired
--
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):
Expired
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