[FIXED] pos: Fixed the issue of pos detail report when trying to pring report having order without TAX were throwing error(Maintenance case: 598437)
bzr revid: han@tinyerp.com-20130927103543-jppq53ugkj1gk2cl
This commit is contained in:
parent
c7471d1bff
commit
e66ae2e671
|
@ -162,7 +162,7 @@ class pos_details(report_sxw.rml_parse):
|
|||
for tax in line_taxes['taxes']:
|
||||
taxes.setdefault(tax['id'], {'name': tax['name'], 'amount':0.0})
|
||||
taxes[tax['id']]['amount'] += tax['amount']
|
||||
return [value for value in taxes.values()] or False
|
||||
return [value for value in taxes.values()] or []
|
||||
|
||||
def _get_user_names(self, user_ids):
|
||||
user_obj = self.pool.get('res.users')
|
||||
|
|
Loading…
Reference in New Issue