[FIX] base: do not show address type for company contacts

Commit 4497077f55 was intended to show address type for contacts without
company, but we should still keep it invisible for company contacts.

closes odoo/odoo#50260

Signed-off-by: Alex Tuyls <alt-odoo@users.noreply.github.com>
This commit is contained in:
alt-odoo
2020-04-27 19:33:37 +00:00
parent 397158b6df
commit d9ca5840fd
+1 -1
View File
@@ -168,7 +168,7 @@
<group>
<group>
<field name="type" groups="base.group_no_one" attrs="{'readonly': [('user_ids', '!=', [])]}"/>
<field name="type" groups="base.group_no_one" attrs="{'invisible': [('is_company','=', True)], 'readonly': [('user_ids', '!=', [])]}"/>
<span class="o_form_label o_td_label" name="address_name">
<b attrs="{'invisible': [('type', '!=', 'contact')]}">Company Address</b>
<b attrs="{'invisible': [('type', '!=', 'invoice')]}">Invoice Address</b>