feat(receiving): SO auto-create + MRP soft gate + menu structure
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,2 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo></odoo>
|
||||
<!--
|
||||
Copyright 2026 Nexa Systems Inc.
|
||||
License OPL-1 (Odoo Proprietary License v1.0)
|
||||
Part of the Fusion Plating product family.
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<!-- ===== Window actions (defined BEFORE menus) ===== -->
|
||||
<record id="action_fp_receiving_pending" model="ir.actions.act_window">
|
||||
<field name="name">Pending Inspection</field>
|
||||
<field name="res_model">fp.receiving</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="domain">[('state', '=', 'draft')]</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fp_receiving_discrepancy" model="ir.actions.act_window">
|
||||
<field name="name">Discrepancies</field>
|
||||
<field name="res_model">fp.receiving</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="domain">[('state', '=', 'discrepancy')]</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== RECEIVING & INSPECTION submenu ===== -->
|
||||
<menuitem id="menu_fp_receiving_root"
|
||||
name="Receiving & Inspection"
|
||||
parent="fusion_plating.menu_fp_root"
|
||||
sequence="5"
|
||||
groups="group_fp_receiving"/>
|
||||
|
||||
<menuitem id="menu_fp_receiving_all"
|
||||
name="All Receiving"
|
||||
parent="menu_fp_receiving_root"
|
||||
action="action_fp_receiving"
|
||||
sequence="10"/>
|
||||
|
||||
<menuitem id="menu_fp_receiving_pending"
|
||||
name="Pending Inspection"
|
||||
parent="menu_fp_receiving_root"
|
||||
action="action_fp_receiving_pending"
|
||||
sequence="20"/>
|
||||
|
||||
<menuitem id="menu_fp_receiving_discrepancy"
|
||||
name="Discrepancies"
|
||||
parent="menu_fp_receiving_root"
|
||||
action="action_fp_receiving_discrepancy"
|
||||
sequence="30"/>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -1,2 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo></odoo>
|
||||
<!--
|
||||
Copyright 2026 Nexa Systems Inc.
|
||||
License OPL-1 (Odoo Proprietary License v1.0)
|
||||
Part of the Fusion Plating product family.
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<!-- ===== Smart button: Receiving on SO form ===== -->
|
||||
<record id="view_sale_order_form_receiving" model="ir.ui.view">
|
||||
<field name="name">sale.order.form.fp.receiving</field>
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<button name="action_view_receiving" type="object"
|
||||
class="oe_stat_button" icon="fa-truck"
|
||||
invisible="x_fc_receiving_count == 0">
|
||||
<field name="x_fc_receiving_count" widget="statinfo" string="Receiving"/>
|
||||
</button>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user