You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="emc_external_layout_standard" inherit_id="web.external_layout_standard" primary="True">
  4. <xpath expr="//div[hasclass('o_standard_footer')]" position="attributes">
  5. <attribute name="style">display: none;</attribute>
  6. </xpath>
  7. <xpath expr="//div[hasclass('footer', 'o_standard_footer')]" position="before">
  8. <div class="footer o_emc_footer" name="footer" style="font-size: 0.8em;">
  9. <div class="row">
  10. <div t-att-class="'text-center col-10' if company.display_logo1 or company.display_logo2 else 'text-center col'">
  11. <ul class="list-inline mb4">
  12. <li t-if="company.phone" class="list-inline-item">Phone: <span t-field="company.phone"/></li>
  13. <li t-if="company.email" class="list-inline-item">Email: <span t-field="company.email"/></li>
  14. <li t-if="company.website" class="list-inline-item">Web: <span t-field="company.website"/></li>
  15. <li t-if="company.vat" class="list-inline-item"><t t-esc="company.country_id.vat_label or 'Tax ID'"/>: <span t-field="company.vat"/></li>
  16. </ul>
  17. <div name="financial_infos">
  18. <span t-field="company.report_footer"/>
  19. </div>
  20. <div t-if="report_type == 'pdf'" class="text-muted text-center">
  21. Page: <span class="page"/> / <span class="topage"/>
  22. </div>
  23. </div>
  24. <div name="logos" class="col-2 text-center" t-if="company.display_logo1 or company.display_logo2">
  25. <img class="img img-responsive"
  26. t-if="company.display_logo1"
  27. t-attf-src="data:image/*;base64,{{company.bottom_logo1}}"
  28. style="display: block; margin: auto; max-width: 100%; max-height: 3em;"/>
  29. <img class="img img-responsive"
  30. t-if="company.display_logo2"
  31. t-attf-src="data:image/*;base64,{{company.bottom_logo2}}"
  32. style="display: block; margin: auto; max-width: 100%; max-height: 3em;"/>
  33. </div>
  34. </div>
  35. </div>
  36. </xpath>
  37. </template>
  38. <template
  39. id="emc_external_layout_larger_logo"
  40. inherit_id="easy_my_coop.emc_external_layout_standard"
  41. primary="True">
  42. <!--
  43. This template should be used with the special paperformat
  44. that extend margin. See paperformat in data.
  45. -->
  46. <xpath expr="//div[hasclass('header')]//div//img" position="attributes">
  47. <attribute name="style">min-height: 75px; max-height: 75px;</attribute>
  48. </xpath>
  49. </template>
  50. </odoo>