diff --git a/modules/account_cash_rounding/currency.py b/modules/account_cash_rounding/currency.py index daf3712743..8ce8dae8fa 100644 --- a/modules/account_cash_rounding/currency.py +++ b/modules/account_cash_rounding/currency.py @@ -16,4 +16,8 @@ class Currency(metaclass=PoolMeta): depends=['digits']) def cash_round(self, amount, rounding=ROUND_HALF_EVEN): - return self._round(amount, self.cash_rounding, rounding) + if self.cash_rounding is not None: + factor = self.cash_rounding + else: + factor = self.rounding + return self._round(amount, factor, rounding)