更改排程结构前备份
This commit is contained in:
@@ -149,6 +149,57 @@
|
||||
<!-- <field name="res_model">sf.pl.plan</field> -->
|
||||
<!-- <field name="view_mode">tree,form,gantt</field> -->
|
||||
<!-- </record> -->
|
||||
<record id="sf_production_gantt_view" model="ir.ui.view">
|
||||
<field name="name">sf.production.plan.gantt</field>
|
||||
<field name="model">mrp.production</field>
|
||||
<field name="arch" type="xml">
|
||||
<gantt class="o_mrp_workorder_gantt" date_stop="date_planned_finished" date_start="date_planned_start"
|
||||
string="制造订单生产计划" default_group_by="production_line_id" create="0"
|
||||
delete="0" sample="1" plan="0"
|
||||
display_unavailability="1"
|
||||
decoration-success="state == 'done'"
|
||||
decoration-secondary="state == 'cancel'"
|
||||
color="production_line_id"
|
||||
progress_bar="state"
|
||||
form_view_id="mrp.mrp_production_form_view">
|
||||
<field name="name"/>
|
||||
<field name="product_qty"/>
|
||||
<field name="date_planned_start"/>
|
||||
<field name="date_planned_finished" string="计划结束时间"/>
|
||||
<field name="state"/>
|
||||
<templates>
|
||||
<div t-name="gantt-popover" class="container-fluid">
|
||||
<div class="row g-0">
|
||||
<div class="col">
|
||||
<ul class="ps-1 mb-0 list-unstyled">
|
||||
<li>
|
||||
<strong>开始时间:</strong>
|
||||
<t t-out="userTimezoneStartDate.format('L LTS')"/>
|
||||
</li>
|
||||
<li>
|
||||
<strong>结束时间:</strong>
|
||||
<t t-out="userTimezoneStopDate.format('L LTS')"/>
|
||||
</li>
|
||||
<li>
|
||||
<strong>数量:</strong>
|
||||
<t t-out="product_qty"/>
|
||||
</li>
|
||||
<li>
|
||||
<strong>状态:</strong>
|
||||
<t t-if="state === 'cancel'">已取消</t>
|
||||
<t t-elif="state === 'done'">已完成</t>
|
||||
<t t-elif="state === '已排程'">已排程</t>
|
||||
<t t-else="">其他状态</t>
|
||||
<!-- <t t-out="state"/> -->
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</templates>
|
||||
</gantt>
|
||||
</field>
|
||||
</record>
|
||||
<record id="sf_pl_plan_action" model="ir.actions.act_window">
|
||||
<field name="name">制造订单生产计划</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
|
||||
Reference in New Issue
Block a user