Skip to Content
Menu
This question has been flagged
2 Replies
1797 Views

Hello,

I am new to Odoo and I don't know how I can remove the kanban view from the crm_leads model. I specify that I am looking to do it in the code.

At the moment, I have tried to get the action

id="crm.crm_lead_action_pipeline" model="ir.actions.act_window">
name="view_mode">tree,form



I also tried to change the name to test with :

id="crm.crm_lead_action_pipeline" model="ir.actions.act_window">
name="name">Pipeline


But I didn't succeed, and I don't understand why

Thanks for your feedback
Tolik

Avatar
Discard
Best Answer

Hi ,

Actually with view_mode, you need to delete the kanban view which is attached to the pipeline Action views. If you check with the record id "crm_lead_action_pipeline_view_kanban" , there is a action act window view which is linked with Pipeline Menu. So you need to unlink that view with view mode also 

just like :

            "For Pipeline Action"

        record model="ir.actions.act_window" id="crm.crm_lead_action_pipeline">
field name="name">Pipeline
field name="res_model">crm.lead
field name="view_mode">tree,graph,pivot,form
field name="domain">[('type','=','opportunity')]
field name="context">{
'default_type': 'opportunity',
'search_default_assigned_to_me': 1
}
field name="search_view_id" ref="crm.view_crm_case_opportunities_filter"/>
/record>

        "For Pipeline Kanban Action View"
record id="crm.crm_lead_action_pipeline_view_kanban" model='ir.actions.act_window.view'>
field name="sequence" eval="0"/>
field name="view_mode">kanban
field name="view_id" ref="crm.crm_case_kanban_view_leads"/>
field name="act_window_id" eval="False"/>
/record>

Hope it will help you, 
Thanks and Please vote up.

Avatar
Discard
Author Best Answer

Thank you, its work ! 


Have a good day ! 

Avatar
Discard

Please Vote up for the Solution.
Thanks

Related Posts Replies Views Activity
1
Jun 24
979
2
Oct 19
2479
0
May 24
310
2
Aug 23
1412
2
Apr 23
1024