Files
app-odoo/app_company_chart_hierarchy/views/res_company_views.xml
2019-05-11 18:06:11 +08:00

38 lines
1.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="app_view_company_form" model="ir.ui.view">
<field name="name">app.res.company.form</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='logo']" position="before">
<div id="o_node_container">
<div id="o_node_main">
<span id="add_image"/>
<span id="add_title"/>
<span id="add_notebook"/>
</div>
<div id="o_node_right">
<h4 class="o_chart_hierarchy_title mb16 mt0">Hierarchy Chart</h4>
<field name="child_ids" widget="web_chart_hierarchy"
string="Please get widget from https://apps.odoo.com/apps/modules/12.0/app_web_chart_hierarchy/"
options="{
'image': 'logo',
'desc': 'email',
'direct_sub': 'child_ids',}"/>
</div>
</div>
</xpath>
<xpath expr="//span[@id='add_image']" position="after">
<xpath expr="//field[@name='logo']" position="move"/>
</xpath>
<xpath expr="//span[@id='add_title']" position="after">
<xpath expr="//div[@class='oe_title']" position="move"/>
</xpath>
<xpath expr="//span[@id='add_notebook']" position="after">
<xpath expr="//notebook" position="move"/>
</xpath>
</field>
</record>
</odoo>