diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-09-27 13:11:18 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-09-27 13:11:18 +0200 |
| commit | 08d7b4136d058bd3c6c5da55350d4e4b5f8a3d5f (patch) | |
| tree | 56ac780a2338b2607cb5387bbc88b3b51839decf /addons | |
| parent | 23620b2e54530af157152ca0a70f90269b1bc4e9 (diff) | |
| parent | e66ae2e6718bb574ea7ccd51e295484835f3222e (diff) | |
[FIX] point_of_sale: return empty list instead of False for report computation (opw 598437)
bzr revid: mat@openerp.com-20130927111118-bis9odhacjqaqmyp
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/point_of_sale/report/pos_details.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |
