[MIG] stock_picking_comment_template: Migration to 14.0

This commit is contained in:
Alfredo Zamora
2021-05-31 12:58:20 +02:00
parent 8b855e6d02
commit fd006d845a
16 changed files with 113 additions and 163 deletions

View File

@@ -2,16 +2,22 @@
<odoo>
<template id="report_picking_document_comments" inherit_id="stock.report_picking">
<xpath expr="//table[hasclass('table-sm')]" position="before">
<p t-if="o.note1">
<span t-field="o.note1" />
</p>
</xpath>
<xpath expr="//p[@t-field='o.note']" position="after">
<p t-if="o.note2">
<span t-field="o.note2" />
</p>
</xpath>
<xpath expr="//table[hasclass('table-sm')]" position="before">
<t
t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'before_lines')"
t-as="comment_template_top"
>
<div t-raw="comment_template_top.text" />
</t>
</xpath>
<xpath expr="//p[@t-field='o.note']" position="after">
<t
t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'after_lines')"
t-as="comment_template_bottom"
>
<div t-raw="comment_template_bottom.text" />
</t>
</xpath>
</template>
</odoo>