projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed79bc2
)
[FIX] report: allow using 0 decimal precision in rml reports
author
Denis Ledoux
<dle@odoo.com>
Thu, 7 Aug 2014 12:50:14 +0000
(14:50 +0200)
committer
Denis Ledoux
<dle@odoo.com>
Thu, 7 Aug 2014 12:50:14 +0000
(14:50 +0200)
openerp/report/report_sxw.py
patch
|
blob
|
history
diff --git
a/openerp/report/report_sxw.py
b/openerp/report/report_sxw.py
index
493d0b6
..
bde915b
100644
(file)
--- a/
openerp/report/report_sxw.py
+++ b/
openerp/report/report_sxw.py
@@
-265,7
+265,9
@@
class rml_parse(object):
elif (hasattr(obj, '_field') and\
isinstance(obj._field, (float_field, function_field)) and\
obj._field.digits):
- d = obj._field.digits[1] or DEFAULT_DIGITS
+ d = obj._field.digits[1]
+ if not d and d is not 0:
+ d = DEFAULT_DIGITS
return d
def formatLang(self, value, digits=None, date=False, date_time=False, grouping=True, monetary=False, dp=False, currency_obj=False):