Skip to content

Commit

Permalink
[ADD] l10n_latam_base: contact vat field editable
Browse files Browse the repository at this point in the history
To let the user to set the vat field different from the partner when the
contact is set as is company.
  • Loading branch information
zaoral authored and jjscarafia committed Oct 19, 2021
1 parent 8c98086 commit 9f7b6e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/l10n_latam_base/views/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<field name="vat" position="after">
<label for="l10n_latam_identification_type_id" string="Identification Number"/>
<div>
<field name="l10n_latam_identification_type_id" options="{'no_open': True, 'no_create': True}" placeholder="Type" attrs="{'readonly': [('parent_id','!=',False)]}" class="oe_inline" domain="country_id and ['|', ('country_id', '=', False), ('country_id', '=', country_id)] or []" required="True"/>
<field name="l10n_latam_identification_type_id" options="{'no_open': True, 'no_create': True}" placeholder="Type" attrs="{'readonly': [('is_company','=',False),('parent_id','!=',False)]}" class="oe_inline" domain="country_id and ['|', ('country_id', '=', False), ('country_id', '=', country_id)] or []" required="True"/>
<span class="oe_read_only"> - </span>
<field name="vat" placeholder="Number" class="oe_inline" attrs="{'readonly': [('parent_id','!=',False)]}"/>
<field name="vat" placeholder="Number" class="oe_inline" attrs="{'readonly': [('is_company','=',False),('parent_id','!=',False)]}"/>
</div>
</field>
</field>
Expand Down

0 comments on commit 9f7b6e4

Please sign in to comment.