Skip to content

Commit

Permalink
[FIX] l10n_latam_invoice_document: monetary fields
Browse files Browse the repository at this point in the history
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#69339

X-original-commit: 59afbc2
Signed-off-by: Josse Colpaert <jco@openerp.com>
  • Loading branch information
bruno-zanotti committed Apr 15, 2021
1 parent 1bf2e88 commit f05dd35
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def _auto_init(self):

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')
Expand Down

0 comments on commit f05dd35

Please sign in to comment.