credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #01584
[Bug 900286] Re: journal entries with journal centralised counterpart error
Hello Paulius Sladkevicius
I am not able to reproduce your issue at my side.
please write steps for reproduce it
Thanks ,waiting for reply
Ravish
** Changed in: openobject-addons
Status: New => Incomplete
--
You received this bug notification because you are a member of OpenERP
Framework Experts, 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):
Incomplete
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