diff options
| author | Fabien Pinckaers <fp@openerp.com> | 2018-08-17 16:25:32 +0200 |
|---|---|---|
| committer | Fabien Pinckaers <fp@openerp.com> | 2018-08-17 16:25:32 +0200 |
| commit | 11b24b42d30a465740c655fa3efe4e4adec7e264 (patch) | |
| tree | 5673cf005d368b5ac2d1c632effa89375e341785 | |
| parent | 830f31e4335eb7fff661a0508d4a21151844e730 (diff) | |
[IMP] base: UX of partner creation with ro address
| -rw-r--r-- | odoo/addons/base/views/res_partner_views.xml | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/odoo/addons/base/views/res_partner_views.xml b/odoo/addons/base/views/res_partner_views.xml index 94de1ce6e2f..767e985ef46 100644 --- a/odoo/addons/base/views/res_partner_views.xml +++ b/odoo/addons/base/views/res_partner_views.xml @@ -146,7 +146,11 @@ domain="[('is_company', '=', True)]" context="{'default_is_company': True, 'default_supplier': supplier, 'default_customer': customer}" 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" string="Create company" class="oe_edit_only fa fa-external-link btn-link " attrs="{'invisible': ['|', '|', ('is_company','=', True), ('company_name', '=', ''), ('company_name', '=', False)]}"/> + <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> </div> </div> <group> @@ -154,10 +158,7 @@ <field name="type" attrs="{'invisible': [('parent_id','=', False)]}" groups="base.group_no_one"/> <label for="street" string="Address"/> <div class="o_address_format"> - <div class="oe_edit_only"> - <button name="open_parent" type="object" string="(edit)" class="oe_link" - attrs="{'invisible': ['|', ('parent_id', '=', False), ('type', '!=', 'contact')]}"/> - </div> + <div attrs="{'invisible': ['|', ('parent_id', '=', False), ('type', '!=', 'contact')]}" class="oe_edit_only"><b>Company Address:</b></div> <field name="street" placeholder="Street..." class="o_address_street" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> <field name="street2" placeholder="Street 2..." class="o_address_street" @@ -218,7 +219,11 @@ domain="[('is_company', '=', True)]" context="{'default_is_company': True, 'default_supplier': supplier, 'default_customer': customer}" 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" string="Create company" class="oe_edit_only fa fa-external-link btn-link" attrs="{'invisible': ['|', '|', ('is_company','=', True), ('company_name', '=', ''), ('company_name', '=', False)]}"/> + <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> </div> </div> @@ -227,10 +232,7 @@ <field name="type" attrs="{'invisible': [('parent_id','=', False)]}" groups="base.group_no_one"/> <label for="street" string="Address"/> <div class="o_address_format"> - <div class="oe_edit_only"> - <button name="open_parent" type="object" string="(edit)" class="oe_link" - attrs="{'invisible': ['|', ('parent_id', '=', False), ('type', '!=', 'contact')]}"/> - </div> + <div attrs="{'invisible': ['|', ('parent_id', '=', False), ('type', '!=', 'contact')]}" class="oe_edit_only"><b>Company Address:</b></div> <field name="street" placeholder="Street..." class="o_address_street" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> <field name="street2" placeholder="Street 2..." class="o_address_street" |
