[IMP] base_address: add home/door in children form views

add home/door fields in children form views to allign it
with the full form view so that the user can
edit these fields from the quick child form without having
to leave and open the full form

Task-2423694

closes odoo/odoo#65201

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
nounoubensebia
2021-01-28 09:28:07 +00:00
parent 51d173d42f
commit 56ed860085
@@ -31,6 +31,21 @@
<field name="street_number2" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/>
</div>
</xpath>
<xpath expr="//div[hasclass('o_address_format')]/field[@name='street']" position="replace">
<div>
<field name="street" class="oe_read_only"/>
</div>
<field name="street_name" placeholder="Street Name..." attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}" class="oe_edit_only"/>
<div class="oe_edit_only o_row">
<label for="street_number"/>
<span> </span>
<field name="street_number" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/>
<label for="street_number2"/>
<field name="street_number2" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/>
</div>
</xpath>
</field>
</record>