Skip to content

Commit

Permalink
dfgd
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohmontenegro committed Mar 20, 2023
1 parent 0471177 commit 3eb7c52
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions account_ux/wizards/account_change_currency.py
Expand Up @@ -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()
Expand All @@ -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'}

0 comments on commit 3eb7c52

Please sign in to comment.