[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#69344

X-original-commit: 59afbc2e34c80516fa412de92f0d3bba2378661e
Signed-off-by: Josse Colpaert <jco@openerp.com>
This commit is contained in:
Bruno Zanotti (ADHOC)
2021-04-15 18:33:53 +00:00
parent 8a6b6dee7d
commit 6101a19512
@@ -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')