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.

19 lines
723 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2020 Coop IT Easy
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <odoo>
  7. <record id="view_partner_from_age" model="ir.ui.view">
  8. <field name="name">res.partner.form.age</field>
  9. <field name="model">res.partner</field>
  10. <field name="inherit_id"
  11. ref="partner_contact_birthdate.view_personal_information_birthdate_date"/>
  12. <field name="arch" type="xml">
  13. <xpath expr="//field[@name='birthdate_date']" position='after'>
  14. <field name="age"
  15. attrs="{'invisible':[('is_company','=',True)]}"/>
  16. </xpath>
  17. </field>
  18. </record>
  19. </odoo>