Browse Source

[FIX] give different id for the two different views

[IMP] move age field under birthdate_date field from partner_birthdate.
pull/1/head
houssine 7 years ago
parent
commit
b0b0d5b1d5
  1. 6
      partner_age/view/partner_view.xml

6
partner_age/view/partner_view.xml

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_partner_tree_age" model="ir.ui.view">
<field name="name">res.partner.tree.age</field>
<record id="view_partner_from_age" model="ir.ui.view">
<field name="name">res.partner.form.age</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="easy_my_coop.view_partner_form_easy_my_coop"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='birthdate']" position='after'>
<xpath expr="//field[@name='birthdate_date']" position='after'>
<field name="age" attrs="{'invisible':[('is_company','=',True)]}"/>
</xpath>
</field>

Loading…
Cancel
Save