|
|
|
|
@@ -1,41 +1,44 @@
|
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<odoo>
|
|
|
|
|
<!-- Manufacturing Order for Planing view -->
|
|
|
|
|
<record id="mrp_production_tree_view_planning" model="ir.ui.view">
|
|
|
|
|
<field name="name">mrp.production.tree.inherit.planning</field>
|
|
|
|
|
<field name="model">mrp.production</field>
|
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
|
<tree default_order="date_planned_start asc" decoration-info="state=='confirmed'" decoration-danger="date_planned_start<current_date and state not in ('done','cancel')" decoration-muted="state in ('done','cancel')" string="Manufacturing Orders" name="Production">
|
|
|
|
|
<field name="message_needaction" invisible="1"/>
|
|
|
|
|
<field name="name"/>
|
|
|
|
|
<field name="date_planned_start"/>
|
|
|
|
|
<field name="product_id"/>
|
|
|
|
|
<field name="product_qty" sum="Total Qty" string="Quantity"/>
|
|
|
|
|
<field name="product_uom_id" string="Unit of Measure" options="{'no_open':True,'no_create':True}" groups="uom.group_uom"/>
|
|
|
|
|
<field name="reservation_state" string="Availability"/>
|
|
|
|
|
<field name="origin"/>
|
|
|
|
|
<field name="state"/>
|
|
|
|
|
</tree>
|
|
|
|
|
</field>
|
|
|
|
|
</record>
|
|
|
|
|
<!-- Manufacturing Order for Planing view -->
|
|
|
|
|
<record id="mrp_production_tree_view_planning" model="ir.ui.view">
|
|
|
|
|
<field name="name">mrp.production.tree.inherit.planning</field>
|
|
|
|
|
<field name="model">mrp.production</field>
|
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
|
<tree default_order="date_planned_start asc" decoration-info="state=='confirmed'"
|
|
|
|
|
decoration-danger="date_planned_start<current_date and state not in ('done','cancel')"
|
|
|
|
|
decoration-muted="state in ('done','cancel')" string="Manufacturing Orders" name="Production">
|
|
|
|
|
<field name="message_needaction" invisible="1"/>
|
|
|
|
|
<field name="name"/>
|
|
|
|
|
<field name="date_planned_start"/>
|
|
|
|
|
<field name="product_id"/>
|
|
|
|
|
<field name="product_qty" sum="Total Qty" string="Quantity"/>
|
|
|
|
|
<field name="product_uom_id" string="Unit of Measure" options="{'no_open':True,'no_create':True}"
|
|
|
|
|
groups="uom.group_uom"/>
|
|
|
|
|
<field name="reservation_state" string="Availability"/>
|
|
|
|
|
<field name="origin"/>
|
|
|
|
|
<field name="state"/>
|
|
|
|
|
</tree>
|
|
|
|
|
</field>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<!-- <record id="mrp_production_form_inherit_planning" model="ir.ui.view">-->
|
|
|
|
|
<!-- <field name="name">mrp.production.form_inherit_planning</field>-->
|
|
|
|
|
<!-- <field name="model">mrp.production</field>-->
|
|
|
|
|
<!-- <field name="inherit_id" ref="mrp.mrp_production_form_view"/>-->
|
|
|
|
|
<!-- <field name="arch" type="xml">-->
|
|
|
|
|
<!-- <xpath expr="div[hasclass('oe_chatter')]" position="replace">-->
|
|
|
|
|
<!-- <!– 这里放置替换后的内容 –>-->
|
|
|
|
|
<!-- </xpath>-->
|
|
|
|
|
<!-- <xpath expr="//notebook" position="after">-->
|
|
|
|
|
<!-- <div class="oe_chatter">-->
|
|
|
|
|
<!-- <field name="message_follower_ids"/>-->
|
|
|
|
|
<!-- <field name="activity_ids"/>-->
|
|
|
|
|
<!-- <field name="message_ids"/>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </xpath>-->
|
|
|
|
|
<!-- </field>-->
|
|
|
|
|
<!-- </record>-->
|
|
|
|
|
<!-- <record id="mrp_production_form_inherit_planning" model="ir.ui.view">-->
|
|
|
|
|
<!-- <field name="name">mrp.production.form_inherit_planning</field>-->
|
|
|
|
|
<!-- <field name="model">mrp.production</field>-->
|
|
|
|
|
<!-- <field name="inherit_id" ref="mrp.mrp_production_form_view"/>-->
|
|
|
|
|
<!-- <field name="arch" type="xml">-->
|
|
|
|
|
<!-- <xpath expr="div[hasclass('oe_chatter')]" position="replace">-->
|
|
|
|
|
<!-- <!– 这里放置替换后的内容 –>-->
|
|
|
|
|
<!-- </xpath>-->
|
|
|
|
|
<!-- <xpath expr="//notebook" position="after">-->
|
|
|
|
|
<!-- <div class="oe_chatter">-->
|
|
|
|
|
<!-- <field name="message_follower_ids"/>-->
|
|
|
|
|
<!-- <field name="activity_ids"/>-->
|
|
|
|
|
<!-- <field name="message_ids"/>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </xpath>-->
|
|
|
|
|
<!-- </field>-->
|
|
|
|
|
<!-- </record>-->
|
|
|
|
|
|
|
|
|
|
<record id="mrp_production_view_search_inherit_planning" model="ir.ui.view">
|
|
|
|
|
<field name="name">mrp.production.search.view.inherit.planning</field>
|
|
|
|
|
@@ -43,7 +46,9 @@
|
|
|
|
|
<field name="inherit_id" ref="mrp.view_mrp_production_filter"/>
|
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
|
<filter name="filter_planned" position="attributes">
|
|
|
|
|
<attribute name="domain">[('is_planned', '=', True), ('date_planned_start', '!=', False), ('date_planned_finished', '!=', False)]</attribute>
|
|
|
|
|
<attribute name="domain">[('is_planned', '=', True), ('date_planned_start', '!=', False),
|
|
|
|
|
('date_planned_finished', '!=', False)]
|
|
|
|
|
</attribute>
|
|
|
|
|
</filter>
|
|
|
|
|
</field>
|
|
|
|
|
</record>
|
|
|
|
|
@@ -51,30 +56,33 @@
|
|
|
|
|
<record id="production_order_unplan_server_action" model="ir.actions.server">
|
|
|
|
|
<field name="name">Unplan orders</field>
|
|
|
|
|
<field name="model_id" ref="mrp.model_mrp_production"/>
|
|
|
|
|
<field name="binding_model_id" ref="mrp.model_mrp_production" />
|
|
|
|
|
<field name="binding_model_id" ref="mrp.model_mrp_production"/>
|
|
|
|
|
<field name="binding_view_types">list</field>
|
|
|
|
|
<field name="state">code</field>
|
|
|
|
|
<field name="code">records.button_unplan()</field>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<record id="mrp.act_product_mrp_production_workcenter" model="ir.actions.act_window">
|
|
|
|
|
<field name="domain">[('bom_id', '!=', False), ('bom_id.operation_ids.workcenter_id', '=', active_id), ('date_planned_start', '!=', False), ('date_planned_finished', '!=', False)]</field>
|
|
|
|
|
<field name="domain">[('bom_id', '!=', False), ('bom_id.operation_ids.workcenter_id', '=', active_id),
|
|
|
|
|
('date_planned_start', '!=', False), ('date_planned_finished', '!=', False)]
|
|
|
|
|
</field>
|
|
|
|
|
<field name="view_id" ref="mrp_production_tree_view_planning"/>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<menuitem id="mrp_workorder_menu_planning"
|
|
|
|
|
name="Work Orders"
|
|
|
|
|
sequence="2"
|
|
|
|
|
parent="mrp.mrp_planning_menu_root"
|
|
|
|
|
groups="mrp.group_mrp_routings"/>
|
|
|
|
|
name="Work Orders"
|
|
|
|
|
sequence="2"
|
|
|
|
|
parent="mrp.mrp_planning_menu_root"
|
|
|
|
|
groups="mrp.group_mrp_routings"/>
|
|
|
|
|
<menuitem id="menu_mrp_workorder_production"
|
|
|
|
|
name="Planning by Production"
|
|
|
|
|
sequence="1"
|
|
|
|
|
action="mrp.action_mrp_workorder_production"
|
|
|
|
|
parent="mrp_workorder_menu_planning"/>
|
|
|
|
|
name="Planning by Production"
|
|
|
|
|
sequence="1"
|
|
|
|
|
action="mrp.action_mrp_workorder_production"
|
|
|
|
|
parent="mrp_workorder_menu_planning"/>
|
|
|
|
|
<menuitem id="menu_mrp_workorder_workcenter"
|
|
|
|
|
name="Planning by Workcenter"
|
|
|
|
|
sequence="2"
|
|
|
|
|
action="mrp_workorder.action_mrp_workorder_dependencies_workcenter"
|
|
|
|
|
parent="mrp_workorder_menu_planning"/>
|
|
|
|
|
name="Planning by Workcenter"
|
|
|
|
|
sequence="2"
|
|
|
|
|
action="mrp_workorder.action_mrp_workorder_dependencies_workcenter"
|
|
|
|
|
parent="mrp_workorder_menu_planning"/>
|
|
|
|
|
</odoo>
|
|
|
|
|
|