Browse Source

Merge pull request #306 from open-net-sarl/patch-1

[9.0][base_location] Add readonly on zip_id
pull/330/head
Rafael Blasco 8 years ago
committed by GitHub
parent
commit
df72ccaf18
  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