Skip to content

Commit

Permalink
[IMP] account_journal_restrict_mode: make field readonly to not allow…
Browse files Browse the repository at this point in the history
… editing in the view
  • Loading branch information
JordiMForgeFlow committed Oct 7, 2024
1 parent aa74581 commit c51e1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_journal_restrict_mode/models/account_journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class AccountJournal(models.Model):
_inherit = "account.journal"

restrict_mode_hash_table = fields.Boolean(default=True)
restrict_mode_hash_table = fields.Boolean(default=True, readonly=True)

@api.constrains("restrict_mode_hash_table")
def _check_journal_restrict_mode(self):
Expand Down

0 comments on commit c51e1a5

Please sign in to comment.