Files
odoo_source/addons/base_geolocalize/views/res_partner_views.xml
T
Patrick Hoste bf992f24b2 [IMP] various: improves usage of partners
SPECIFICATION

Various change for the partner view:
- Moved the activity widget to the bottom right of the kanban
- Moved the informations badge to the bottom right next to the
  activity widget and made them clickable
- Change the address options order and add a small help below
- Change the 'Remove' button function from delete to remove from
  the company and add a delete button to the right end.
- Correct some typo
- Add an 'Archived' ribbon to the kanban card
- Change various small things

LINKS

Task-2821356

closes odoo/odoo#89249

Related: odoo/enterprise#26442
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-06-14 11:41:15 +02:00

36 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_crm_partner_geo_form" model="ir.ui.view">
<field name="name">res.partner.geolocation.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook[last()]" position="inside">
<page string="Partner Assignment" name="geo_location">
<group>
<group string="Geolocation">
<label for="date_localization" string="Geo Location"/>
<div>
<span>Lat : <field name="partner_latitude" nolabel="1" class="oe_inline"/></span>
<br/>
<span>Long: <field name="partner_longitude" nolabel="1" class="oe_inline"/></span>
<br/>
<span attrs="{'invisible': [('date_localization', '=', False)]}">Updated on:
<field name="date_localization" nolabel="1" readonly="1" class="oe_inline"/>
<br/>
</span>
<button attrs="{'invisible': ['|', ('partner_latitude', '!=', 0), ('partner_longitude', '!=', 0)]}"
icon="fa-gear" string="Compute based on address" title="Compute Localization"
name="geo_localize" type="object" class="btn btn-link p-0"/>
<button attrs="{'invisible': [('partner_latitude', '=', 0), ('partner_longitude', '=', 0)]}"
icon="fa-refresh" string="Refresh" title="Refresh Localization"
name="geo_localize" type="object" class="btn btn-link p-0"/>
</div>
</group>
</group>
</page>
</xpath>
</field>
</record>
</odoo>