summaryrefslogtreecommitdiff
path: root/addons/crm_iap_lead
diff options
context:
space:
mode:
authorNasreddin (bon) <bon@odoo.com>2021-02-11 12:21:57 +0000
committerNasreddin (bon) <bon@odoo.com>2021-02-11 12:26:42 +0000
commit2df520f0506770bc7b4486d827e2c9117d0d0c68 (patch)
tree60a5b2d7a9c5304709aed3f8253fbe7a9a2ae148 /addons/crm_iap_lead
parent371b3959f77093b8b3aa310e628e63b4b68dfbd7 (diff)
[FIX] crm_iap_lead: Traceback on select Sales Team in Lead Mining Request
Issue - Install CRM module - Go to CRM -> Configuration -> Lead Generation -> Lead Mining Requests - Click on create and select a Sales Team Traceback is raised. Cause `kanban_view_ref` attribute on sales team field is hardcoded. Solution Replace value to `%(sales_team.crm_team_view_kanban)s`. opw-2444553 closes odoo/odoo#65960 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Diffstat (limited to 'addons/crm_iap_lead')
-rw-r--r--addons/crm_iap_lead/views/crm_iap_lead_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/crm_iap_lead/views/crm_iap_lead_views.xml b/addons/crm_iap_lead/views/crm_iap_lead_views.xml
index e1a967d71b2..f1c7abb3612 100644
--- a/addons/crm_iap_lead/views/crm_iap_lead_views.xml
+++ b/addons/crm_iap_lead/views/crm_iap_lead_views.xml
@@ -67,7 +67,7 @@
</group>
<group name="lead_info">
<field name="lead_type" groups="crm.group_use_lead" invisible="context.get('is_modal')" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
- <field name="team_id" no_create="1" no_open="1" attrs="{'readonly': [('state', '!=', 'draft')]}" kanban_view_ref="812"/>
+ <field name="team_id" no_create="1" no_open="1" attrs="{'readonly': [('state', '!=', 'draft')]}" kanban_view_ref="%(sales_team.crm_team_view_kanban)s"/>
<field name="user_id" no_create="1" no_open="1" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
<field name="tag_ids" string="Default Tags" widget="many2many_tags" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
</group>