47 lines
1.6 KiB
XML
Executable File
47 lines
1.6 KiB
XML
Executable File
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
|
|
<!-- Search type de contact-->
|
|
<record model="ir.ui.view" id="course_search_view">
|
|
<field name="name">contact search</field>
|
|
<field name="model">contact.type</field>
|
|
<field name="arch" type="xml">
|
|
<search>
|
|
<field name="name"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<!-- Tree type de contact-->
|
|
<record model="ir.ui.view" id="course_tree_view">
|
|
<field name="name">contact tree</field>
|
|
<field name="model">contact.type</field>
|
|
<field name="arch" type="xml">
|
|
<tree editable="bottom">
|
|
<field name="name"/>
|
|
<field name="Actif"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Action a declencher en cas du clique sur contact type-->
|
|
<record model="ir.actions.act_window" id="contact_type_action">
|
|
<field name="name">Contact Type</field>
|
|
<field name="res_model">contact.type</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
|
|
|
|
<!-- sous menu appartenant au menu contacts du module contacts-->
|
|
<menuitem id="configuration_type_contact" name="Configuration"
|
|
parent="contacts.menu_contacts"/>
|
|
<!-- element contact type pour afficher/ajouter/modifier le type du contact-->
|
|
<menuitem id="typecontact_menu" name="Contact Type" parent="configuration_type_contact"
|
|
action="contact_type_action"/>
|
|
|
|
</data>
|
|
</odoo>
|