From e66ae2e6718bb574ea7ccd51e295484835f3222e Mon Sep 17 00:00:00 2001 From: Hardik Ansodariya Date: Fri, 27 Sep 2013 16:05:43 +0530 Subject: [PATCH] [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 --- addons/point_of_sale/report/pos_details.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/report/pos_details.py b/addons/point_of_sale/report/pos_details.py index 439371c0a05..56778b06e0a 100644 --- a/addons/point_of_sale/report/pos_details.py +++ b/addons/point_of_sale/report/pos_details.py @@ -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')