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.

48 lines
1.9 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. <group>
  16. <group>
  17. <field name="lang" />
  18. </group>
  19. </group>
  20. </xpath>
  21. <!-- HACK https://github.com/odoo/odoo/issues/53738
  22. TODO Remove when fixed -->
  23. <field name="lang" position="after">
  24. <field name="partner_lang" invisible="1"/>
  25. </field>
  26. <field name="child_ids" position="attributes">
  27. <attribute name="context" operation="python_dict" key="default_lang">partner_lang</attribute>
  28. </field>
  29. </field>
  30. </record>
  31. <record id="view_res_partner_filter" model="ir.ui.view">
  32. <field name="name">res.partner.filter.extension</field>
  33. <field name="model">res.partner</field>
  34. <field name="inherit_id" ref="base.view_res_partner_filter" />
  35. <field name="arch" type="xml">
  36. <xpath expr="//field[@name='parent_id']" position="after">
  37. <field name="lang" />
  38. </xpath>
  39. <xpath expr="//group[@name='group_by']" position="inside">
  40. <filter
  41. name="language"
  42. string="Language"
  43. context="{'group_by' : 'lang'}"
  44. />
  45. </xpath>
  46. </field>
  47. </record>
  48. </odoo>