Skip to content

Commit

Permalink
9.0-del-purchase usability _onchange_journal_id
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomacr committed Nov 24, 2017
1 parent b0b0ef3 commit afdee99
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions purchase_usability/models/account_invoice.py
Expand Up @@ -28,13 +28,3 @@ def add_purchase_line_moves(self):
('company_id', '=', self.company_id.id),
]
return action_read

# We do this for a bug when creating an invoice from
# the PO that does not get the correct currency from the PO, by default
# bring the currency of the newspaper.
@api.onchange('journal_id')
def _onchange_journal_id(self):
if self._context.get('default_currency_id', False):
self.currency_id = self._context.get('default_currency_id')
else:
super(AccountInvoice, self)._onchange_journal_id()

0 comments on commit afdee99

Please sign in to comment.