تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3101 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة

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.

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Thank you, its work ! 


Have a good day ! 

الصورة الرمزية
إهمال

Please Vote up for the Solution.
Thanks

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 24
3250
2
أكتوبر 19
3591
0
مايو 24
1560
2
أغسطس 23
2678
2
أبريل 23
2138