[14.0] [IMP] Allow dynamic base comment template rendering.

This commit is contained in:
Mihai Fekete
2022-01-10 16:53:47 +02:00
parent 34ae5f9a18
commit 710e708c54
2 changed files with 4 additions and 4 deletions

View File

@@ -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>

View File

@@ -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>