更新制造订单生成工单时的工序字段

This commit is contained in:
gqh
2022-11-17 17:27:05 +08:00
parent 4f0df9f2bd
commit 057ec915d9
23 changed files with 792 additions and 148 deletions

View File

@@ -1,6 +1,6 @@
<odoo>
<data>
<!-- 托盘码打印尺寸-->
<!-- 托盘码打印尺寸-->
<record id="sf_tray1" model="report.paperformat">
<field name="name">Dymo Label Sheet</field>
<field name="default" eval="True"/>
@@ -16,7 +16,7 @@
<field name="dpi">96</field>
</record>
<!-- 托盘码打印动作-->
<!-- 托盘码打印动作-->
<record id="label_sf_tray_code" model="ir.actions.report">
<field name="name">打印条形码</field>
<field name="model">sf.tray</field>
@@ -28,7 +28,7 @@
<field name="paperformat_id" ref="sf_route_workcenter.sf_tray1"/>
</record>
<!-- 托盘码打印模板-->
<!-- 托盘码打印模板-->
<template id="sf_tray_template">
<t t-call="web.html_container">
<t t-call="web.external_layout">
@@ -65,10 +65,11 @@
<t t-call="web.external_layout">
<t t-foreach="docs" t-as="o">
<div class="page">
<div t-field="o.production_id.name"
t-options="{'widget': 'barcode', 'width': 600, 'height': 100, 'img_style': 'width:350px;height:60px'}"/>
<div t-field="o.production_id" style="text-align: center"/>
<div t-field="o.name" style="text-align: center"/>
</div>
</t>
@@ -78,8 +79,5 @@
</template>
</data>
</odoo>