Skip to content

Commit

Permalink
[FIX] l10n_ar_ux: forced currency rate on invoice
Browse files Browse the repository at this point in the history
Ticket: 59842
Al forzar la moneda en factura no se toma esa cotización y al volver a la moneda anterior se actualizan incorrectamente los importes de las líneas.

closes #390

Related: ingadhoc/odoo-argentina#684
Signed-off-by: Katherine Zaoral <kz@adhoc.com.ar>
  • Loading branch information
pablohmontenegro committed Mar 23, 2023
1 parent 81ce31b commit 18e9d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_ux/wizards/account_change_currency.py
Expand Up @@ -64,11 +64,11 @@ def change_currency(self):
self.currency_rate)

move = self.move_id.with_context(check_move_validity=False)
move.currency_id = self.currency_to_id.id
for line in move.line_ids:
# do not round on currency digits, it is rounded automatically
# on price_unit precision
line.price_unit = line.price_unit * self.currency_rate
move.currency_id = self.currency_to_id.id

self.move_id.message_post(body=message)
return {'type': 'ir.actions.act_window_close'}

0 comments on commit 18e9d58

Please sign in to comment.