[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.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user