<?xml version="1.0" encoding="utf-8" ?>
<!--
  ~ Copyright 2024 Simone Rubino - Aion Tech
  ~ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
  -->
<odoo>

    <template
        id="report_purchasequotation_document_comments"
        inherit_id="purchase.report_purchasequotation_document"
    >
        <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-out="comment_template_top.text" />
            </t>
        </xpath>
        <xpath expr="//p[@t-field='o.notes']" position="after">
            <t
                t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'after_lines')"
                t-as="comment_template_bottom"
            >
                <div t-out="comment_template_bottom.text" />
            </t>
        </xpath>
    </template>

</odoo>
