107 lines
5.4 KiB
XML
107 lines
5.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!-- Fabric Inspection List View -->
|
|
<record id="view_garment_fabric_inspection_list" model="ir.ui.view">
|
|
<field name="name">garment.fabric.inspection.list</field>
|
|
<field name="model">garment.fabric.inspection</field>
|
|
<field name="arch" type="xml">
|
|
<list string="Fabric 4-Point Inspections" sample="1"
|
|
decoration-success="state == 'passed'"
|
|
decoration-danger="state == 'failed'">
|
|
<field name="name"/>
|
|
<field name="roll_id"/>
|
|
<field name="fabric_product_id"/>
|
|
<field name="shade_lot"/>
|
|
<field name="shade_grade"/>
|
|
<field name="score_per_100_sqm"/>
|
|
<field name="max_allowed_score"/>
|
|
<field name="passed_meters"/>
|
|
<field name="inspector_id"/>
|
|
<field name="date_inspected"/>
|
|
<field name="state" widget="badge"
|
|
decoration-success="state == 'passed'"
|
|
decoration-danger="state == 'failed'"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Fabric Inspection Form View -->
|
|
<record id="view_garment_fabric_inspection_form" model="ir.ui.view">
|
|
<field name="name">garment.fabric.inspection.form</field>
|
|
<field name="model">garment.fabric.inspection</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Fabric 4-Point Inspection">
|
|
<header>
|
|
<button name="action_pass" string="Approve Roll (Quality Pass)" type="object" class="btn-success" invisible="state == 'passed'"/>
|
|
<button name="action_fail" string="Reject Roll (Quarantine)" type="object" class="btn-danger" invisible="state == 'failed'"/>
|
|
<field name="state" widget="statusbar" statusbar_visible="draft,inspected,passed"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<label for="name" string="Inspection Report Number"/>
|
|
<h1><field name="name"/></h1>
|
|
</div>
|
|
<group>
|
|
<group string="Roll & Origin">
|
|
<field name="roll_id"/>
|
|
<field name="fabric_product_id"/>
|
|
<field name="supplier_id"/>
|
|
<field name="shade_lot"/>
|
|
</group>
|
|
<group string="Inspector & Audit Date">
|
|
<field name="inspector_id"/>
|
|
<field name="date_inspected"/>
|
|
<field name="inspected_meters"/>
|
|
</group>
|
|
</group>
|
|
<group string="Physical Verification & Shade Grading">
|
|
<group>
|
|
<label for="actual_gsm" string="GSM (Actual / Target)"/>
|
|
<div class="o_row">
|
|
<field name="actual_gsm"/> / <field name="target_gsm"/> GSM
|
|
</div>
|
|
<label for="actual_width" string="Width (Actual / Target)"/>
|
|
<div class="o_row">
|
|
<field name="actual_width"/> / <field name="target_width"/> Inches
|
|
</div>
|
|
</group>
|
|
<group>
|
|
<field name="shade_grade" widget="radio"/>
|
|
</group>
|
|
</group>
|
|
<group string="4-Point Defect Scoring System">
|
|
<group>
|
|
<field name="defects_1pt_count" string="1-Point Defects (<= 3 inches)"/>
|
|
<field name="defects_2pt_count" string="2-Point Defects (3 - 6 inches)"/>
|
|
<field name="defects_3pt_count" string="3-Point Defects (6 - 9 inches)"/>
|
|
<field name="defects_4pt_count" string="4-Point Defects (> 9 inches / Any Hole)"/>
|
|
</group>
|
|
<group>
|
|
<field name="total_defect_points" class="fw-bold"/>
|
|
<field name="score_per_100_sqm" class="fw-bold fs-4 text-primary"/>
|
|
<field name="max_allowed_score"/>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page string="Inspector Observations & Verdict" name="remarks_tab">
|
|
<field name="remarks" placeholder="Document any slub patterns, needle lines, bowing/skewing percentage, or shade variance notes..."/>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
<chatter/>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Action & Menu -->
|
|
<record id="action_garment_fabric_inspection" model="ir.actions.act_window">
|
|
<field name="name">Fabric 4-Point Inspections</field>
|
|
<field name="res_model">garment.fabric.inspection</field>
|
|
<field name="view_mode">list,form</field>
|
|
</record>
|
|
|
|
<menuitem id="menu_garment_fabric_inspection" name="Fabric 4-Point Inspections" parent="menu_garment_inventory_root" action="action_garment_fabric_inspection" sequence="20"/>
|
|
|
|
</odoo>
|