0
votes

I Want to fix a div element in the bottom of the page, just before the footer in the last page, it's a qweb report inherited from the standard invoice report of Odoo, the footer it's already visible only in the last page .

Any Idea ? suggestions ?

Here is a schema of what is wanted

Thanks,

1
You can find report_qweb_element_page_visibility module in Odoo apps.KbiR
Yes Thanks, I already used this module to make the footer visible only in the last page, but what I want is to place another element just before this footer (not inside the footer), like it's showed in the image I sharedZoubida
Try creating div tag and in creation, pass argument 'before' with reference of your 'Footer' tag class.Keval Mehta

1 Answers

0
votes

As you mention your report inherits from the standard invoice report, I assume you already know that the standard invoice layout is a Qweb view named report_invoice_document and you have already defined a template like

  <template id="your_module.report_invoice_document" priority="50" t-name="Your Module - Modifications to the Standard Invoice Layout"  inherit_id="account.report_invoice_document">
    <xpath expr="//div[hasclass('page')]" position="inside">
      <div>Your content</div>
    </xpath>
  </template>

So the only issue is to fine tune both the XPath expression and the position. The whole report is inside a <div class="page"> tag, so using the above xpath tag will put your content just before the report's end.