中国本土应用
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.

50 lines
1.8KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <data>
  4. <record id="view_company_form" model="ir.ui.view">
  5. <field name="name">res.company.form.inherit.oec_im_wecom_base</field>
  6. <field name="model">res.company</field>
  7. <field name="inherit_id" ref="base.view_company_form" />
  8. <field name="arch" type="xml">
  9. <xpath expr="//field[@name='name']" position="replace">
  10. <field name="name" class="w-100"/>
  11. </xpath>
  12. <xpath expr="//div[@class='oe_title']/h1" position="after">
  13. <label for="abbreviated_name" attrs="{ 'invisible': [('is_wecom_organization', '=', False)]}"/>
  14. <h1 attrs="{ 'invisible': [('is_wecom_organization', '=', False)]}">
  15. <field name="abbreviated_name" class="w-100" attrs="{ 'required': [('is_wecom_organization', '!=', False)]}"/>
  16. </h1>
  17. </xpath>
  18. <xpath expr="//page[last()]" position="after">
  19. <page string="WeCom Information" name="wecom_info">
  20. <group>
  21. <field name="is_wecom_organization"/>
  22. </group>
  23. </page>
  24. </xpath>
  25. </field>
  26. </record>
  27. <record id="view_company_tree" model="ir.ui.view">
  28. <field name="name">res.company.tree</field>
  29. <field name="model">res.company</field>
  30. <field name="inherit_id" ref="base.view_company_tree"/>
  31. <field name="arch" type="xml">
  32. <xpath expr="//field[@name='partner_id']" position="after">
  33. <field name="parent_id"/>
  34. <field name="is_wecom_organization"/>
  35. </xpath>
  36. </field>
  37. </record>
  38. </data>
  39. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1