需求计划供货方式修改

This commit is contained in:
guanhuan
2025-07-03 14:33:19 +08:00
parent 0350f78710
commit 3822d78f35
5 changed files with 81 additions and 39 deletions

View File

@@ -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 freeze-columns-before-part_number" create="false" delete="false">
class="demand_plan_tree freeze-columns-before-part_number" create="false" delete="false">
<header>
<button string="打印" name="button_action_print" type="object"
class="btn-primary"/>
@@ -20,7 +20,11 @@
<field name="part_name"/>
<field name="part_number"/>
<field name="is_incoming_material"/>
<field name="supply_method" attrs="{'readonly': [('status', '!=', '30')]}"/>
<field name="new_supply_method" attrs="{'readonly': [('status', '!=', '30')]}"/>
<field name="readonly_custom_made_type" invisible="1"/>
<field name="custom_made_type"
attrs="{'readonly': ['|',('status', '!=', '30'),('readonly_custom_made_type', '=', True)],
'required': [('new_supply_method', '=', 'custom_made')]}"/>
<field name="product_uom_qty"/>
<field name="deadline_of_delivery"/>
<field name="inventory_quantity_auto_apply"/>