102 lines
4.7 KiB
XML
102 lines
4.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Copyright 2024-2025 Nexa Systems Inc.
|
|
License OPL-1 (Odoo Proprietary License v1.0)
|
|
Part of the Fusion Claim Assistant product family.
|
|
-->
|
|
<odoo>
|
|
<!-- ===================================================================== -->
|
|
<!-- SERVICE RATE: List View (inline-edit enabled) -->
|
|
<!-- ===================================================================== -->
|
|
<record id="view_fusion_service_rate_list" model="ir.ui.view">
|
|
<field name="name">fusion.service.rate.list</field>
|
|
<field name="model">fusion.service.rate</field>
|
|
<field name="arch" type="xml">
|
|
<list string="Service Rates" editable="top"
|
|
default_order="sequence, rate_kind, category, timing">
|
|
<field name="sequence" widget="handle"/>
|
|
<field name="name"/>
|
|
<field name="code"/>
|
|
<field name="rate_kind" string="Kind"/>
|
|
<field name="category"/>
|
|
<field name="timing"/>
|
|
<field name="unit"/>
|
|
<field name="price" string="Rate"/>
|
|
<field name="currency_id" column_invisible="True"/>
|
|
<field name="adds_per_km" string="+ km"/>
|
|
<field name="included_labour_min" string="Incl. Labour (min)"/>
|
|
<field name="in_shop" string="In-Shop"/>
|
|
<field name="product_id" string="Invoice Product"/>
|
|
<field name="active" column_invisible="True"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- ===================================================================== -->
|
|
<!-- SERVICE RATE: Form View -->
|
|
<!-- ===================================================================== -->
|
|
<record id="view_fusion_service_rate_form" model="ir.ui.view">
|
|
<field name="name">fusion.service.rate.form</field>
|
|
<field name="model">fusion.service.rate</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Service Rate">
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<h1><field name="name" placeholder="Rate name…"/></h1>
|
|
</div>
|
|
<group>
|
|
<group string="Identification">
|
|
<field name="code"/>
|
|
<field name="rate_kind" string="Kind"/>
|
|
<field name="category"/>
|
|
<field name="timing"/>
|
|
<field name="in_shop"/>
|
|
<field name="active"/>
|
|
<field name="sequence"/>
|
|
</group>
|
|
<group string="Pricing">
|
|
<field name="price" string="Rate"/>
|
|
<field name="currency_id"/>
|
|
<field name="unit"/>
|
|
<field name="adds_per_km"/>
|
|
<field name="included_labour_min"/>
|
|
</group>
|
|
</group>
|
|
<group string="Invoice Product">
|
|
<field name="product_id" string="Product" colspan="2"/>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- ===================================================================== -->
|
|
<!-- SERVICE RATE: Action -->
|
|
<!-- ===================================================================== -->
|
|
<record id="action_fusion_service_rate" model="ir.actions.act_window">
|
|
<field name="name">Service Rates</field>
|
|
<field name="res_model">fusion.service.rate</field>
|
|
<field name="view_mode">list,form</field>
|
|
<field name="context">{'active_test': False}</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
No service rates found.
|
|
</p>
|
|
<p>
|
|
Add rates used for booking service calls, labour, travel, and delivery.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- ===================================================================== -->
|
|
<!-- SERVICE RATE: Menu item under Technician Configuration -->
|
|
<!-- ===================================================================== -->
|
|
<menuitem id="menu_fusion_service_rate"
|
|
name="Service Rates"
|
|
parent="fusion_tasks.menu_technician_config"
|
|
action="action_fusion_service_rate"
|
|
sequence="50"
|
|
groups="base.group_system"/>
|
|
|
|
</odoo>
|