下拉选项检测

This commit is contained in:
hyyy
2025-07-16 17:37:29 +08:00
parent 4d959eab59
commit 20415d0d3f
5 changed files with 119 additions and 3 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 custom_made_type_listener_select2" create="false" delete="false"
js_class="custom_demand_plan_list">
<header>
<button string="打印" name="button_action_print" type="object"

View File

@@ -78,7 +78,7 @@
</tree>
</field>
<field name="line_ids" attrs="{'invisible': [('state', 'not in', ('40','50'))]}">
<tree editable="bottom">
<tree editable="bottom" class="custom_made_type_listener_select">
<field name="status"/>
<field name="readonly_custom_made_type" invisible="1"/>
<field name="new_supply_method" attrs="{'readonly': [('status', '!=', '30')]}"/>