report_template.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="l10n_ca_external_layout_standard" inherit_id="web.external_layout_standard">
  4. <xpath expr="//div[hasclass('row')][last()]" position="after">
  5. <t t-if="company.account_fiscal_country_id.code == 'CA' and company.l10n_ca_pst" class="mt16">
  6. <div>PST: <span t-field="company.l10n_ca_pst"/></div>
  7. </t>
  8. </xpath>
  9. </template>
  10. <template id="l10n_ca_external_layout_bold" inherit_id="web.external_layout_bold">
  11. <xpath expr="//div[hasclass('row')]" position="after">
  12. <t t-if="company.account_fiscal_country_id.code == 'CA' and company.l10n_ca_pst" class="mt16">
  13. <div>PST: <span t-field="company.l10n_ca_pst"/></div>
  14. </t>
  15. </xpath>
  16. </template>
  17. <template id="l10n_ca_external_layout_boxed" inherit_id="web.external_layout_boxed">
  18. <xpath expr="//div[hasclass('row') and hasclass('mb8')]" position="after">
  19. <t t-if="company.account_fiscal_country_id.code == 'CA' and company.l10n_ca_pst" class="mt16">
  20. <div>PST: <span t-field="company.l10n_ca_pst"/></div>
  21. </t>
  22. </xpath>
  23. </template>
  24. <template id="l10n_ca_external_layout_striped" inherit_id="web.external_layout_striped">
  25. <xpath expr="//div[hasclass('float-start') and hasclass('company_address')]" position="after">
  26. <t t-if="company.account_fiscal_country_id.code == 'CA' and company.l10n_ca_pst" class="mt16">
  27. <div>PST: <span t-field="company.l10n_ca_pst"/></div>
  28. </t>
  29. </xpath>
  30. </template>
  31. </odoo>