mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[14.0] [IMP] Allow dynamic base comment template rendering.
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'before_lines')"
|
t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'before_lines')"
|
||||||
t-as="comment_template_top"
|
t-as="comment_template_top"
|
||||||
>
|
>
|
||||||
<div t-raw="comment_template_top.text" />
|
<div t-raw="o.render_comment(comment_template_top)" />
|
||||||
</t>
|
</t>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//div[hasclass('page')]" position="inside">
|
<xpath expr="//div[hasclass('page')]" position="inside">
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'after_lines')"
|
t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'after_lines')"
|
||||||
t-as="comment_template_bottom"
|
t-as="comment_template_bottom"
|
||||||
>
|
>
|
||||||
<div t-raw="comment_template_bottom.text" />
|
<div t-raw="o.render_comment(comment_template_bottom)" />
|
||||||
</t>
|
</t>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'before_lines')"
|
t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'before_lines')"
|
||||||
t-as="comment_template_top"
|
t-as="comment_template_top"
|
||||||
>
|
>
|
||||||
<div t-raw="comment_template_top.text" />
|
<div t-raw="o.render_comment(comment_template_top)" />
|
||||||
</t>
|
</t>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//p[@t-field='o.note']" position="after">
|
<xpath expr="//p[@t-field='o.note']" position="after">
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'after_lines')"
|
t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'after_lines')"
|
||||||
t-as="comment_template_bottom"
|
t-as="comment_template_bottom"
|
||||||
>
|
>
|
||||||
<div t-raw="comment_template_bottom.text" />
|
<div t-raw="o.render_comment(comment_template_bottom)" />
|
||||||
</t>
|
</t>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user