in bank statement form when i tried to import invoice from button import invoices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
Accounting > cash and bank > bank statment >import invoice(button) > add > ok
#in bank statement form when i tried to import invoice from button import invoices i got this Trace back
Traceback (most recent call last):
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
}, context=context)
File "/home/
self.
File "/home/
if not fun(self, cr, uid, ids):
File "/home/
if not self.pool.
File "/home/
return abs(self.round(cr, uid, currency, amount)) < currency.rounding
File "/home/
return round(amount / currency.rounding) * currency.rounding
TypeError: unsupported operand type(s) for /: 'float' and 'NoneType'
Related branches
- Mustufa Rangwala (Open ERP) (community): Approve
- qdp (OpenERP): Pending requested
-
Diff: 11 lines (+1/-1)1 file modifiedaccount_voucher/account_voucher.py (+1/-1)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Error appear due to changes made on voucher (now currency_id field type is fields.related ), so we are not able to access its value in method _check_amount. We can fix it by using bank statement's currency.
Thanks.
Mustufa