mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] account_journal_restrict_mode: make field readonly to not allow editing in the view
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user