Skip to content

Commit

Permalink
Fix currency conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
astirpe committed Sep 12, 2018
1 parent dbb9769 commit 8bd9fe0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions l10n_nl_tax_statement_icp/models/l10n_nl_vat_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _get_partner_amounts_map(self):
@api.multi
def _check_config_tag_3b_omzet(self):
''' Checks the tag 3b Omzet, as configured for the BTW statement'''
if self._context.get('skip_check_config_tag_3b_omzet'):
if self.env.context.get('skip_check_config_tag_3b_omzet'):
return
for statement in self:
if not statement.tag_3b_omzet or not statement.tag_3b_omzet_d:
Expand Down Expand Up @@ -139,8 +139,8 @@ def _prepare_icp_line_from_move_line(self, line):
self.ensure_one()

balance = line.balance
if line.currency_id and line.currency_id != self.currency_id:
balance = line.currency_id.with_context(
if line.company_currency_id != self.currency_id:
balance = line.company_currency_id.with_context(
date=line.date
).compute(balance, self.currency_id, round=True)
amount_products = balance
Expand Down

0 comments on commit 8bd9fe0

Please sign in to comment.