[FIX] base_vat_autocomplete: add missing attrs

VAT number should be readonly when parent_id is set
This is already what is done in base.view_partner_form and
base.view_partner_short_form
This commit is contained in:
Cas Vissers
2018-10-26 12:09:12 +00:00
committed by Martin Trigaux
parent cff3ed4ae3
commit ca52c6c3a0
@@ -8,7 +8,7 @@
<xpath expr="//field[@name='vat']" position="replace">
</xpath>
<xpath expr="//label[@for='street']" position="before">
<field name="vat" string="VAT" placeholder="e.g. BE0477472701"/>
<field name="vat" string="VAT" placeholder="e.g. BE0477472701" attrs="{'readonly': [('parent_id','!=',False)]}"/>
</xpath>
</field>
</record>
@@ -21,7 +21,7 @@
<xpath expr="//field[@name='vat']" position="replace">
</xpath>
<xpath expr="//label[@for='street']" position="before">
<field name="vat" string="VAT" placeholder="e.g. BE0477472701"/>
<field name="vat" string="VAT" placeholder="e.g. BE0477472701" attrs="{'readonly': [('parent_id','!=',False)]}"/>
</xpath>
</field>
</record>