tree视图中的"批量排程"按钮优化为向导的实现方式

This commit is contained in:
mgw
2024-01-08 14:52:29 +08:00
parent c0a3a550d7
commit bc4a4df53e
8 changed files with 109 additions and 4 deletions

View File

@@ -5,9 +5,11 @@
<field name="name">sf.production.plan.tree</field>
<field name="model">sf.production.plan</field>
<field name="arch" type="xml">
<tree string="订单计划" editable="bottom">
<!-- <tree string="订单计划" editable="bottom"> -->
<tree string="订单计划">
<header>
<button name="do_production_schedule" type="object" string="批量排程"/>
<!-- <button name="do_production_schedule" type="object" string="批量排程"/> -->
<button string="批量排程" name="%(sf_plan.action_plan_some)d" type="action" class="btn-primary"/>
</header>
<field name="state" widget="badge" decoration-warning="state == 'draft'" decoration-success="state == 'done'"/>
<field name="name"/>