[FIX] point_of_sale: digits field doesn't exist on currency

As the field digit doesn't exist on currency, we use decimal_places
instead which is the field containing the number of digits of the
corresponding rounding field
This commit is contained in:
Pierre Masereel
2017-12-08 16:03:08 +01:00
parent cd31e82689
commit 6b27d9f91a
+1 -1
View File
@@ -981,7 +981,7 @@ class ReportSaleDetails(models.AbstractModel):
payments = []
return {
'currency_precision': user_currency.digits,
'currency_precision': user_currency.decimal_places,
'total_paid': user_currency.round(total),
'payments': payments,
'company_name': self.env.user.company_id.name,