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.
 
 
 
 

46 lines
2.0 KiB

<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<template id="unsubscribe" inherit_id="mass_mailing.unsubscribe" name="Add Reasons to Mailing List Management Form">
<!-- Disable core AJAX submission of form, because it is impossible to
extend it as it is designed right now. -->
<xpath expr="//div[hasclass('container', 'o_unsubscribe_form')]" position="attributes">
<attribute name="class" value="container o_unsubscribe_form_custom"/>
</xpath>
<!-- Hide original feedback textarea to put another one after mailing lists checkboxes -->
<xpath expr="//div[@id='div_feedback']" position="attributes">
<attribute name="class" add="d-none" separator=" "/>
</xpath>
<!-- Add reasons to mass mailing list manager -->
<xpath expr="//ul[hasclass('list-group')]" position="after">
<t t-call="mass_mailing_custom_unsubscribe.reason">
<t t-set="extra_class" t-value="'d-none'"/>
</t>
</xpath>
</template>
<template id="unsubscribed"
inherit_id="mass_mailing.unsubscribed"
name="Add Reasons to Blacklist Management Form">
<!-- Disable core AJAX submission of form, because it is impossible to
extend it as it is designed right now. -->
<xpath expr="//div[hasclass('container', 'o_unsubscribe_form')]" position="attributes">
<attribute name="class" value="container o_unsubscribe_form_custom"/>
</xpath>
<!-- Add reasons to blacklist manager -->
<xpath expr="//div[@id='button_add_blacklist']" position="before">
<form id="unsubscribe_form">
<t t-call="mass_mailing_custom_unsubscribe.reason">
<t t-set="extra_class" t-value="'d-none'"/>
</t>
</form>
</xpath>
</template>
</odoo>