[FIX] point_of_sale: return empty list instead of False for report computation (opw 598437)

bzr revid: mat@openerp.com-20130927111118-bis9odhacjqaqmyp
This commit is contained in:
Martin Trigaux 2013-09-27 13:11:18 +02:00
commit 08d7b4136d
1 changed files with 1 additions and 1 deletions

View File

@ -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')