from odoo import api, fields, models, SUPERUSER_ID, _ from odoo.exceptions import UserError class AccountUpdateLockDate(models.TransientModel): _inherit = 'account.lock.date' excluded_user_ids = fields.Many2many( related='company_id.excluded_user_ids', readonly=False, string="Excluded Users" )