From 750e2a2eee114583b77666c945fe70c55493194f Mon Sep 17 00:00:00 2001 From: "Maruan Aguerdouh (magm)" <magm@odoo.com> Date: Thu, 22 Jun 2023 11:04:22 +0000 Subject: [PATCH] [FIX] crm: changing salesteam field in mobile without error Steps to reproduce: - Install CRM module and go to any lead view. - Make sure we are in mobile mode, and the page was loaded in mobile mode. - Go to Extra Information, and try to change the sales team field. Issue: We got an error since we didn't have a proper view for this field in mobile. Solution: Adding the proper `kanban_view_ref` as in similar fields will fix the issue and let us change the field without error. opw-3323976 closes odoo/odoo#126044 Signed-off-by: Maruan Aguerdouh Mohtar (magm) <magm@odoo.com> --- addons/crm/views/crm_lead_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm/views/crm_lead_views.xml b/addons/crm/views/crm_lead_views.xml index 2fd32e94c8e8..25fb4c61ec77 100644 --- a/addons/crm/views/crm_lead_views.xml +++ b/addons/crm/views/crm_lead_views.xml @@ -328,7 +328,7 @@ <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/> - <field name="team_id" options="{'no_open': True, 'no_create': True}"/> + <field name="team_id" options="{'no_open': True, 'no_create': True}" context="{'kanban_view_ref' : 'sales_team.crm_team_view_kanban'}"/> <field name="day_open" /> <field name="day_close"/> <field name="type" invisible="1"/> -- GitLab