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.

78 lines
3.5 KiB

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