gantt图样式修改
This commit is contained in:
@@ -66,12 +66,13 @@
|
||||
<field name="name">sf.pl.plan.gantt</field>
|
||||
<field name="model">sf.pl.plan</field>
|
||||
<field name="arch" type="xml">
|
||||
<gantt class="o_mrp_workorder_gantt" date_stop="plan_end_time" date_start="plan_start_time" string="坯料预制计划" default_group_by="current_operation_name" create="0"
|
||||
delete="0" sample="1"
|
||||
display_unavailability="1"
|
||||
color="pl_name"
|
||||
progress_bar="pl_name"
|
||||
form_view_id="sf_pl_plan_form">
|
||||
<gantt class="o_mrp_workorder_gantt" date_stop="plan_end_time" date_start="plan_start_time"
|
||||
string="坯料预制计划" default_group_by="current_operation_name" create="0"
|
||||
delete="0" sample="1"
|
||||
display_unavailability="1"
|
||||
color="state"
|
||||
progress_bar="pl_name"
|
||||
form_view_id="sf_pl_plan_form">
|
||||
|
||||
<field name="pl_no"/>
|
||||
<field name="pl_name"/>
|
||||
@@ -80,21 +81,43 @@
|
||||
<field name="plan_end_time"/>
|
||||
<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="pl_no"/></li>
|
||||
<li><strong>坯料名称: </strong> <t t-out="pl_name"/></li>
|
||||
<li><strong>数量: </strong> <t t-out="quantity"/></li>
|
||||
<li><strong>材质: </strong> <t t-out="material"/></li>
|
||||
</ul>
|
||||
<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="pl_no"/>
|
||||
</li>
|
||||
<li>
|
||||
<strong>坯料名称:</strong>
|
||||
<t t-out="pl_name"/>
|
||||
</li>
|
||||
<li>
|
||||
<strong>数量:</strong>
|
||||
<t t-out="quantity"/>
|
||||
</li>
|
||||
<li>
|
||||
<strong>材质:</strong>
|
||||
<t t-out="material"/>
|
||||
</li>
|
||||
<li>
|
||||
<strong>状态:</strong>
|
||||
<t t-out="state"/>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</templates>
|
||||
</templates>
|
||||
</gantt>
|
||||
</field>
|
||||
</record>
|
||||
@@ -113,6 +136,6 @@
|
||||
parent="mrp_workorder.mrp_workorder_menu_planning"
|
||||
sequence="10"
|
||||
action="sf_pl_plan_action"
|
||||
/>
|
||||
/>
|
||||
</data>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user