Update views: Category, Name, Address, Begin/End Time, Duration, Distance
This commit is contained in:
@@ -1,22 +1,21 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<!-- List View -->
|
<!-- List View — mirrors extension columns -->
|
||||||
<record id="wt_location_log_view_list" model="ir.ui.view">
|
<record id="wt_location_log_view_list" model="ir.ui.view">
|
||||||
<field name="name">wt.location.log.list</field>
|
<field name="name">wt.location.log.list</field>
|
||||||
<field name="model">wt.location.log</field>
|
<field name="model">wt.location.log</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<list string="Location Logs" default_order="arrived_at asc">
|
<list string="Location Logs" default_order="arrived_at asc">
|
||||||
<field name="date"/>
|
<field name="category"/>
|
||||||
<field name="arrived_at"/>
|
<field name="distance_from_previous" string="Distance (mi)"/>
|
||||||
<field name="departed_at"/>
|
|
||||||
<field name="name"/>
|
|
||||||
<field name="address"/>
|
<field name="address"/>
|
||||||
<field name="time_at_location" widget="float_time"/>
|
<field name="name" string="Name"/>
|
||||||
<field name="distance_from_previous"/>
|
<field name="arrived_at" string="Begin Time"/>
|
||||||
<field name="travel_time_from_previous" widget="float_time"/>
|
<field name="departed_at" string="End Time"/>
|
||||||
<field name="travel_mode"/>
|
<field name="time_at_location" string="Duration (hrs)" widget="float_time"/>
|
||||||
<field name="source"/>
|
<field name="travel_mode" optional="show"/>
|
||||||
|
<field name="date" optional="show"/>
|
||||||
</list>
|
</list>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
@@ -35,21 +34,22 @@
|
|||||||
<group>
|
<group>
|
||||||
<group string="Location">
|
<group string="Location">
|
||||||
<field name="date"/>
|
<field name="date"/>
|
||||||
<field name="place_name"/>
|
<field name="category"/>
|
||||||
|
<field name="place_name" string="Name"/>
|
||||||
<field name="address"/>
|
<field name="address"/>
|
||||||
<field name="latitude"/>
|
<field name="latitude"/>
|
||||||
<field name="longitude"/>
|
<field name="longitude"/>
|
||||||
</group>
|
</group>
|
||||||
<group string="Timing">
|
<group string="Timing">
|
||||||
<field name="arrived_at"/>
|
<field name="arrived_at" string="Begin Time"/>
|
||||||
<field name="departed_at"/>
|
<field name="departed_at" string="End Time"/>
|
||||||
<field name="time_at_location" widget="float_time"/>
|
<field name="time_at_location" string="Duration (hrs)" widget="float_time"/>
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
<group string="Travel">
|
<group string="Travel from Previous Stop">
|
||||||
<field name="distance_from_previous"/>
|
<field name="distance_from_previous" string="Distance (mi)"/>
|
||||||
<field name="travel_time_from_previous" widget="float_time"/>
|
<field name="travel_time_from_previous" string="Travel Time (hrs)" widget="float_time"/>
|
||||||
<field name="travel_mode"/>
|
<field name="travel_mode"/>
|
||||||
</group>
|
</group>
|
||||||
<group string="Settings">
|
<group string="Settings">
|
||||||
@@ -75,11 +75,13 @@
|
|||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
<field name="address"/>
|
<field name="address"/>
|
||||||
<field name="place_name"/>
|
<field name="place_name"/>
|
||||||
|
<field name="category"/>
|
||||||
<field name="date"/>
|
<field name="date"/>
|
||||||
<filter string="Today" name="today" domain="[('date','=', context_today().strftime('%Y-%m-%d'))]"/>
|
<filter string="Today" name="today" domain="[('date','=', context_today().strftime('%Y-%m-%d'))]"/>
|
||||||
<filter string="This Week" name="this_week" domain="[('date','>=', (context_today() - datetime.timedelta(days=7)).strftime('%Y-%m-%d'))]"/>
|
<filter string="This Week" name="this_week" domain="[('date','>=', (context_today() - datetime.timedelta(days=7)).strftime('%Y-%m-%d'))]"/>
|
||||||
<group expand="0" string="Group By">
|
<group expand="0" string="Group By">
|
||||||
<filter string="Date" name="group_date" context="{'group_by': 'date'}"/>
|
<filter string="Date" name="group_date" context="{'group_by': 'date'}"/>
|
||||||
|
<filter string="Category" name="group_category" context="{'group_by': 'category'}"/>
|
||||||
<filter string="Travel Mode" name="group_travel_mode" context="{'group_by': 'travel_mode'}"/>
|
<filter string="Travel Mode" name="group_travel_mode" context="{'group_by': 'travel_mode'}"/>
|
||||||
</group>
|
</group>
|
||||||
</search>
|
</search>
|
||||||
|
|||||||
Reference in New Issue
Block a user