Merge PR #1945 into 16.0

Signed-off-by AaronHForgeFlow
This commit is contained in:
OCA-git-bot
2024-10-07 10:19:48 +00:00

View File

@@ -8,7 +8,7 @@ from odoo.exceptions import UserError
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):