mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[MIG] stock_picking_comment_template: Migration to 14.0
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user