Skip to content
Snippets Groups Projects
Commit 98b1fffd authored by Olivier Colson's avatar Olivier Colson
Browse files

[FIX] base: set vat number field as readonly on children partners; as it is a...

[FIX] base: set vat number field as readonly on children partners; as it is a commercial field, it should always have the value defined on the parent partner.
parent 459efb42
Branches
Tags
No related merge requests found
......@@ -179,7 +179,7 @@
<field name="country_id" placeholder="Country" class="o_address_country" options='{"no_open": True, "no_create": True}'
attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/>
</div>
<field name="vat" placeholder="e.g. BE0477472701"/>
<field name="vat" placeholder="e.g. BE0477472701" attrs="{'readonly': [('parent_id','!=',False)]}"/>
<field name="website" widget="url" placeholder="e.g. www.odoo.com"/>
<field name="category_id" widget="many2many_tags" placeholder="Tags..." options="{'no_create_edit': True}"/>
</group>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment