From 3eb7c52d7f7c5250acc95a1077f84952ab79554b Mon Sep 17 00:00:00 2001 From: Pablo Montenegro Date: Mon, 20 Mar 2023 11:41:00 -0300 Subject: [PATCH] dfgd --- account_ux/wizards/account_change_currency.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/account_ux/wizards/account_change_currency.py b/account_ux/wizards/account_change_currency.py index 8f2c0d37..68aa2858 100644 --- a/account_ux/wizards/account_change_currency.py +++ b/account_ux/wizards/account_change_currency.py @@ -54,8 +54,6 @@ def onchange_currency(self): 1.0, self.currency_to_id, self.move_id.company_id, date=self.move_id.date or fields.Date.context_today(self)) - if self.move_id.company_currency_id == self.currency_to_id: - self.move_id.l10n_ar_currency_rate = 0 def change_currency(self): self.ensure_one() @@ -71,7 +69,6 @@ def change_currency(self): # 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'}