Skip to content

Commit 7b14136

Browse files
authored
fix
1 parent 26cc9de commit 7b14136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smile_decimal_precision/models/res_currency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def _get_display_decimal_places(self):
1818
for currency in self:
1919
if not currency.display_rounding:
2020
currency.display_decimal_places = currency.decimal_places
21-
elif 0 < self.display_rounding < 1:
21+
elif 0 < currency.display_rounding < 1:
2222
currency.display_decimal_places = \
2323
int(math.ceil(math.log10(1 / currency.display_rounding)))
2424
else:

0 commit comments

Comments
 (0)