88 lines
4.0 KiB
XML
88 lines
4.0 KiB
XML
<?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.
|
|
Dashboard-style act_window actions for KPI categories.
|
|
-->
|
|
<odoo>
|
|
|
|
<!-- ================================================================= -->
|
|
<!-- Production KPIs -->
|
|
<!-- OTD, Dock-to-Dock, Throughput, Processed Parts, Shipped Parts -->
|
|
<!-- ================================================================= -->
|
|
<record id="action_fp_kpi_dashboard_production" model="ir.actions.act_window">
|
|
<field name="name">Production KPIs</field>
|
|
<field name="res_model">fusion.plating.kpi.value</field>
|
|
<field name="view_mode">graph,pivot,list</field>
|
|
<field name="search_view_id" ref="fp_kpi_value_view_search"/>
|
|
<field name="domain">[('kpi_type', 'in', ['otd', 'dock_to_dock', 'throughput', 'processed_parts', 'shipped_parts'])]</field>
|
|
<field name="context">{
|
|
'search_default_filter_quarter': 1,
|
|
'search_default_group_kpi_type': 1,
|
|
'search_default_group_date': 1,
|
|
}</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
No production KPI data yet
|
|
</p>
|
|
<p>
|
|
Production KPIs include On-Time Delivery, Dock-to-Dock Lead Time,
|
|
Throughput, Processed Parts, and Shipped Parts.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- ================================================================= -->
|
|
<!-- Quality KPIs -->
|
|
<!-- Quality Yield, Rework Events, Failed Spec Count -->
|
|
<!-- ================================================================= -->
|
|
<record id="action_fp_kpi_dashboard_quality" model="ir.actions.act_window">
|
|
<field name="name">Quality KPIs</field>
|
|
<field name="res_model">fusion.plating.kpi.value</field>
|
|
<field name="view_mode">graph,pivot,list</field>
|
|
<field name="search_view_id" ref="fp_kpi_value_view_search"/>
|
|
<field name="domain">[('kpi_type', 'in', ['quality_yield', 'rework_count', 'failed_spec_count'])]</field>
|
|
<field name="context">{
|
|
'search_default_filter_quarter': 1,
|
|
'search_default_group_kpi_type': 1,
|
|
'search_default_group_date': 1,
|
|
}</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
No quality KPI data yet
|
|
</p>
|
|
<p>
|
|
Quality KPIs include Quality Yield, Rework Events, and Failed Spec Count.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- ================================================================= -->
|
|
<!-- Sales & Finance KPIs -->
|
|
<!-- Bath Uptime, Cost Per Part, Custom (revenue, margin) -->
|
|
<!-- ================================================================= -->
|
|
<record id="action_fp_kpi_dashboard_finance" model="ir.actions.act_window">
|
|
<field name="name">Sales & Finance KPIs</field>
|
|
<field name="res_model">fusion.plating.kpi.value</field>
|
|
<field name="view_mode">graph,pivot,list</field>
|
|
<field name="search_view_id" ref="fp_kpi_value_view_search"/>
|
|
<field name="domain">[('kpi_type', 'in', ['bath_uptime', 'cost_per_part', 'custom'])]</field>
|
|
<field name="context">{
|
|
'search_default_filter_quarter': 1,
|
|
'search_default_group_kpi_type': 1,
|
|
'search_default_group_date': 1,
|
|
}</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
No sales or finance KPI data yet
|
|
</p>
|
|
<p>
|
|
Sales & Finance KPIs include Bath Uptime, Cost Per Part,
|
|
and any custom revenue or margin metrics.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|