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.

41 lines
1.6 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <odoo>
  3. <!-- Copyright 2020 Pesol <pedro.gonzalez@pesol.es>
  4. License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
  5. <record id="view_partner_form" model="ir.ui.view">
  6. <field name="name">view.partner.address.form.extension</field>
  7. <field name="model">res.partner</field>
  8. <field name="priority">100</field>
  9. <field name="inherit_id" ref="base.view_partner_form" />
  10. <field name="arch" type="xml">
  11. <xpath
  12. expr="//field[@name='child_ids']/form/sheet/field[@name='lang']"
  13. position="replace"
  14. >
  15. <field name="active_lang_count" invisible="1" />
  16. <group attrs="{'invisible': [('active_lang_count', '&lt;=', 1)]}">
  17. <group>
  18. <field name="lang" />
  19. </group>
  20. </group>
  21. </xpath>
  22. </field>
  23. </record>
  24. <record id="view_res_partner_filter" model="ir.ui.view">
  25. <field name="name">res.partner.filter.extension</field>
  26. <field name="model">res.partner</field>
  27. <field name="inherit_id" ref="base.view_res_partner_filter" />
  28. <field name="arch" type="xml">
  29. <xpath expr="//field[@name='parent_id']" position="after">
  30. <field name="lang" />
  31. </xpath>
  32. <xpath expr="//group[@name='group_by']" position="inside">
  33. <filter
  34. name="language"
  35. string="Language"
  36. context="{'group_by' : 'lang'}"
  37. />
  38. </xpath>
  39. </field>
  40. </record>
  41. </odoo>