Skip to content

Commit

Permalink
[FIX] l10n_it_reverse_charge: remove default otherwise rc field is no…
Browse files Browse the repository at this point in the history
…t computed during the account.move.line creation (#1)
  • Loading branch information
tafaRU authored and are-agilebg committed Jul 3, 2023
1 parent 4639d61 commit 56a8a1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions l10n_it_reverse_charge/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ def _compute_rc_flag(self):
if line.move_id.is_purchase_document():
line.rc = bool(line.move_id.fiscal_position_id.rc_type_id)

rc = fields.Boolean(
"RC", compute="_compute_rc_flag", store=True, readonly=False, default=False
)
rc = fields.Boolean("RC", compute="_compute_rc_flag", store=True, readonly=False)


class AccountMove(models.Model):
Expand Down

0 comments on commit 56a8a1e

Please sign in to comment.