|
- <?xml version="1.0" encoding="UTF-8"?>
- <odoo>
- <data>
-
- <record id="view_company_form" model="ir.ui.view">
- <field name="name">res.company.form.inherit.oec_im_wecom_base</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='name']" position="replace">
- <field name="name" class="w-100"/>
- </xpath>
-
- <xpath expr="//div[@class='oe_title']/h1" position="after">
- <label for="abbreviated_name" attrs="{ 'invisible': [('is_wecom_organization', '=', False)]}"/>
- <h1 attrs="{ 'invisible': [('is_wecom_organization', '=', False)]}">
- <field name="abbreviated_name" class="w-100" attrs="{ 'required': [('is_wecom_organization', '!=', False)]}"/>
- </h1>
-
- </xpath>
-
- <xpath expr="//page[last()]" position="after">
-
- <page string="WeCom Information" name="wecom_info">
- <group>
- <field name="is_wecom_organization"/>
- </group>
- </page>
-
- </xpath>
- </field>
- </record>
-
-
- <record id="view_company_tree" model="ir.ui.view">
- <field name="name">res.company.tree</field>
- <field name="model">res.company</field>
- <field name="inherit_id" ref="base.view_company_tree"/>
- <field name="arch" type="xml">
- <xpath expr="//field[@name='partner_id']" position="after">
- <field name="parent_id"/>
- <field name="is_wecom_organization"/>
- </xpath>
- </field>
- </record>
-
-
- </data>
- </odoo>
|