Browse Source

Merge pull request #149 from Tecnativa/8.0-mass_mailing_custom_unsubscribe-noupdate_reasons

[FIX][mass_mailing_custom_unsubscribe] Reasons noupdate
pull/151/head
Pedro M. Baeza 8 years ago
committed by GitHub
parent
commit
da228e1927
  1. 4
      mass_mailing_custom_unsubscribe/__openerp__.py
  2. 5
      mass_mailing_custom_unsubscribe/data/mail.unsubscription.reason.csv
  3. 41
      mass_mailing_custom_unsubscribe/data/mail_unsubscription_reason.xml

4
mass_mailing_custom_unsubscribe/__openerp__.py

@ -23,7 +23,7 @@
{ {
'name': "Customizable unsubscription process on mass mailing emails", 'name': "Customizable unsubscription process on mass mailing emails",
'category': 'Marketing', 'category': 'Marketing',
'version': '8.0.2.0.0',
'version': '8.0.2.1.0',
'depends': [ 'depends': [
'mass_mailing', 'mass_mailing',
'website_crm', 'website_crm',
@ -31,7 +31,7 @@
'data': [ 'data': [
'security/ir.model.access.csv', 'security/ir.model.access.csv',
'data/install_salt.xml', 'data/install_salt.xml',
'data/mail.unsubscription.reason.csv',
'data/mail_unsubscription_reason.xml',
'views/assets.xml', 'views/assets.xml',
'views/mail_unsubscription_reason_view.xml', 'views/mail_unsubscription_reason_view.xml',
'views/mail_mass_mailing_list_view.xml', 'views/mail_mass_mailing_list_view.xml',

5
mass_mailing_custom_unsubscribe/data/mail.unsubscription.reason.csv

@ -1,5 +0,0 @@
"id","name","sequence","details_required"
"reason_not_interested","I'm not interested",10,"False"
"reason_not_requested","I did not request this",20,"False"
"reason_too_many","I get too many emails",30,"False"
"reason_other","Other reason",100,"True"

41
mass_mailing_custom_unsubscribe/data/mail_unsubscription_reason.xml

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- © 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<openerp>
<data noupdate="1">
<record id="reason_not_interested"
model="mail.unsubscription.reason"
forcecreate="False">
<field name="name">I'm not interested</field>
<field name="sequence">10</field>
<field name="details_required" eval="False"/>
</record>
<record id="reason_not_requested"
model="mail.unsubscription.reason"
forcecreate="False">
<field name="name">I did not request this</field>
<field name="sequence">20</field>
<field name="details_required" eval="False"/>
</record>
<record id="reason_too_many"
model="mail.unsubscription.reason"
forcecreate="False">
<field name="name">I get too many emails</field>
<field name="sequence">30</field>
<field name="details_required" eval="False"/>
</record>
<record id="reason_other"
model="mail.unsubscription.reason"
forcecreate="False">
<field name="name">Other reason</field>
<field name="sequence">100</field>
<field name="details_required" eval="True"/>
</record>
</data>
</openerp>
Loading…
Cancel
Save