[7.0] moves can have tax amount NULL -> _sum in account.tax.code crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
Observed in v7.0.
The field tax_amount of the move_line can be NULL (as opposed to 0.0).
If you have all moves with a certain tax code with a tax_amount = NULL, and then open the form view of the tax code from the web interface, it crashes because it is trying to round a NULL.
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/
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/
res2 = self._columns[
File "/home/
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/home/
where=where, where_params=
File "/home/
res2[record.id] = round(_
TypeError: a float is required
Thanks!
summary: |
- moves can have tax amount NULL -> _sum in account.tax.code crashes + [7.0] moves can have tax amount NULL -> _sum in account.tax.code crashes |