Browse Source

[FIX] base_location: Don't error due to missing field

parent_id field doesn't exists anymore on v9, but it's not needed any way.
pull/464/head
Pedro M. Baeza 7 years ago
parent
commit
3496517550
  1. 2
      base_location/__openerp__.py
  2. 3
      base_location/views/partner_view.xml

2
base_location/__openerp__.py

@ -22,7 +22,7 @@
##############################################################################
{
'name': 'Location management (aka Better ZIP)',
'version': '9.0.1.0.0',
'version': '9.0.1.1.0',
'depends': ['base'],
'author': "Camptocamp,"
"ACYSOS S.L.,"

3
base_location/views/partner_view.xml

@ -17,7 +17,8 @@
<field name="zip_id"
options="{'create_name_field': 'city', 'no_open': True, 'no_create': True}"
placeholder="City completion"
class="oe_edit_only" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}" />
class="o_city_state"
/>
</xpath>
</field>
</record>

Loading…
Cancel
Save