Browse Source

Add attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}" to zip_id

pull/306/head
Open Net Sàrl 8 years ago
committed by GitHub
parent
commit
8766ebbcbf
  1. 4
      base_location/views/partner_view.xml

4
base_location/views/partner_view.xml

@ -11,13 +11,13 @@
<field name="zip_id"
options="{'create_name_field': 'city', 'no_open': True, 'no_create': True}"
placeholder="City completion"
class="oe_edit_only" />
class="oe_edit_only" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}" />
</field>
<xpath expr="//field[@name='child_ids']/form//field[@name='city']" position="before">
<field name="zip_id"
options="{'create_name_field': 'city', 'no_open': True, 'no_create': True}"
placeholder="City completion"
class="oe_edit_only" />
class="oe_edit_only" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}" />
</xpath>
</field>
</record>

Loading…
Cancel
Save