Files
Odoo-Modules/fusion-plating/fusion_plating_compliance/views/fp_waste_stream_views.xml
gsinghpal be611876ad changes
2026-04-12 09:09:50 -04:00

93 lines
4.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_fp_waste_stream_list" model="ir.ui.view">
<field name="name">fp.waste.stream.list</field>
<field name="model">fusion.plating.waste.stream</field>
<field name="arch" type="xml">
<list string="Waste Streams">
<field name="code"/>
<field name="name"/>
<field name="facility_id"/>
<field name="waste_class"/>
<field name="physical_state"/>
<field name="approved_carrier_id"/>
<field name="active" widget="boolean_toggle"/>
</list>
</field>
</record>
<record id="view_fp_waste_stream_form" model="ir.ui.view">
<field name="name">fp.waste.stream.form</field>
<field name="model">fusion.plating.waste.stream</field>
<field name="arch" type="xml">
<form string="Waste Stream">
<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. Spent nickel bath"/></h1>
<div class="text-muted"><field name="code" placeholder="WS-001"/></div>
</div>
<group>
<group>
<field name="facility_id"/>
<field name="waste_class"/>
<field name="physical_state"/>
</group>
<group>
<field name="generation_rate"/>
<field name="generation_uom"/>
<field name="disposal_method"/>
<field name="active" widget="boolean_toggle"/>
</group>
</group>
<group string="Approved Vendors">
<field name="approved_carrier_id"/>
<field name="approved_facility_id"/>
</group>
<notebook>
<page string="Description"><field name="description" nolabel="1"/></page>
<page string="Manifests">
<field name="manifest_ids">
<list>
<field name="name"/>
<field name="ship_date"/>
<field name="quantity"/>
<field name="uom"/>
<field name="manifest_number"/>
<field name="state"/>
</list>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="view_fp_waste_stream_search" model="ir.ui.view">
<field name="name">fp.waste.stream.search</field>
<field name="model">fusion.plating.waste.stream</field>
<field name="arch" type="xml">
<search string="Waste Streams">
<field name="name"/>
<field name="code"/>
<field name="facility_id"/>
<field name="waste_class"/>
<filter string="Liquid" name="liquid" domain="[('physical_state', '=', 'liquid')]"/>
<filter string="Sludge" name="sludge" domain="[('physical_state', '=', 'sludge')]"/>
<filter string="Solid" name="solid" domain="[('physical_state', '=', 'solid')]"/>
<filter string="Archived" name="inactive" domain="[('active', '=', False)]"/>
<group>
<filter string="Facility" name="group_facility" context="{'group_by': 'facility_id'}"/>
<filter string="Physical State" name="group_state" context="{'group_by': 'physical_state'}"/>
</group>
</search>
</field>
</record>
<record id="action_fp_waste_stream" model="ir.actions.act_window">
<field name="name">Waste Streams</field>
<field name="res_model">fusion.plating.waste.stream</field>
<field name="view_mode">list,form</field>
<field name="search_view_id" ref="view_fp_waste_stream_search"/>
</record>
</odoo>