125 lines
7.0 KiB
XML
125 lines
7.0 KiB
XML
<odoo>
|
|
<record id="view_sf_production_demand_plan_tree" model="ir.ui.view">
|
|
<field name="name">sf.production.demand.plan.tree</field>
|
|
<field name="model">sf.production.demand.plan</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="需求计划" default_order="sequence desc,id desc" editable="bottom"
|
|
class="demand_plan_tree">
|
|
<header>
|
|
<button string="打印" name="button_action_print" type="object"
|
|
class="btn-primary"/>
|
|
</header>
|
|
<field name="sequence" widget="handle"/>
|
|
<field name="id" optional="hide"/>
|
|
<field name="priority"/>
|
|
<field name="status"/>
|
|
<field name="customer_name"/>
|
|
<field name="order_remark"/>
|
|
<field name="glb_url" optional="hide"/>
|
|
<field name="product_id"/>
|
|
<field name="model_id" optional="hide"/>
|
|
<field name="part_name"/>
|
|
<field name="part_number"/>
|
|
<field name="is_incoming_material"/>
|
|
<field name="supply_method"/>
|
|
<field name="product_uom_qty"/>
|
|
<field name="deadline_of_delivery"/>
|
|
<field name="inventory_quantity_auto_apply"/>
|
|
<field name="qty_delivered"/>
|
|
<field name="qty_to_deliver"/>
|
|
<field name="model_long"/>
|
|
<field name="blank_type"/>
|
|
<field name="embryo_long"/>
|
|
<field name="materials_id"/>
|
|
<field name="model_machining_precision"/>
|
|
<field name="model_process_parameters_ids" widget="many2many_tags"/>
|
|
<field name="product_remark" optional="hide"/>
|
|
<field name="order_code" optional="hide"/>
|
|
<field name="sale_order_id" optional="hide"/>
|
|
<field name="sale_order_line_number" optional="hide"/>
|
|
<field name="order_state"/>
|
|
<field name="route_id" optional="hide"/>
|
|
<field name="contract_date"/>
|
|
<field name="date_order"/>
|
|
<field name="contract_code"/>
|
|
<field name="plan_remark"/>
|
|
<field name="processing_time"/>
|
|
<field name="material_check" optional="hide"/>
|
|
<field name="hide_action_open_mrp_production" invisible="1"/>
|
|
<field name="hide_action_purchase_orders" invisible="1"/>
|
|
<field name="hide_action_stock_picking" invisible="1"/>
|
|
<field name="hide_action_view_programming" invisible="1"/>
|
|
<button name="action_open_sale_order" type="object" string="供货方式待确认" class="btn-secondary"
|
|
attrs="{'invisible': [('supply_method', '!=', False)]}"/>
|
|
<button name="action_open_mrp_production" type="object" string="待工艺确认" class="btn-secondary"
|
|
attrs="{'invisible': [('hide_action_open_mrp_production', '=', False)]}"/>
|
|
<button name="action_view_purchase_request" type="object" string="采购申请" class="btn-secondary"
|
|
attrs="{'invisible': [('hide_action_purchase_orders', '=', False)]}"/>
|
|
<button name="action_view_stock_picking" type="object" string="调拨单" class="btn-secondary"
|
|
attrs="{'invisible': [('hide_action_stock_picking', '=', False)]}"/>
|
|
<button name="action_view_programming" type="object" string="编程单" class="btn-secondary"
|
|
attrs="{'invisible': [('hide_action_view_programming', '=', False)]}"/>
|
|
<field name="planned_start_date"/>
|
|
<field name="actual_start_date"/>
|
|
<field name="actual_end_date"/>
|
|
<field name="create_date" optional="hide" string="创建时间"/>
|
|
<field name="create_uid" optional="hide" string="创建人"/>
|
|
<field name="write_date" string="更新时间"/>
|
|
<field name="write_uid" optional="hide" string="更新人"/>
|
|
<field name="print_count"/>
|
|
<button name="release_production_order" type="object" string="下达生产" class="btn-primary"
|
|
attrs="{'invisible': ['|',('status', '!=', '50'), ('supply_method', 'not in', ['automation', 'manual'])]}"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_sf_production_demand_plan_search" model="ir.ui.view">
|
|
<field name="name">sf.production.demand.plan.search</field>
|
|
<field name="model">sf.production.demand.plan</field>
|
|
<field name="arch" type="xml">
|
|
<search>
|
|
<field name="order_remark"/>
|
|
<field name="product_id"/>
|
|
<field name="part_name"/>
|
|
<field name="part_number"/>
|
|
<field name="customer_name"/>
|
|
<field name="supply_method"/>
|
|
<field name="materials_id"/>
|
|
<field name="model_process_parameters_ids"/>
|
|
<field name="plan_remark"/>
|
|
<field name="contract_code"/>
|
|
<group expand="0" string="Group By">
|
|
<filter name="group_by_priority" string="优先级" domain="[]" context="{'group_by': 'priority'}"/>
|
|
<filter name="group_by_status" string="状态" domain="[]" context="{'group_by': 'status'}"/>
|
|
<filter name="group_by_customer_name" string="客户" domain="[]" context="{'group_by': 'customer_name'}"/>
|
|
<filter name="group_by_is_incoming_material" string="客供料" domain="[]"
|
|
context="{'group_by': 'is_incoming_material'}"/>
|
|
<filter name="group_by_supply_method" string="供货方式" domain="[]"
|
|
context="{'group_by': 'supply_method'}"/>
|
|
<filter name="group_by_deadline_of_delivery" string="客户交期" domain="[]"
|
|
context="{'group_by': 'deadline_of_delivery'}"/>
|
|
<filter name="group_by_materials_id" string="材料" domain="[]"
|
|
context="{'group_by': 'materials_id'}"/>
|
|
<filter name="group_by_contract_code" string="合同号" domain="[]"
|
|
context="{'group_by': 'contract_code'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="sf_production_demand_plan_action" model="ir.actions.act_window">
|
|
<field name="name">需求计划</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">sf.production.demand.plan</field>
|
|
<field name="view_mode">tree</field>
|
|
</record>
|
|
|
|
|
|
<menuitem
|
|
id="demand_plan_menu"
|
|
name="需求计划"
|
|
sequence="140"
|
|
action="sf_production_demand_plan_action"
|
|
parent="sf_plan.sf_production_plan_menu"
|
|
/>
|
|
</odoo> |