folder rename
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2026 Nexa Systems Inc.
|
||||
License OPL-1 (Odoo Proprietary License v1.0)
|
||||
Part of the Fusion Plating product family.
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<record id="view_fp_chain_of_custody_list" model="ir.ui.view">
|
||||
<field name="name">fp.chain.of.custody.list</field>
|
||||
<field name="model">fusion.plating.chain.of.custody</field>
|
||||
<field name="arch" type="xml">
|
||||
<list string="Chain of Custody" create="false">
|
||||
<field name="event_datetime"/>
|
||||
<field name="event_type"/>
|
||||
<field name="from_party"/>
|
||||
<field name="to_party"/>
|
||||
<field name="pickup_request_id"/>
|
||||
<field name="delivery_id"/>
|
||||
<field name="facility_id"/>
|
||||
<field name="recorded_by_id"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_chain_of_custody_form" model="ir.ui.view">
|
||||
<field name="name">fp.chain.of.custody.form</field>
|
||||
<field name="model">fusion.plating.chain.of.custody</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Custody Event">
|
||||
<sheet>
|
||||
<group>
|
||||
<group>
|
||||
<field name="event_datetime"/>
|
||||
<field name="event_type"/>
|
||||
<field name="facility_id"/>
|
||||
<field name="recorded_by_id" readonly="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="from_party"/>
|
||||
<field name="to_party"/>
|
||||
<field name="pickup_request_id"/>
|
||||
<field name="delivery_id"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Notes">
|
||||
<field name="notes" nolabel="1"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_chain_of_custody_search" model="ir.ui.view">
|
||||
<field name="name">fp.chain.of.custody.search</field>
|
||||
<field name="model">fusion.plating.chain.of.custody</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Chain of Custody">
|
||||
<field name="from_party"/>
|
||||
<field name="to_party"/>
|
||||
<field name="pickup_request_id"/>
|
||||
<field name="delivery_id"/>
|
||||
<field name="facility_id"/>
|
||||
<filter name="filter_pickups" string="Pickups Only" domain="[('pickup_request_id','!=',False)]"/>
|
||||
<filter name="filter_deliveries" string="Deliveries Only" domain="[('delivery_id','!=',False)]"/>
|
||||
<group>
|
||||
<filter name="group_event_type" string="Event Type" context="{'group_by':'event_type'}"/>
|
||||
<filter name="group_facility" string="Facility" context="{'group_by':'facility_id'}"/>
|
||||
<filter name="group_date" string="Date" context="{'group_by':'event_datetime:day'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fp_chain_of_custody" model="ir.actions.act_window">
|
||||
<field name="name">Chain of Custody</field>
|
||||
<field name="res_model">fusion.plating.chain.of.custody</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
Custody events will appear here
|
||||
</p>
|
||||
<p>
|
||||
Custody events are created automatically as pickup requests
|
||||
and deliveries move through their lifecycle. They form the
|
||||
evidence trail for compliance audits.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,200 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2026 Nexa Systems Inc.
|
||||
License OPL-1 (Odoo Proprietary License v1.0)
|
||||
Part of the Fusion Plating product family.
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<record id="view_fp_delivery_list" model="ir.ui.view">
|
||||
<field name="name">fp.delivery.list</field>
|
||||
<field name="model">fusion.plating.delivery</field>
|
||||
<field name="arch" type="xml">
|
||||
<list string="Deliveries"
|
||||
decoration-muted="state in ('cancelled','returned')"
|
||||
decoration-danger="state == 'refused'"
|
||||
decoration-success="state == 'delivered'">
|
||||
<field name="name"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="job_ref"/>
|
||||
<field name="scheduled_date"/>
|
||||
<field name="assigned_driver_id"/>
|
||||
<field name="vehicle_id"/>
|
||||
<field name="source_facility_id"/>
|
||||
<field name="tdg_required" widget="boolean_toggle" optional="show"/>
|
||||
<field name="state" widget="badge"
|
||||
decoration-info="state == 'draft'"
|
||||
decoration-warning="state == 'scheduled'"
|
||||
decoration-primary="state == 'en_route'"
|
||||
decoration-success="state == 'delivered'"
|
||||
decoration-danger="state == 'refused'"
|
||||
decoration-muted="state in ('returned','cancelled')"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_delivery_form" model="ir.ui.view">
|
||||
<field name="name">fp.delivery.form</field>
|
||||
<field name="model">fusion.plating.delivery</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Delivery">
|
||||
<header>
|
||||
<button name="action_schedule" string="Schedule" type="object"
|
||||
class="oe_highlight" invisible="state != 'draft'"/>
|
||||
<button name="action_start_route" string="Start Route" type="object"
|
||||
invisible="state != 'scheduled'"/>
|
||||
<button name="action_mark_delivered" string="Mark Delivered" type="object"
|
||||
class="oe_highlight" invisible="state != 'en_route'"/>
|
||||
<button name="action_create_pod" string="Create POD" type="object"
|
||||
invisible="state not in ('en_route','delivered') or pod_id"/>
|
||||
<button name="action_mark_refused" string="Refused" type="object"
|
||||
invisible="state != 'en_route'"/>
|
||||
<button name="action_mark_returned" string="Returned" type="object"
|
||||
invisible="state not in ('refused','en_route')"/>
|
||||
<button name="action_cancel" string="Cancel" type="object"
|
||||
invisible="state in ('delivered','cancelled')"/>
|
||||
<button name="action_reset_to_draft" string="Reset to Draft" type="object"
|
||||
invisible="state != 'cancelled'"/>
|
||||
<field name="state" widget="statusbar"
|
||||
statusbar_visible="draft,scheduled,en_route,delivered"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<label for="name"/>
|
||||
<h1><field name="name" readonly="1"/></h1>
|
||||
</div>
|
||||
<group>
|
||||
<group string="Customer">
|
||||
<field name="partner_id"/>
|
||||
<field name="delivery_address_id"/>
|
||||
<field name="contact_name"/>
|
||||
<field name="contact_phone" widget="phone"/>
|
||||
<field name="job_ref"/>
|
||||
</group>
|
||||
<group string="Schedule">
|
||||
<field name="scheduled_date"/>
|
||||
<field name="source_facility_id"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field name="delivered_at" readonly="1"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group string="Assignment">
|
||||
<field name="assigned_driver_id"/>
|
||||
<field name="vehicle_id"/>
|
||||
<field name="tdg_required" widget="boolean_toggle"/>
|
||||
</group>
|
||||
<group string="Documents">
|
||||
<field name="coc_attachment_id"/>
|
||||
<field name="packing_list_attachment_id"/>
|
||||
<field name="pod_id" readonly="1"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Notes">
|
||||
<field name="notes"/>
|
||||
</page>
|
||||
<page string="Chain of Custody">
|
||||
<field name="custody_event_ids" readonly="1">
|
||||
<list>
|
||||
<field name="event_datetime"/>
|
||||
<field name="event_type"/>
|
||||
<field name="from_party"/>
|
||||
<field name="to_party"/>
|
||||
<field name="recorded_by_id"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
<chatter/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_delivery_kanban" model="ir.ui.view">
|
||||
<field name="name">fp.delivery.kanban</field>
|
||||
<field name="model">fusion.plating.delivery</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban default_group_by="state" class="o_fp_delivery_kanban">
|
||||
<field name="id"/>
|
||||
<field name="name"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="scheduled_date"/>
|
||||
<field name="assigned_driver_id"/>
|
||||
<field name="vehicle_id"/>
|
||||
<field name="tdg_required"/>
|
||||
<field name="job_ref"/>
|
||||
<templates>
|
||||
<t t-name="card">
|
||||
<div class="o_fp_card">
|
||||
<div class="d-flex align-items-start justify-content-between">
|
||||
<div>
|
||||
<strong class="o_fp_card_title"><field name="name"/></strong>
|
||||
<div class="small text-muted"><field name="partner_id"/></div>
|
||||
</div>
|
||||
<i class="fa fa-arrow-up text-muted" aria-hidden="true"/>
|
||||
</div>
|
||||
<div class="mt-2 small">
|
||||
<field name="scheduled_date"/>
|
||||
</div>
|
||||
<div class="mt-1 small text-muted">
|
||||
<field name="assigned_driver_id"/>
|
||||
<span t-if="record.vehicle_id.raw_value"> — <field name="vehicle_id"/></span>
|
||||
</div>
|
||||
<div class="mt-2" t-if="record.tdg_required.raw_value">
|
||||
<span class="o_fp_badge" data-state="tdg">TDG</span>
|
||||
</div>
|
||||
<div class="mt-1 small text-muted" t-if="record.job_ref.raw_value">
|
||||
Job: <field name="job_ref"/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_delivery_search" model="ir.ui.view">
|
||||
<field name="name">fp.delivery.search</field>
|
||||
<field name="model">fusion.plating.delivery</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Deliveries">
|
||||
<field name="name"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="assigned_driver_id"/>
|
||||
<field name="vehicle_id"/>
|
||||
<field name="job_ref"/>
|
||||
<field name="source_facility_id"/>
|
||||
<filter name="filter_draft" string="Draft" domain="[('state','=','draft')]"/>
|
||||
<filter name="filter_scheduled" string="Scheduled" domain="[('state','=','scheduled')]"/>
|
||||
<filter name="filter_en_route" string="En Route" domain="[('state','=','en_route')]"/>
|
||||
<filter name="filter_delivered" string="Delivered" domain="[('state','=','delivered')]"/>
|
||||
<filter name="filter_tdg" string="TDG Only" domain="[('tdg_required','=',True)]"/>
|
||||
<group>
|
||||
<filter name="group_state" string="Status" context="{'group_by':'state'}"/>
|
||||
<filter name="group_driver" string="Driver" context="{'group_by':'assigned_driver_id'}"/>
|
||||
<filter name="group_facility" string="Source Facility" context="{'group_by':'source_facility_id'}"/>
|
||||
<filter name="group_partner" string="Customer" context="{'group_by':'partner_id'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fp_delivery" model="ir.actions.act_window">
|
||||
<field name="name">Deliveries</field>
|
||||
<field name="res_model">fusion.plating.delivery</field>
|
||||
<field name="view_mode">kanban,list,form</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
No deliveries yet
|
||||
</p>
|
||||
<p>
|
||||
Schedule deliveries of finished parts back to your customers.
|
||||
Attach a Certificate of Conformance and packing list, track
|
||||
chain of custody, and capture proof of delivery on site.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
53
fusion_plating/fusion_plating_logistics/views/fp_menu.xml
Normal file
53
fusion_plating/fusion_plating_logistics/views/fp_menu.xml
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2026 Nexa Systems Inc.
|
||||
License OPL-1 (Odoo Proprietary License v1.0)
|
||||
Part of the Fusion Plating product family.
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<!-- ===== LOGISTICS (top-level under the core Plating app) ===== -->
|
||||
<menuitem id="menu_fp_logistics"
|
||||
name="Logistics"
|
||||
parent="fusion_plating.menu_fp_root"
|
||||
sequence="50"
|
||||
groups="fusion_plating.group_fusion_plating_operator"/>
|
||||
|
||||
<menuitem id="menu_fp_pickup_requests"
|
||||
name="Pickup Requests"
|
||||
parent="menu_fp_logistics"
|
||||
action="action_fp_pickup_request"
|
||||
sequence="10"/>
|
||||
|
||||
<menuitem id="menu_fp_deliveries"
|
||||
name="Deliveries"
|
||||
parent="menu_fp_logistics"
|
||||
action="action_fp_delivery"
|
||||
sequence="20"/>
|
||||
|
||||
<menuitem id="menu_fp_routes"
|
||||
name="Routes"
|
||||
parent="menu_fp_logistics"
|
||||
action="action_fp_route"
|
||||
sequence="30"/>
|
||||
|
||||
<menuitem id="menu_fp_chain_of_custody"
|
||||
name="Chain of Custody"
|
||||
parent="menu_fp_logistics"
|
||||
action="action_fp_chain_of_custody"
|
||||
sequence="40"/>
|
||||
|
||||
<menuitem id="menu_fp_proof_of_delivery"
|
||||
name="Proof of Delivery"
|
||||
parent="menu_fp_logistics"
|
||||
action="action_fp_proof_of_delivery"
|
||||
sequence="50"/>
|
||||
|
||||
<!-- ===== VEHICLES under Configuration ===== -->
|
||||
<menuitem id="menu_fp_vehicles"
|
||||
name="Vehicles"
|
||||
parent="fusion_plating.menu_fp_config"
|
||||
action="action_fp_vehicle"
|
||||
sequence="60"/>
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,193 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2026 Nexa Systems Inc.
|
||||
License OPL-1 (Odoo Proprietary License v1.0)
|
||||
Part of the Fusion Plating product family.
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<record id="view_fp_pickup_request_list" model="ir.ui.view">
|
||||
<field name="name">fp.pickup.request.list</field>
|
||||
<field name="model">fusion.plating.pickup.request</field>
|
||||
<field name="arch" type="xml">
|
||||
<list string="Pickup Requests"
|
||||
decoration-muted="state == 'cancelled'"
|
||||
decoration-info="state == 'new'"
|
||||
decoration-success="state == 'received'">
|
||||
<field name="name"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="requested_date"/>
|
||||
<field name="scheduled_date"/>
|
||||
<field name="assigned_driver_id"/>
|
||||
<field name="vehicle_id"/>
|
||||
<field name="destination_facility_id"/>
|
||||
<field name="tdg_required" widget="boolean_toggle" optional="show"/>
|
||||
<field name="state" widget="badge"
|
||||
decoration-info="state == 'new'"
|
||||
decoration-warning="state == 'scheduled'"
|
||||
decoration-primary="state == 'en_route'"
|
||||
decoration-success="state in ('picked_up','received')"
|
||||
decoration-muted="state == 'cancelled'"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_pickup_request_form" model="ir.ui.view">
|
||||
<field name="name">fp.pickup.request.form</field>
|
||||
<field name="model">fusion.plating.pickup.request</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Pickup Request">
|
||||
<header>
|
||||
<button name="action_schedule" string="Schedule" type="object"
|
||||
class="oe_highlight" invisible="state != 'new'"/>
|
||||
<button name="action_start_route" string="Start Route" type="object"
|
||||
invisible="state != 'scheduled'"/>
|
||||
<button name="action_mark_picked_up" string="Mark Picked Up" type="object"
|
||||
invisible="state != 'en_route'"/>
|
||||
<button name="action_mark_received" string="Mark Received" type="object"
|
||||
class="oe_highlight" invisible="state != 'picked_up'"/>
|
||||
<button name="action_cancel" string="Cancel" type="object"
|
||||
invisible="state in ('received','cancelled')"/>
|
||||
<button name="action_reset_to_new" string="Reset to New" type="object"
|
||||
invisible="state != 'cancelled'"/>
|
||||
<field name="state" widget="statusbar"
|
||||
statusbar_visible="new,scheduled,en_route,picked_up,received"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<label for="name"/>
|
||||
<h1><field name="name" readonly="1"/></h1>
|
||||
</div>
|
||||
<group>
|
||||
<group string="Customer">
|
||||
<field name="partner_id"/>
|
||||
<field name="pickup_address_id"/>
|
||||
<field name="contact_name"/>
|
||||
<field name="contact_phone" widget="phone"/>
|
||||
</group>
|
||||
<group string="Schedule">
|
||||
<field name="requested_date"/>
|
||||
<field name="scheduled_date"/>
|
||||
<field name="destination_facility_id"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group string="Assignment">
|
||||
<field name="assigned_driver_id"/>
|
||||
<field name="vehicle_id"/>
|
||||
</group>
|
||||
<group string="Load">
|
||||
<field name="estimated_weight_kg"/>
|
||||
<field name="tdg_required" widget="boolean_toggle"/>
|
||||
<field name="picked_up_at" readonly="1"/>
|
||||
<field name="received_at" readonly="1"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Items">
|
||||
<field name="item_description" placeholder="Describe the parts to be picked up..."/>
|
||||
</page>
|
||||
<page string="Notes">
|
||||
<field name="notes"/>
|
||||
</page>
|
||||
<page string="Chain of Custody">
|
||||
<field name="custody_event_ids" readonly="1">
|
||||
<list>
|
||||
<field name="event_datetime"/>
|
||||
<field name="event_type"/>
|
||||
<field name="from_party"/>
|
||||
<field name="to_party"/>
|
||||
<field name="recorded_by_id"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
<chatter/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_pickup_request_kanban" model="ir.ui.view">
|
||||
<field name="name">fp.pickup.request.kanban</field>
|
||||
<field name="model">fusion.plating.pickup.request</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban default_group_by="state" class="o_fp_pickup_kanban">
|
||||
<field name="id"/>
|
||||
<field name="name"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="scheduled_date"/>
|
||||
<field name="assigned_driver_id"/>
|
||||
<field name="vehicle_id"/>
|
||||
<field name="tdg_required"/>
|
||||
<field name="state"/>
|
||||
<templates>
|
||||
<t t-name="card">
|
||||
<div class="o_fp_card">
|
||||
<div class="d-flex align-items-start justify-content-between">
|
||||
<div>
|
||||
<strong class="o_fp_card_title"><field name="name"/></strong>
|
||||
<div class="small text-muted"><field name="partner_id"/></div>
|
||||
</div>
|
||||
<i class="fa fa-arrow-down text-muted" aria-hidden="true"/>
|
||||
</div>
|
||||
<div class="mt-2 small">
|
||||
<field name="scheduled_date"/>
|
||||
</div>
|
||||
<div class="mt-1 small text-muted">
|
||||
<field name="assigned_driver_id"/>
|
||||
<span t-if="record.vehicle_id.raw_value"> — <field name="vehicle_id"/></span>
|
||||
</div>
|
||||
<div class="mt-2" t-if="record.tdg_required.raw_value">
|
||||
<span class="o_fp_badge" data-state="tdg">TDG</span>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_pickup_request_search" model="ir.ui.view">
|
||||
<field name="name">fp.pickup.request.search</field>
|
||||
<field name="model">fusion.plating.pickup.request</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Pickup Requests">
|
||||
<field name="name"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="assigned_driver_id"/>
|
||||
<field name="vehicle_id"/>
|
||||
<field name="destination_facility_id"/>
|
||||
<filter name="filter_new" string="New" domain="[('state','=','new')]"/>
|
||||
<filter name="filter_scheduled" string="Scheduled" domain="[('state','=','scheduled')]"/>
|
||||
<filter name="filter_en_route" string="En Route" domain="[('state','=','en_route')]"/>
|
||||
<filter name="filter_tdg" string="TDG Only" domain="[('tdg_required','=',True)]"/>
|
||||
<group>
|
||||
<filter name="group_state" string="Status" context="{'group_by':'state'}"/>
|
||||
<filter name="group_driver" string="Driver" context="{'group_by':'assigned_driver_id'}"/>
|
||||
<filter name="group_facility" string="Destination" context="{'group_by':'destination_facility_id'}"/>
|
||||
<filter name="group_partner" string="Customer" context="{'group_by':'partner_id'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fp_pickup_request" model="ir.actions.act_window">
|
||||
<field name="name">Pickup Requests</field>
|
||||
<field name="res_model">fusion.plating.pickup.request</field>
|
||||
<field name="view_mode">kanban,list,form</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
No pickup requests yet
|
||||
</p>
|
||||
<p>
|
||||
A pickup request is raised when a customer asks for parts
|
||||
to be collected. Dispatch schedules a driver and vehicle,
|
||||
and the chain of custody is logged automatically as the
|
||||
request moves through its lifecycle.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2026 Nexa Systems Inc.
|
||||
License OPL-1 (Odoo Proprietary License v1.0)
|
||||
Part of the Fusion Plating product family.
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<record id="view_fp_proof_of_delivery_list" model="ir.ui.view">
|
||||
<field name="name">fp.proof.of.delivery.list</field>
|
||||
<field name="model">fusion.plating.proof.of.delivery</field>
|
||||
<field name="arch" type="xml">
|
||||
<list string="Proof of Delivery">
|
||||
<field name="name"/>
|
||||
<field name="delivery_id"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="recipient_name"/>
|
||||
<field name="delivered_at"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_proof_of_delivery_form" model="ir.ui.view">
|
||||
<field name="name">fp.proof.of.delivery.form</field>
|
||||
<field name="model">fusion.plating.proof.of.delivery</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Proof of Delivery">
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<label for="name"/>
|
||||
<h1><field name="name" readonly="1"/></h1>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="delivery_id"/>
|
||||
<field name="partner_id" readonly="1"/>
|
||||
<field name="recipient_name"/>
|
||||
<field name="delivered_at"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="gps_lat"/>
|
||||
<field name="gps_lon"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Signature">
|
||||
<div class="o_fp_pod_signature_box">
|
||||
<field name="recipient_signature" widget="image"
|
||||
options="{'size': [400, 150]}" nolabel="1"/>
|
||||
</div>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Photos">
|
||||
<field name="photo_ids" widget="many2many_binary"/>
|
||||
</page>
|
||||
<page string="Notes">
|
||||
<field name="notes" nolabel="1"/>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_proof_of_delivery_search" model="ir.ui.view">
|
||||
<field name="name">fp.proof.of.delivery.search</field>
|
||||
<field name="model">fusion.plating.proof.of.delivery</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Proof of Delivery">
|
||||
<field name="name"/>
|
||||
<field name="delivery_id"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="recipient_name"/>
|
||||
<group>
|
||||
<filter name="group_partner" string="Customer" context="{'group_by':'partner_id'}"/>
|
||||
<filter name="group_date" string="Delivered Date" context="{'group_by':'delivered_at:day'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fp_proof_of_delivery" model="ir.actions.act_window">
|
||||
<field name="name">Proof of Delivery</field>
|
||||
<field name="res_model">fusion.plating.proof.of.delivery</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
189
fusion_plating/fusion_plating_logistics/views/fp_route_views.xml
Normal file
189
fusion_plating/fusion_plating_logistics/views/fp_route_views.xml
Normal file
@@ -0,0 +1,189 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2026 Nexa Systems Inc.
|
||||
License OPL-1 (Odoo Proprietary License v1.0)
|
||||
Part of the Fusion Plating product family.
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<record id="view_fp_route_list" model="ir.ui.view">
|
||||
<field name="name">fp.route.list</field>
|
||||
<field name="model">fusion.plating.route</field>
|
||||
<field name="arch" type="xml">
|
||||
<list string="Routes"
|
||||
decoration-muted="state == 'cancelled'"
|
||||
decoration-success="state == 'completed'"
|
||||
decoration-primary="state == 'in_progress'">
|
||||
<field name="name"/>
|
||||
<field name="route_date"/>
|
||||
<field name="driver_id"/>
|
||||
<field name="vehicle_id"/>
|
||||
<field name="stop_count"/>
|
||||
<field name="total_km"/>
|
||||
<field name="state" widget="badge"
|
||||
decoration-info="state == 'draft'"
|
||||
decoration-warning="state == 'planned'"
|
||||
decoration-primary="state == 'in_progress'"
|
||||
decoration-success="state == 'completed'"
|
||||
decoration-muted="state == 'cancelled'"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_route_form" model="ir.ui.view">
|
||||
<field name="name">fp.route.form</field>
|
||||
<field name="model">fusion.plating.route</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Route">
|
||||
<header>
|
||||
<button name="action_plan" string="Plan" type="object"
|
||||
class="oe_highlight" invisible="state != 'draft'"/>
|
||||
<button name="action_start" string="Start Route" type="object"
|
||||
class="oe_highlight" invisible="state != 'planned'"/>
|
||||
<button name="action_complete" string="Complete" type="object"
|
||||
invisible="state != 'in_progress'"/>
|
||||
<button name="action_cancel" string="Cancel" type="object"
|
||||
invisible="state in ('completed','cancelled')"/>
|
||||
<button name="action_reset_to_draft" string="Reset to Draft" type="object"
|
||||
invisible="state not in ('cancelled','planned')"/>
|
||||
<field name="state" widget="statusbar"
|
||||
statusbar_visible="draft,planned,in_progress,completed"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<label for="name"/>
|
||||
<h1><field name="name" readonly="1"/></h1>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="route_date"/>
|
||||
<field name="driver_id"/>
|
||||
<field name="vehicle_id"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="start_time" readonly="1"/>
|
||||
<field name="end_time" readonly="1"/>
|
||||
<field name="total_km"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Stops">
|
||||
<field name="stop_ids">
|
||||
<list editable="bottom">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="stop_type"/>
|
||||
<field name="pickup_request_id"/>
|
||||
<field name="delivery_id"/>
|
||||
<field name="address_id"/>
|
||||
<field name="planned_time"/>
|
||||
<field name="actual_time"/>
|
||||
<field name="state" widget="badge"
|
||||
decoration-info="state == 'pending'"
|
||||
decoration-warning="state == 'arrived'"
|
||||
decoration-success="state == 'completed'"
|
||||
decoration-muted="state == 'skipped'"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Notes">
|
||||
<field name="notes"/>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
<chatter/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_route_kanban" model="ir.ui.view">
|
||||
<field name="name">fp.route.kanban</field>
|
||||
<field name="model">fusion.plating.route</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban default_group_by="state" class="o_fp_route_kanban">
|
||||
<field name="id"/>
|
||||
<field name="name"/>
|
||||
<field name="route_date"/>
|
||||
<field name="driver_id"/>
|
||||
<field name="vehicle_id"/>
|
||||
<field name="stop_count"/>
|
||||
<field name="total_km"/>
|
||||
<templates>
|
||||
<t t-name="card">
|
||||
<div class="o_fp_card">
|
||||
<div class="d-flex align-items-start justify-content-between">
|
||||
<div>
|
||||
<strong class="o_fp_card_title"><field name="name"/></strong>
|
||||
<div class="small text-muted"><field name="route_date"/></div>
|
||||
</div>
|
||||
<i class="fa fa-road text-muted" aria-hidden="true"/>
|
||||
</div>
|
||||
<div class="mt-2 small">
|
||||
<field name="driver_id"/>
|
||||
</div>
|
||||
<div class="mt-1 small text-muted">
|
||||
<field name="vehicle_id"/>
|
||||
</div>
|
||||
<div class="mt-2 d-flex gap-3 small">
|
||||
<div><strong><field name="stop_count"/></strong> stops</div>
|
||||
<div><strong><field name="total_km"/></strong> km</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_route_calendar" model="ir.ui.view">
|
||||
<field name="name">fp.route.calendar</field>
|
||||
<field name="model">fusion.plating.route</field>
|
||||
<field name="arch" type="xml">
|
||||
<calendar string="Routes" date_start="route_date" mode="month" color="driver_id">
|
||||
<field name="driver_id"/>
|
||||
<field name="vehicle_id"/>
|
||||
<field name="state"/>
|
||||
</calendar>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_route_search" model="ir.ui.view">
|
||||
<field name="name">fp.route.search</field>
|
||||
<field name="model">fusion.plating.route</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Routes">
|
||||
<field name="name"/>
|
||||
<field name="driver_id"/>
|
||||
<field name="vehicle_id"/>
|
||||
<filter name="filter_today" string="Today" domain="[('route_date','=', context_today().strftime('%Y-%m-%d'))]"/>
|
||||
<filter name="filter_draft" string="Draft" domain="[('state','=','draft')]"/>
|
||||
<filter name="filter_in_progress" string="In Progress" domain="[('state','=','in_progress')]"/>
|
||||
<filter name="filter_completed" string="Completed" domain="[('state','=','completed')]"/>
|
||||
<group>
|
||||
<filter name="group_state" string="Status" context="{'group_by':'state'}"/>
|
||||
<filter name="group_driver" string="Driver" context="{'group_by':'driver_id'}"/>
|
||||
<filter name="group_vehicle" string="Vehicle" context="{'group_by':'vehicle_id'}"/>
|
||||
<filter name="group_date" string="Route Date" context="{'group_by':'route_date'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fp_route" model="ir.actions.act_window">
|
||||
<field name="name">Routes</field>
|
||||
<field name="res_model">fusion.plating.route</field>
|
||||
<field name="view_mode">kanban,list,calendar,form</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
Plan your first route
|
||||
</p>
|
||||
<p>
|
||||
A route combines multiple pickups and deliveries into a
|
||||
single run for one driver and vehicle. Drag stops to
|
||||
re-order, track actual vs planned times, and capture
|
||||
total distance for costing.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,179 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2026 Nexa Systems Inc.
|
||||
License OPL-1 (Odoo Proprietary License v1.0)
|
||||
Part of the Fusion Plating product family.
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<record id="view_fp_vehicle_list" model="ir.ui.view">
|
||||
<field name="name">fp.vehicle.list</field>
|
||||
<field name="model">fusion.plating.vehicle</field>
|
||||
<field name="arch" type="xml">
|
||||
<list string="Vehicles" decoration-muted="state == 'out_of_service'"
|
||||
decoration-warning="state == 'maintenance'"
|
||||
decoration-success="state == 'available'">
|
||||
<field name="name"/>
|
||||
<field name="license_plate"/>
|
||||
<field name="vehicle_type"/>
|
||||
<field name="make"/>
|
||||
<field name="model_year"/>
|
||||
<field name="capacity_kg"/>
|
||||
<field name="facility_id"/>
|
||||
<field name="current_driver_id"/>
|
||||
<field name="tdg_certified" widget="boolean_toggle"/>
|
||||
<field name="state" widget="badge"
|
||||
decoration-success="state == 'available'"
|
||||
decoration-info="state == 'in_use'"
|
||||
decoration-warning="state == 'maintenance'"
|
||||
decoration-muted="state == 'out_of_service'"/>
|
||||
<field name="active" widget="boolean_toggle" optional="hide"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_vehicle_form" model="ir.ui.view">
|
||||
<field name="name">fp.vehicle.form</field>
|
||||
<field name="model">fusion.plating.vehicle</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Vehicle">
|
||||
<header>
|
||||
<button name="action_mark_available" string="Mark Available" type="object"
|
||||
class="oe_highlight" invisible="state == 'available'"/>
|
||||
<button name="action_mark_in_use" string="Mark In Use" type="object"
|
||||
invisible="state == 'in_use'"/>
|
||||
<button name="action_mark_maintenance" string="Send to Maintenance" type="object"
|
||||
invisible="state == 'maintenance'"/>
|
||||
<button name="action_mark_out_of_service" string="Out of Service" type="object"
|
||||
invisible="state == 'out_of_service'"/>
|
||||
<field name="state" widget="statusbar"
|
||||
statusbar_visible="available,in_use,maintenance,out_of_service"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<widget name="web_ribbon" title="Archived" bg_color="text-bg-danger" invisible="active"/>
|
||||
<div class="oe_title">
|
||||
<label for="name"/>
|
||||
<h1><field name="name" placeholder="e.g. Van 1"/></h1>
|
||||
<div class="text-muted">
|
||||
<field name="license_plate" placeholder="ABCD-123"/>
|
||||
</div>
|
||||
</div>
|
||||
<group>
|
||||
<group string="Vehicle">
|
||||
<field name="vehicle_type"/>
|
||||
<field name="make"/>
|
||||
<field name="model_year"/>
|
||||
<field name="capacity_kg"/>
|
||||
<field name="tdg_certified" widget="boolean_toggle"/>
|
||||
</group>
|
||||
<group string="Assignment">
|
||||
<field name="facility_id"/>
|
||||
<field name="current_driver_id"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field name="active" widget="boolean_toggle"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Compliance">
|
||||
<group>
|
||||
<field name="insurance_expiry"/>
|
||||
<field name="registration_expiry"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="next_service_date"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Notes">
|
||||
<field name="notes" placeholder="Maintenance history, special notes..."/>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
<chatter/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_vehicle_kanban" model="ir.ui.view">
|
||||
<field name="name">fp.vehicle.kanban</field>
|
||||
<field name="model">fusion.plating.vehicle</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban class="o_fp_vehicle_kanban">
|
||||
<field name="id"/>
|
||||
<field name="name"/>
|
||||
<field name="license_plate"/>
|
||||
<field name="vehicle_type"/>
|
||||
<field name="state"/>
|
||||
<field name="current_driver_id"/>
|
||||
<field name="tdg_certified"/>
|
||||
<templates>
|
||||
<t t-name="card">
|
||||
<div class="o_fp_card o_fp_vehicle_card" t-att-data-state="record.state.raw_value">
|
||||
<div class="d-flex align-items-start justify-content-between">
|
||||
<div>
|
||||
<strong class="o_fp_card_title"><field name="name"/></strong>
|
||||
<div class="text-muted small"><field name="license_plate"/></div>
|
||||
</div>
|
||||
<i class="fa fa-truck text-muted" aria-hidden="true"/>
|
||||
</div>
|
||||
<div class="mt-2 small">
|
||||
<field name="vehicle_type"/>
|
||||
</div>
|
||||
<div class="mt-1 small text-muted">
|
||||
<field name="current_driver_id"/>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<span class="o_fp_badge" t-att-data-state="record.state.raw_value">
|
||||
<field name="state"/>
|
||||
</span>
|
||||
<span t-if="record.tdg_certified.raw_value" class="o_fp_badge ms-1" data-state="tdg">
|
||||
TDG
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_fp_vehicle_search" model="ir.ui.view">
|
||||
<field name="name">fp.vehicle.search</field>
|
||||
<field name="model">fusion.plating.vehicle</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Vehicles">
|
||||
<field name="name"/>
|
||||
<field name="license_plate"/>
|
||||
<field name="current_driver_id"/>
|
||||
<field name="facility_id"/>
|
||||
<filter name="filter_available" string="Available" domain="[('state','=','available')]"/>
|
||||
<filter name="filter_in_use" string="In Use" domain="[('state','=','in_use')]"/>
|
||||
<filter name="filter_maintenance" string="In Maintenance" domain="[('state','=','maintenance')]"/>
|
||||
<filter name="filter_tdg" string="TDG Certified" domain="[('tdg_certified','=',True)]"/>
|
||||
<separator/>
|
||||
<filter name="filter_archived" string="Archived" domain="[('active','=',False)]"/>
|
||||
<group>
|
||||
<filter name="group_facility" string="Facility" context="{'group_by':'facility_id'}"/>
|
||||
<filter name="group_state" string="Status" context="{'group_by':'state'}"/>
|
||||
<filter name="group_type" string="Type" context="{'group_by':'vehicle_type'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fp_vehicle" model="ir.actions.act_window">
|
||||
<field name="name">Vehicles</field>
|
||||
<field name="res_model">fusion.plating.vehicle</field>
|
||||
<field name="view_mode">kanban,list,form</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
Add your first vehicle
|
||||
</p>
|
||||
<p>
|
||||
Vehicles carry pickups from customers and deliveries back.
|
||||
Flag a vehicle "TDG Certified" if it is approved to carry
|
||||
Transportation of Dangerous Goods loads.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2026 Nexa Systems Inc.
|
||||
License OPL-1 (Odoo Proprietary License v1.0)
|
||||
Part of the Fusion Plating product family.
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<record id="view_hr_employee_form_inherit_fp_logistics" model="ir.ui.view">
|
||||
<field name="name">hr.employee.form.inherit.fp.logistics</field>
|
||||
<field name="model">hr.employee</field>
|
||||
<field name="inherit_id" ref="hr.view_employee_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//notebook" position="inside">
|
||||
<page string="Driver" name="fp_driver">
|
||||
<group>
|
||||
<group string="Driver Status">
|
||||
<field name="x_fc_is_driver" widget="boolean_toggle"/>
|
||||
<field name="x_fc_driver_licence_class" invisible="not x_fc_is_driver"/>
|
||||
<field name="x_fc_licence_expiry" invisible="not x_fc_is_driver"/>
|
||||
</group>
|
||||
<group string="TDG (Hazmat)">
|
||||
<field name="x_fc_tdg_certified" widget="boolean_toggle" invisible="not x_fc_is_driver"/>
|
||||
<field name="x_fc_tdg_expiry" invisible="not x_fc_tdg_certified"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Logistics History" invisible="not x_fc_is_driver">
|
||||
<field name="x_fc_pickup_request_ids" nolabel="1" readonly="1">
|
||||
<list string="Pickup Requests" limit="20">
|
||||
<field name="name"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="scheduled_date"/>
|
||||
<field name="state"/>
|
||||
</list>
|
||||
</field>
|
||||
<field name="x_fc_delivery_ids" nolabel="1" readonly="1">
|
||||
<list string="Deliveries" limit="20">
|
||||
<field name="name"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="scheduled_date"/>
|
||||
<field name="state"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user