Can be that if not currency_obj.is_zero(cr, uid, currency_id, row['amount_currency'] or 0.0) is enough if other issue will not come.
-- You received this bug notification because you are a member of C2C OERPScenario, which is subscribed to OpenERP Project Group. https://bugs.launchpad.net/bugs/900286 Title: journal entries with journal centralised counterpart error Status in OpenERP Addons (modules): New 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 _______________________________________________ Mailing list: https://launchpad.net/~c2c-oerpscenario Post to : [email protected] Unsubscribe : https://launchpad.net/~c2c-oerpscenario More help : https://help.launchpad.net/ListHelp

