report_templates.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="external_layout_standard" inherit_id="web.external_layout_standard" >
  4. <!-- support for custom header -->
  5. <div t-attf-class="header o_company_#{company.id}_layout" position="attributes">
  6. <attribute name="t-if">not custom_header</attribute>
  7. </div>
  8. <div t-attf-class="header o_company_#{company.id}_layout" position="after">
  9. <div t-attf-class="header o_company_#{company.id}_layout" t-if="custom_header">
  10. <t t-call="#{custom_header}"/>
  11. </div>
  12. </div>
  13. <!-- support for custom footer -->
  14. <div t-attf-class="footer o_standard_footer o_company_#{company.id}_layout" position="attributes">
  15. <attribute name="t-if">not custom_footer</attribute>
  16. </div>
  17. <div t-attf-class="footer o_standard_footer o_company_#{company.id}_layout" position="after">
  18. <div t-attf-class="footer o_standard_footer o_company_#{company.id}_layout" t-if="custom_footer">
  19. <t t-out="custom_footer"/>
  20. </div>
  21. </div>
  22. </template>
  23. <template id="external_layout_bold" inherit_id="web.external_layout_bold" >
  24. <!-- support for custom header -->
  25. <div t-attf-class="header o_company_#{company.id}_layout" position="attributes">
  26. <attribute name="t-if">not custom_header</attribute>
  27. </div>
  28. <div t-attf-class="header o_company_#{company.id}_layout" position="after">
  29. <div t-attf-class="header o_company_#{company.id}_layout" t-if="custom_header">
  30. <div class="o_clean_header">
  31. <t t-call="#{custom_header}"/>
  32. </div>
  33. </div>
  34. </div>
  35. <!-- support for custom footer -->
  36. <div t-attf-class="footer o_clean_footer o_company_#{company.id}_layout" position="attributes">
  37. <attribute name="t-if">not custom_footer</attribute>
  38. </div>
  39. <div t-attf-class="footer o_clean_footer o_company_#{company.id}_layout" position="after">
  40. <div t-attf-class="footer o_clean_footer o_company_#{company.id}_layout" t-if="custom_footer">
  41. <t t-out="custom_footer"/>
  42. </div>
  43. </div>
  44. </template>
  45. <template id="external_layout_boxed" inherit_id="web.external_layout_boxed" >
  46. <!-- support for custom header -->
  47. <div t-attf-class="header o_company_#{company.id}_layout" position="attributes">
  48. <attribute name="t-if">not custom_header</attribute>
  49. </div>
  50. <div t-attf-class="header o_company_#{company.id}_layout" position="after">
  51. <div t-attf-class="header o_company_#{company.id}_layout" t-if="custom_header">
  52. <div class="o_boxed_header">
  53. <t t-call="#{custom_header}"/>
  54. </div>
  55. </div>
  56. </div>
  57. <!-- support for custom footer -->
  58. <div t-attf-class="footer o_boxed_footer o_company_#{company.id}_layout" position="attributes">
  59. <attribute name="t-if">not custom_footer</attribute>
  60. </div>
  61. <div t-attf-class="footer o_boxed_footer o_company_#{company.id}_layout" position="after">
  62. <div t-attf-class="footer o_boxed_footer o_company_#{company.id}_layout" t-if="custom_footer">
  63. <t t-out="custom_footer"/>
  64. </div>
  65. </div>
  66. </template>
  67. <template id="external_layout_striped" inherit_id="web.external_layout_striped" >
  68. <!-- support for custom header -->
  69. <div t-attf-class="o_company_#{company.id}_layout header" position="attributes">
  70. <attribute name="t-if">not custom_header</attribute>
  71. </div>
  72. <div t-attf-class="o_company_#{company.id}_layout header" position="after">
  73. <div t-attf-class="o_company_#{company.id}_layout header" t-if="custom_header">
  74. <div class="o_background_header">
  75. <t t-call="#{custom_header}"/>
  76. </div>
  77. </div>
  78. </div>
  79. <!-- support for custom footer -->
  80. <div t-attf-class="o_company_#{company.id}_layout footer o_background_footer" position="attributes">
  81. <attribute name="t-if">not custom_footer</attribute>
  82. </div>
  83. <div t-attf-class="o_company_#{company.id}_layout footer o_background_footer" position="after">
  84. <div t-attf-class="o_company_#{company.id}_layout footer o_background_footer" t-if="custom_footer">
  85. <t t-out="custom_footer"/>
  86. </div>
  87. </div>
  88. </template>
  89. </odoo>