diff --git a/addons_extensions/helpdesk/controllers/portal.py b/addons_extensions/helpdesk/controllers/portal.py index 04d265b04..c0d970109 100644 --- a/addons_extensions/helpdesk/controllers/portal.py +++ b/addons_extensions/helpdesk/controllers/portal.py @@ -179,9 +179,8 @@ class CustomerPortal(portal.CustomerPortal): ('use_website_helpdesk_form', '=', True), '|', ('company_id', '=', False), - ('company_id', 'in', [request.env.company.id]) + ('company_id', 'in', [request.env.user.company_id.id]) ]) - selection_dict = dict( request.env['helpdesk.team']._fields['portal_ticket_type'].selection )