物料需求计划管理
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<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">
|
||||
class="demand_plan_tree" create="false" delete="false">
|
||||
<header>
|
||||
<button string="打印" name="button_action_print" type="object"
|
||||
class="btn-primary"/>
|
||||
@@ -70,7 +70,7 @@
|
||||
<button name="release_production_order" type="object" string="下达生产" class="btn-primary"
|
||||
attrs="{'invisible': ['|',('status', '!=', '50'), ('supply_method', 'not in', ['automation', 'manual'])]}"/>
|
||||
|
||||
<button name="edit_button" type="object" string="编辑" class="btn-primary"/>
|
||||
<button name="edit_button" type="object" string="编辑" class="btn-primary"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
@@ -93,7 +93,8 @@
|
||||
<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_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="[]"
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
<odoo>
|
||||
<record id="view_sf_demand_plan_list" model="ir.ui.view">
|
||||
<field name="name">sf.demand.plan.list</field>
|
||||
<record id="view_sf_demand_plan_form" model="ir.ui.view">
|
||||
<field name="name">sf.demand.plan.form</field>
|
||||
<field name="model">sf.demand.plan</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<header>
|
||||
<field name="hide_button_release_plan" invisible="1"/>
|
||||
<button string="下达计划" name="button_release_plan" type="object"
|
||||
class="btn-primary" attrs="{'invisible': [('hide_button_release_plan', '=', False)]}"/>
|
||||
<field name="state" widget="statusbar"/>
|
||||
</header>
|
||||
<sheet>
|
||||
@@ -17,7 +20,8 @@
|
||||
<field name="blank_type"/>
|
||||
<field name="embryo_long"/>
|
||||
<field name="is_incoming_material"/>
|
||||
<!-- <field name="待计划"/>-->
|
||||
<field name="pending_qty"/>
|
||||
<field name="planned_qty"/>
|
||||
<field name="model_id"/>
|
||||
</group>
|
||||
<group>
|
||||
@@ -32,6 +36,32 @@
|
||||
<field name="priority"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="计划">
|
||||
<field name="line_ids">
|
||||
<tree editable="bottom" delete="false">
|
||||
<field name="status"/>
|
||||
<field name="supply_method"/>
|
||||
<!--field name="库存路线"/>-->
|
||||
<!--<field name="需求位置"/>-->
|
||||
<!--<field name="bom"/>-->
|
||||
<field name="plan_uom_qty"/>
|
||||
<field name="blank_arrival_date"/>
|
||||
<field name="finished_product_arrival_date"/>
|
||||
<field name="planned_start_date"/>
|
||||
<field name="actual_start_date"/>
|
||||
<field name="actual_end_date"/>
|
||||
<field name="plan_remark"/>
|
||||
<field name="procurement_reason" widget="radio"/>
|
||||
<field name="write_date" string="更新时间"/>
|
||||
<button name="button_delete" type="object" string="删除"
|
||||
class="btn-primary"
|
||||
attrs="{'invisible': [('status', 'not in', ('10','20','30'))]}"
|
||||
confirm='是否确认删除?'/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user