From 6404fc80b2685324bf4362ccad80c03c099695d4 Mon Sep 17 00:00:00 2001 From: Naglis Jonaitis Date: Sun, 25 Aug 2019 20:39:55 +0000 Subject: [PATCH] [IMP] point_of_sale, sale: remove digits attribute from monetary fields Follow-up of #35336 closes odoo/odoo#36047 Signed-off-by: Martin Trigaux (mat) --- addons/point_of_sale/models/pos_session.py | 1 - addons/sale/wizard/sale_make_invoice_advance.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/point_of_sale/models/pos_session.py b/addons/point_of_sale/models/pos_session.py index f215209fd81..d3d5775835a 100644 --- a/addons/point_of_sale/models/pos_session.py +++ b/addons/point_of_sale/models/pos_session.py @@ -72,7 +72,6 @@ class PosSession(models.Model): help="Total of all paid sales orders") cash_register_balance_end = fields.Monetary( compute='_compute_cash_balance', - digits=0, string="Theoretical Closing Balance", help="Sum of opening balance and transactions.", readonly=True) diff --git a/addons/sale/wizard/sale_make_invoice_advance.py b/addons/sale/wizard/sale_make_invoice_advance.py index f7ad90721ed..126ade7fd8a 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.py +++ b/addons/sale/wizard/sale_make_invoice_advance.py @@ -58,7 +58,7 @@ class SaleAdvancePaymentInv(models.TransientModel): count = fields.Integer(default=_count, string='Order Count') amount = fields.Float('Down Payment Amount', digits='Account', help="The percentage of amount to be invoiced in advance, taxes excluded.") currency_id = fields.Many2one('res.currency', string='Currency', default=_default_currency_id) - fixed_amount = fields.Monetary('Down Payment Amount(Fixed)', digits='Account', help="The fixed amount to be invoiced in advance, taxes excluded.") + fixed_amount = fields.Monetary('Down Payment Amount(Fixed)', help="The fixed amount to be invoiced in advance, taxes excluded.") deposit_account_id = fields.Many2one("account.account", string="Income Account", domain=[('deprecated', '=', False)], help="Account used for deposits", default=_default_deposit_account_id) deposit_taxes_id = fields.Many2many("account.tax", string="Customer Taxes", help="Taxes used for deposits", default=_default_deposit_taxes_id)