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
912 B

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!-- License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
  3. Copyright 2015 Grupo ESOC Ingeniería de Servicios, S.L.U.
  4. Copyright 2019-2020: Druidoo (<https://www.druidoo.io>)
  5. -->
  6. <odoo>
  7. <record id="view_partner_form" model="ir.ui.view">
  8. <field name="name">Birthdate Date field</field>
  9. <field name="model">res.partner</field>
  10. <field
  11. name="inherit_id"
  12. ref="partner_contact_personal_information_page.personal_information"
  13. />
  14. <field name="arch" type="xml">
  15. <xpath expr="//group[@name='personal_information_group']">
  16. <field name='birthdate_date' />
  17. <field
  18. name="age"
  19. attrs="{'invisible': [('birthdate_date', '=', False)]}"
  20. />
  21. </xpath>
  22. </field>
  23. </record>
  24. </odoo>