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.

24 lines
1.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis
  3. Copyright 2017 Tecnativa - Pedro M. Baeza
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  5. <odoo>
  6. <record id="users_form" model="ir.ui.view">
  7. <field name="name">Add second last name</field>
  8. <field name="model">res.users</field>
  9. <field name="inherit_id" ref="partner_firstname.view_users_form"/>
  10. <field name="arch" type="xml">
  11. <field name="firstname" position="attributes">
  12. <attribute name="attrs">{'required': [('lastname', '=', False), ('lastname2', '=', False)]}</attribute>
  13. </field>
  14. <field name="lastname" position="attributes">
  15. <attribute name="attrs">{'required': [('firstname', '=', False), ('lastname2', '=', False)]}</attribute>
  16. </field>
  17. <field name="lastname" position="after">
  18. <field name="lastname2" attrs="{'required': [('firstname', '=', False), ('lastname', '=', False)]}" />
  19. </field>
  20. </field>
  21. </record>
  22. </odoo>