From 10a3df3511221dcbce654d2a38f77a2ce8eaa4c7 Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Tue, 28 Dec 2021 09:41:54 +0000 Subject: [PATCH] [FIX] account: 'ref' should be readonly on account.move.line closes odoo/odoo#82508 X-original-commit: 38c13bbef39e3e82a77cfd4a316be94280e3cee5 Related: odoo/enterprise#23376 Signed-off-by: Florian Gilbert Signed-off-by: Laurent Smet --- addons/account/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index eb5852eb043..6994a6dcc90 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -3472,7 +3472,7 @@ class AccountMoveLine(models.Model): help="The move of this entry line.") move_name = fields.Char(string='Number', related='move_id.name', store=True, index=True) date = fields.Date(related='move_id.date', store=True, readonly=True, index=True, copy=False, group_operator='min') - ref = fields.Char(related='move_id.ref', store=True, copy=False, index=True, readonly=False) + ref = fields.Char(related='move_id.ref', store=True, copy=False, index=True, readonly=True) parent_state = fields.Selection(related='move_id.state', store=True, readonly=True) journal_id = fields.Many2one(related='move_id.journal_id', store=True, index=True, copy=False) company_id = fields.Many2one(related='move_id.company_id', store=True, readonly=True)