88 lines
3.7 KiB
XML
88 lines
3.7 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.
|
|
-->
|
|
<odoo>
|
|
|
|
<!-- ===== LIST ===== -->
|
|
<record id="view_fp_batch_chemistry_list" model="ir.ui.view">
|
|
<field name="name">fp.batch.chemistry.list</field>
|
|
<field name="model">fusion.plating.batch.chemistry</field>
|
|
<field name="arch" type="xml">
|
|
<list string="Chemistry Readings"
|
|
decoration-success="status == 'pass'"
|
|
decoration-warning="status == 'warning'"
|
|
decoration-danger="status == 'fail'">
|
|
<field name="batch_id"/>
|
|
<field name="parameter_id"/>
|
|
<field name="value"/>
|
|
<field name="reading_time"/>
|
|
<field name="status" widget="badge"
|
|
decoration-success="status == 'pass'"
|
|
decoration-warning="status == 'warning'"
|
|
decoration-danger="status == 'fail'"/>
|
|
<field name="notes"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- ===== FORM ===== -->
|
|
<record id="view_fp_batch_chemistry_form" model="ir.ui.view">
|
|
<field name="name">fp.batch.chemistry.form</field>
|
|
<field name="model">fusion.plating.batch.chemistry</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Chemistry Reading">
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="batch_id"/>
|
|
<field name="parameter_id"/>
|
|
<field name="value"/>
|
|
</group>
|
|
<group>
|
|
<field name="reading_time"/>
|
|
<field name="status" widget="badge"
|
|
decoration-success="status == 'pass'"
|
|
decoration-warning="status == 'warning'"
|
|
decoration-danger="status == 'fail'"/>
|
|
<field name="notes"/>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- ===== SEARCH ===== -->
|
|
<record id="view_fp_batch_chemistry_search" model="ir.ui.view">
|
|
<field name="name">fp.batch.chemistry.search</field>
|
|
<field name="model">fusion.plating.batch.chemistry</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Chemistry Readings">
|
|
<field name="batch_id"/>
|
|
<field name="parameter_id"/>
|
|
<separator/>
|
|
<filter string="Pass" name="pass" domain="[('status','=','pass')]"/>
|
|
<filter string="Warning" name="warning" domain="[('status','=','warning')]"/>
|
|
<filter string="Fail" name="fail" domain="[('status','=','fail')]"/>
|
|
<group>
|
|
<filter string="Batch" name="group_batch" context="{'group_by':'batch_id'}"/>
|
|
<filter string="Parameter" name="group_parameter" context="{'group_by':'parameter_id'}"/>
|
|
<filter string="Status" name="group_status" context="{'group_by':'status'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- ===== ACTION ===== -->
|
|
<record id="action_fp_batch_chemistry" model="ir.actions.act_window">
|
|
<field name="name">Chemistry Readings</field>
|
|
<field name="res_model">fusion.plating.batch.chemistry</field>
|
|
<field name="view_mode">list,form</field>
|
|
<field name="search_view_id" ref="view_fp_batch_chemistry_search"/>
|
|
</record>
|
|
|
|
</odoo>
|