Add polygon FSM zones and auto zone detection by coordinates
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
<header>
|
||||
<button name="action_confirm" type="object" string="Confirm" class="btn-primary" invisible="state != 'draft'"/>
|
||||
<button name="action_assign_to_me" type="object" string="Assign to me" class="btn-primary" invisible="state not in ('confirmed','assigned')"/>
|
||||
<button name="action_detect_zone" type="object" string="Detect Zone" invisible="not service_latitude or not service_longitude"/>
|
||||
<button name="action_start" type="object" string="Start" invisible="state != 'assigned'"/>
|
||||
<button name="action_done" type="object" string="Done" class="btn-primary" invisible="state not in ('in_progress','assigned')"/>
|
||||
<button name="action_cancel" type="object" string="Cancel" invisible="state in ('done','cancelled')"/>
|
||||
@@ -19,6 +20,9 @@
|
||||
<group>
|
||||
<field name="name" readonly="1"/>
|
||||
<field name="contact_id"/>
|
||||
<field name="service_address"/>
|
||||
<field name="service_latitude"/>
|
||||
<field name="service_longitude"/>
|
||||
<field name="zone_id"/>
|
||||
</group>
|
||||
<group>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<kanban default_group_by="state">
|
||||
<field name="name"/>
|
||||
<field name="contact_id"/>
|
||||
<field name="service_address"/>
|
||||
<field name="scheduled_datetime"/>
|
||||
<field name="technician_id"/>
|
||||
<field name="state"/>
|
||||
@@ -19,6 +20,9 @@
|
||||
<div>
|
||||
<field name="contact_id"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="service_address"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="scheduled_datetime"/>
|
||||
</div>
|
||||
|
||||
@@ -7,12 +7,15 @@
|
||||
<list>
|
||||
<field name="name"/>
|
||||
<field name="contact_id" optional="show"/>
|
||||
<field name="service_address" optional="show"/>
|
||||
<field name="zone_id" optional="show"/>
|
||||
<field name="scheduled_datetime" optional="show"/>
|
||||
<field name="technician_id" optional="show"/>
|
||||
<field name="state" widget="badge" optional="show"/>
|
||||
<field name="total_time_hours" optional="show"/>
|
||||
<field name="total_material_cost" optional="show"/>
|
||||
<field name="service_latitude" optional="hide"/>
|
||||
<field name="service_longitude" optional="hide"/>
|
||||
<field name="assigned_user_id" optional="hide"/>
|
||||
<field name="requested_datetime" optional="hide"/>
|
||||
</list>
|
||||
|
||||
Reference in New Issue
Block a user