Skip to content

Commit

Permalink
[FIX]
Browse files Browse the repository at this point in the history
  • Loading branch information
gfcapalbo committed Dec 5, 2023
1 parent 2fdf419 commit 2ec172d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions l10n_nl_tax_statement/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ def write(self, values):
for protected_field in protected_fields_in_values:
if protected_field not in invalid_fields:
values.pop(protected_field)
for this in self:
this._l10n_nl_vat_statement_check_state()
return super(AccountMoveLine, self).write(values)
if self._l10n_nl_vat_statement_should_check_write(values):
for this in self:
this._l10n_nl_vat_statement_check_state()
return super().write(values)

@api.model
def _l10n_nl_vat_statement_should_check_write(self, values):
Expand Down

0 comments on commit 2ec172d

Please sign in to comment.