diff options
| author | Hardik Prajapati <hpr@odoo.com> | 2020-01-31 06:32:13 +0000 |
|---|---|---|
| committer | Hardik Prajapati <hpr@odoo.com> | 2020-02-27 05:55:39 +0000 |
| commit | ad5038ac74081d2dc31c3b777481402bbb2af682 (patch) | |
| tree | 482b333b4afc2f2809ae853aa3de68d4885f3744 | |
| parent | e3cd416dde3925e45223cab7aabded777497e112 (diff) | |
[FIX] base: fix various issue of the contacts form view
In address block there is extra space between label and field
so added class o_td_label with o_form_label in span tag
Wrong hover title on create company button when company_name is set
so direct use icon attrs instead of span
closes odoo/odoo#44695
Taskid: 2182637
Closes: #44695
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
| -rw-r--r-- | odoo/addons/base/views/res_partner_views.xml | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/odoo/addons/base/views/res_partner_views.xml b/odoo/addons/base/views/res_partner_views.xml index b1ccca5d203..9479765bcde 100644 --- a/odoo/addons/base/views/res_partner_views.xml +++ b/odoo/addons/base/views/res_partner_views.xml @@ -154,11 +154,9 @@ domain="[('is_company', '=', True)]" context="{'default_is_company': True, 'show_vat': True}" attrs="{'invisible': ['|', '&', ('is_company','=', True),('parent_id', '=', False),('company_name', '!=', False),('company_name', '!=', '')]}"/> <field name="company_name" attrs="{'invisible': ['|', '|', ('company_name', '=', False), ('company_name', '=', ''), ('is_company', '=', True)]}"/> - <button name="create_company" type="object" class="oe_edit_only btn-link" - attrs="{'invisible': ['|', '|', ('is_company','=', True), ('company_name', '=', ''), ('company_name', '=', False)]}"> - <span class="fa fa-plus-square"/> - Create company - </button> + <button name="create_company" type="object" icon="fa fa-plus-square" + class="oe_edit_only btn-link" string="Create company" + attrs="{'invisible': ['|', '|', ('is_company','=', True), ('company_name', '=', ''), ('company_name', '=', False)]}"/> </div> </div> <group> @@ -225,18 +223,16 @@ domain="[('is_company', '=', True)]" context="{'default_is_company': True, 'show_vat': True}" attrs="{'invisible': ['|', '&', ('is_company','=', True),('parent_id', '=', False),('company_name', '!=', False),('company_name', '!=', '')]}"/> <field name="company_name" attrs="{'invisible': ['|', '|', ('company_name', '=', False), ('company_name', '=', ''), ('is_company', '=', True)]}"/> - <button name="create_company" type="object" class="oe_edit_only btn-link" - attrs="{'invisible': ['|', '|', ('is_company','=', True), ('company_name', '=', ''), ('company_name', '=', False)]}"> - <span class="fa fa-plus-square"/> - Create company - </button> + <button name="create_company" icon="fa-plus-square" string="Create company" + type="object" class="oe_edit_only btn-link" + attrs="{'invisible': ['|', '|', ('is_company','=', True), ('company_name', '=', ''), ('company_name', '=', False)]}"/> </div> </div> <group> <group> <field name="type" groups="base.group_no_one"/> - <span class="o_form_label" name="address_name"> + <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> <b attrs="{'invisible': [('type', '!=', 'delivery')]}">Delivery Address</b> |
