From 6b27d9f91a050ce5a8484fd53ba0bfcafe6d28c8 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Fri, 8 Dec 2017 16:03:08 +0100 Subject: [PATCH] [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 --- addons/point_of_sale/models/pos_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/models/pos_order.py b/addons/point_of_sale/models/pos_order.py index 1f1cdcc328d..94d198c0f3d 100644 --- a/addons/point_of_sale/models/pos_order.py +++ b/addons/point_of_sale/models/pos_order.py @@ -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,