summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaglis Jonaitis <naglis@mailbox.org>2019-08-25 20:39:55 +0000
committerMartin Trigaux <mat@odoo.com>2019-10-03 14:51:01 +0000
commit6404fc80b2685324bf4362ccad80c03c099695d4 (patch)
treebbbdb4dd44a002234c27c52a1c5f987e823275b9
parent47b42e7f28790cbb7d574a0c9d00704d4cf7ffff (diff)
[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) <mat@odoo.com>
-rw-r--r--addons/point_of_sale/models/pos_session.py1
-rw-r--r--addons/sale/wizard/sale_make_invoice_advance.py2
2 files changed, 1 insertions, 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)