Skip to content

Commit

Permalink
[IMP] base_address: add home/door in children form views
Browse files Browse the repository at this point in the history
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#65201

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
  • Loading branch information
nounoubensebia committed Jan 28, 2021
1 parent 51d173d commit 56ed860
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions addons/base_address_extended/views/base_address_extended.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 56ed860

Please sign in to comment.