Skip to content

Commit

Permalink
Allow exclusion of check
Browse files Browse the repository at this point in the history
  • Loading branch information
astirpe committed Feb 8, 2018
1 parent 2baafa2 commit 2ac9081
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions l10n_nl_tax_statement_icp/models/l10n_nl_vat_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ 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'):
return
for statement in self:
if not statement.tag_3b_omzet:
raise UserError(
Expand Down

0 comments on commit 2ac9081

Please sign in to comment.