|
182 | 182 | <group>
|
183 | 183 | <field name="type" groups="base.group_no_one" attrs="{'invisible': [('is_company','=', True)], 'readonly': [('user_ids', '!=', [])]}"/>
|
184 | 184 | <span class="o_form_label o_td_label" name="address_name">
|
185 |
| - <b attrs="{'invisible': [('type', '!=', 'contact')]}">Company Address</b> |
186 |
| - <b attrs="{'invisible': [('type', '!=', 'invoice')]}">Invoice Address</b> |
187 |
| - <b attrs="{'invisible': [('type', '!=', 'delivery')]}">Delivery Address</b> |
188 |
| - <b attrs="{'invisible': [('type', '!=', 'other')]}">Other Address</b> |
189 |
| - <b attrs="{'invisible': [('type', '!=', 'private')]}">Private Address</b> |
190 |
| - <b attrs="{'invisible': [('type', '!=', False)]}">Address</b> |
| 185 | + <b attrs="{'invisible': ['|', ('parent_id', '=', False), ('type', '!=', 'contact')]}">Company Address</b> |
| 186 | + <b attrs="{'invisible': ['|', ('parent_id', '=', False), ('type', '!=', 'invoice')]}">Invoice Address</b> |
| 187 | + <b attrs="{'invisible': ['|', ('parent_id', '=', False), ('type', '!=', 'delivery')]}">Delivery Address</b> |
| 188 | + <b attrs="{'invisible': ['|', ('parent_id', '=', False), ('type', '!=', 'other')]}">Other Address</b> |
| 189 | + <b attrs="{'invisible': ['|', ('parent_id', '=', False), ('type', '!=', 'private')]}">Private Address</b> |
| 190 | + <b attrs="{'invisible': ['&', ('parent_id', '!=', False), ('type', '!=', False)]}">Address</b> |
191 | 191 | </span>
|
192 | 192 | <div class="o_address_format">
|
193 | 193 | <field name="street" placeholder="Street..." class="o_address_street"
|
|
0 commit comments