summaryrefslogtreecommitdiff
path: root/addons/l10n_latam_invoice_document
diff options
context:
space:
mode:
authorBruno Zanotti (ADHOC) <bz@adhoc.com.ar>2021-03-15 12:50:19 +0000
committerBruno Zanotti (ADHOC) <bz@adhoc.com.ar>2021-04-15 17:15:36 +0000
commitf05dd3596ac22c5a8fb8c3feff7bf978a7698c73 (patch)
tree71ebd2790e54417c07823e1def5559c021b27560 /addons/l10n_latam_invoice_document
parent1bf2e8805503d9bbebec58df9933abab3db70bd2 (diff)
[FIX] l10n_latam_invoice_document: monetary fields
The fields l10n_latam_price_unit and l10n_latam_price_net should be float instead of monetary in order to show rightly the decimal accuracy on invoice's reports closes odoo/odoo#69339 X-original-commit: 59afbc2e34c80516fa412de92f0d3bba2378661e Signed-off-by: Josse Colpaert <jco@openerp.com>
Diffstat (limited to 'addons/l10n_latam_invoice_document')
-rw-r--r--addons/l10n_latam_invoice_document/models/account_move_line.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/l10n_latam_invoice_document/models/account_move_line.py b/addons/l10n_latam_invoice_document/models/account_move_line.py
index 7ec91811a80..19664fc2c3a 100644
--- a/addons/l10n_latam_invoice_document/models/account_move_line.py
+++ b/addons/l10n_latam_invoice_document/models/account_move_line.py
@@ -17,9 +17,9 @@ class AccountMoveLine(models.Model):
l10n_latam_document_type_id = fields.Many2one(
related='move_id.l10n_latam_document_type_id', auto_join=True, store=True, index=True)
- l10n_latam_price_unit = fields.Monetary(compute='compute_l10n_latam_prices_and_taxes')
+ l10n_latam_price_unit = fields.Float(compute='compute_l10n_latam_prices_and_taxes', digits='Product Price')
l10n_latam_price_subtotal = fields.Monetary(compute='compute_l10n_latam_prices_and_taxes')
- l10n_latam_price_net = fields.Monetary(compute='compute_l10n_latam_prices_and_taxes')
+ l10n_latam_price_net = fields.Float(compute='compute_l10n_latam_prices_and_taxes', digits='Product Price')
l10n_latam_tax_ids = fields.One2many(compute="compute_l10n_latam_prices_and_taxes", comodel_name='account.tax')
@api.depends('price_unit', 'price_subtotal', 'move_id.l10n_latam_document_type_id')