物料需求计划管理

This commit is contained in:
guanhuan
2025-06-26 17:18:03 +08:00
parent c14e2c19bf
commit fe4659987f
5 changed files with 83 additions and 7 deletions

View File

@@ -71,7 +71,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>

View File

@@ -33,17 +33,17 @@
<field name="model_process_parameters_ids" widget="many2many_tags"/>
<field name="model_machining_precision"/>
<field name="inventory_quantity_auto_apply"/>
<field name="priority"/>
<field name="priority" attrs="{'readonly': [('state', '=', '40')]}"/>
</group>
</group>
<notebook>
<page string="计划">
<field name="line_ids">
<field name="line_ids" attrs="{'readonly': [('state', '=', '40')]}">
<tree editable="bottom" delete="false">
<field name="status"/>
<field name="supply_method" attrs="{'readonly': [('status', '!=', '30')]}"/>
<field name="route_ids" widget="many2many_tags" optional="hide"/>
<!--<field name="需求位置"/>-->
<field name="location_id" optional="hide"/>
<field name="bom_id" optional="hide"/>
<field name="plan_uom_qty"/>
<field name="blank_arrival_date"/>