You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.5 KiB
44 lines
1.5 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- © 2014-2015 Tecnativa S.L. - Jairo Llopis
|
|
© 2016 Tecnativa S.L. - Vicent Cubells
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
|
|
|
|
<odoo>
|
|
|
|
<record id="res_partner_department_action" model="ir.actions.act_window">
|
|
<field name="name">Departments</field>
|
|
<field name="res_model">res.partner.department</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree</field>
|
|
</record>
|
|
|
|
<record id="res_partner_department_tree_view" model="ir.ui.view">
|
|
<field name="name">CRM department tree</field>
|
|
<field name="model">res.partner.department</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Departments" editable="top">
|
|
<field name="name"/>
|
|
<field name="parent_id"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="res_partner_department_form_view" model="ir.ui.view">
|
|
<field name="name">CRM department form</field>
|
|
<field name="model">res.partner.department</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<group>
|
|
<field name="name"/>
|
|
<field name="parent_id"/>
|
|
<field name="child_ids"/>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<menuitem action="res_partner_department_action"
|
|
id="menu_res_partner_department"
|
|
parent="base.menu_config_address_book"/>
|
|
|
|
</odoo>
|