diff --git a/helpdesk_mgmt/models/helpdesk_ticket.py b/helpdesk_mgmt/models/helpdesk_ticket.py index 513e7db989..d463924265 100644 --- a/helpdesk_mgmt/models/helpdesk_ticket.py +++ b/helpdesk_mgmt/models/helpdesk_ticket.py @@ -67,10 +67,7 @@ def _read_group_stage_ids(self, stages, domain, order): unattended = fields.Boolean(related="stage_id.unattended", store=True) tag_ids = fields.Many2many(comodel_name="helpdesk.ticket.tag", string="Tags") company_id = fields.Many2one( - comodel_name="res.company", - string="Company", - required=True, - default=lambda self: self.env.company, + related="team_id.company_id", string="Company", store=True, readonly=True ) channel_id = fields.Many2one( comodel_name="helpdesk.ticket.channel",