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 d0dbf72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions l10n_nl_tax_statement/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ 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()
if not self._l10n_nl_vat_statement_should_check_write(values):
for this in self:
this._l10n_nl_vat_statement_check_state()
return super(AccountMoveLine, self).write(values)

@api.model
Expand Down

0 comments on commit d0dbf72

Please sign in to comment.