Skip to Content
Menu
This question has been flagged
1538 Views

I created new submenu in CRM to show  base.view_partner_tree but I got AssertionError:Element Odoo has extra record.Here is my code.

<record id="similar_contact_action_tree" model="ir.ui.view">

<field name="name">similar_contact_action_tree</field>

<field name="model">res.partner</field>

<field name="inherit_id" ref="base.view_partner_tree"></field>

<field name="arch" type="xml">

</field>

</record>

<record id="similar_contact_action" model="ir.actions.act_window">

<field name="name">Similar Contacts</field>

<field name="type">ir.actions.act_window</field>

<field name="res_model">res.partner</field>

<field name="view_model">kanban,tree,form</field>

<field name="view_type">tree</field>

<field name="view_id" ref="similar_contact_action_tree"></field>

<field name="context">{"search_default_customer":1}</field>

<field name="help" type="html">

<p> Similar Contacts</p>

</field>

</record>

<menuitem action="similar_contact_action"

id="menu_similar_contact_action"

parent="crm.crm_menu_root"></menuitem>

Avatar
Discard
Related Posts Replies Views Activity
2
Jul 24
942
1
Jun 24
3563
1
Oct 23
8590
1
Oct 23
97
1
Aug 23
2192