[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user