Browse Source

[IMP] Improve xpath selector and formatting for new mail templates

pull/345/head
Graeme Gellatly 6 years ago
parent
commit
01dbb3d890
  1. 12
      mail_debrand/views/mail_notification_view.xml

12
mail_debrand/views/mail_notification_view.xml

@ -15,15 +15,21 @@
<!-- Replaces Powered By on these notifications -->
<template id="mail_notification_borders" inherit_id="mail.mail_notification_borders" priority="99">
<xpath expr="//tr[last()]" position="replace" />
<xpath expr="//td[text()[contains(., 'Powered by')]]" position="replace" >
<td align="center" style="padding: 8px; font-size:11px;" />
</xpath>
</template>
<template id="mail_notification_light" inherit_id="mail.mail_notification_light" priority="99">
<xpath expr="//tr[last()]" position="replace" />
<xpath expr="//td[text()[contains(., 'Powered by')]]" position="replace" >
<td align="center" style="min-width: 590px;" />
</xpath>
</template>
<template id="mail_notification_paynow" inherit_id="mail.mail_notification_paynow" priority="99">
<xpath expr="//tr[last()]" position="replace" />
<xpath expr="//td[text()[contains(., 'Powered by')]]" position="replace" >
<td align="center" style="min-width: 590px; padding: 8px; font-size:11px;"/>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save