Skip to content

Commit

Permalink
[FIX]l10n_ar_ux: show correct change of currency rate in the chatter
Browse files Browse the repository at this point in the history
closes #587

Signed-off-by: Katherine Zaoral <kz@adhoc.com.ar>
  • Loading branch information
pablohmontenegro committed Mar 11, 2022
1 parent 91bd789 commit 9d1514a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_ar_ux/wizards/account_move_change_rate.py
Expand Up @@ -31,7 +31,7 @@ def _onchange_move(self):
self.currency_rate = self.move_id.l10n_ar_currency_rate or self.move_id.computed_currency_rate

def confirm(self):
message = _("Currency rate changed from %s to %s") % (self.currency_rate, self.currency_rate)
message = _("Currency rate changed from %s to %s") % (self.move_id.l10n_ar_currency_rate or self.move_id.computed_currency_rate, self.currency_rate)
self.move_id.message_post(body=message)
self.move_id.l10n_ar_currency_rate = self.currency_rate
return {'type': 'ir.actions.act_window_close'}

0 comments on commit 9d1514a

Please sign in to comment.