We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26cc9de commit 7b14136Copy full SHA for 7b14136
smile_decimal_precision/models/res_currency.py
@@ -18,7 +18,7 @@ def _get_display_decimal_places(self):
18
for currency in self:
19
if not currency.display_rounding:
20
currency.display_decimal_places = currency.decimal_places
21
- elif 0 < self.display_rounding < 1:
+ elif 0 < currency.display_rounding < 1:
22
currency.display_decimal_places = \
23
int(math.ceil(math.log10(1 / currency.display_rounding)))
24
else:
0 commit comments