Advertisement
rht_odoo

[QW][4707829]special_footer_external_layout_boxed

Apr 14th, 2025 (edited)
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.74 KB | None | 0 0
  1. <data>
  2.     <!--
  3.    Done by RHT on the 14/04/2025
  4.    Need : different footer for commerical invoice
  5.    Task : https://www.odoo.com/odoo/project.task/4707829
  6.    Pastebin : https://pastebin.com/QgyLBfhU
  7.    -->
  8.     <xpath expr="//div[3]" position="replace">
  9.         <div t-attf-class="footer o_company_#{company.id}_layout {{report_type != 'pdf' and 'mt-auto'}}" t-if="commercial_footer">
  10.             <div class="o_footer_content row border-top">
  11.                 I certify that the information presented on this invoice is true and accurate to the best of my knowledge.
  12.             </div>
  13.             <div class="row">
  14.                 <div class="col-5">
  15.                     <strong>Authorized By:</strong>   __________________________
  16.                 </div>
  17.                 <div class="col-4">
  18.                     <strong>Title:</strong>   __________________________
  19.                 </div>
  20.                 <div class="col-3">
  21.                     <strong>Date:</strong>   _________________
  22.                 </div>
  23.             </div>
  24.         </div>
  25.         <div class="o_footer_content row border-top pt-2" t-if="not commercial_footer">
  26.             <div class="col-8">
  27.                 <span t-field="company.report_footer"/>
  28.             </div>
  29.             <div class="col-4 text-end">
  30.                 <strong t-if="company.report_header" t-field="company.report_header" class="o_company_tagline">Company tagline</strong>
  31.                 <span t-if="report_type == 'pdf' and display_name_in_footer" class="text-muted" t-out="str(o.name) + ', '">(document name)</span>
  32.                 <span t-if="report_type == 'pdf'" class="text-muted">Page <span class="page"/> / <span class="topage"/></span>
  33.             </div>
  34.         </div>
  35.     </xpath>
  36. </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement