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.

80 lines
3.1 KiB

  1. <odoo>
  2. <!-- Copyright (C) 2019 Open Source Integrators
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <template id="external_layout_standard_logo"
  5. inherit_id="web.external_layout_standard">
  6. <xpath expr="//img[@t-if='company.logo']" position="replace">
  7. <t t-if="'brand_id' in o.fields_get() and o.brand_id">
  8. <img t-if="o.brand_id.image"
  9. t-att-src="image_data_uri(o.brand_id.image)"
  10. style="max-height: 45px;" alt="Logo"/>
  11. </t>
  12. <t t-else="">
  13. <img t-if="company.logo"
  14. t-att-src="image_data_uri(company.logo)"
  15. style="max-height: 45px;" alt="Logo"/>
  16. </t>
  17. </xpath>
  18. </template>
  19. <template id="external_layout_standard_address"
  20. inherit_id="web.external_layout_standard">
  21. <xpath expr="//div[@t-field='company.partner_id']" position="replace">
  22. <t t-if="'brand_id' in o.fields_get() and o.brand_id">
  23. <div t-field="o.brand_id.name"/>
  24. <div t-field="o.brand_id"
  25. t-options='{"widget": "contact", "fields": ["address"], "no_marker": true}'/>
  26. </t>
  27. <t t-else="">
  28. <div t-field="company.partner_id"
  29. t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'/>
  30. </t>
  31. </xpath>
  32. </template>
  33. <template id="external_layout_standard_footer"
  34. inherit_id="web.external_layout_standard">
  35. <xpath expr="//ul[hasclass('list-inline')]" position="replace">
  36. <t t-if="'brand_id' in o.fields_get() and o.brand_id">
  37. <ul class="list-inline mb4">
  38. <li t-if="o.brand_id.phone" class="list-inline-item">
  39. Phone:
  40. <span t-field="o.brand_id.phone"/>
  41. </li>
  42. <li t-if="o.brand_id.email" class="list-inline-item">
  43. Email:
  44. <span t-field="o.brand_id.email"/>
  45. </li>
  46. <li t-if="o.brand_id.website" class="list-inline-item">
  47. Web:
  48. <span t-field="o.brand_id.website"/>
  49. </li>
  50. </ul>
  51. </t>
  52. <t t-else="">
  53. <ul t-if="company" class="list-inline mb4">
  54. <li t-if="company.phone"
  55. class="list-inline-item">
  56. Phone:
  57. <span t-field="company.phone"/>
  58. </li>
  59. <li t-if="company.email"
  60. class="list-inline-item">
  61. Email:
  62. <span t-field="company.email"/>
  63. </li>
  64. <li t-if="company.website"
  65. class="list-inline-item">
  66. Web:
  67. <span t-field="company.website"/>
  68. </li>
  69. </ul>
  70. </t>
  71. </xpath>
  72. </template>
  73. </odoo>