[FIX] base: Add missing parent_id in res.partner form

Steps to reproduce:
- Install hr and base_address_city
- Edit an employee
- In private info, set a private address
- Open private address form from the employee form

Traceback because parent_id is undefined.

The base_address_city module override a part of res.partner
view form to change the city readonly modifier.
This override adds a domain in which appears parent_id,
but the field is not present in the view.

Related commit 526bfca3af

closes odoo/odoo#32172

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Lucas Lefèvre
2019-04-19 06:59:11 +00:00
parent d909e8650a
commit 207c4cfb3b
@@ -414,6 +414,7 @@
<form string="Private Address Form">
<sheet>
<field name="type" invisible="1"/>
<field name="parent_id" invisible="1"/>
<label for="name" class="oe_editonly"/>
<field name="name" required="0"/>
<group>