From ff2db992217f4cc085a2ef5bbf764adcd7289587 Mon Sep 17 00:00:00 2001 From: archetipo Date: Mon, 3 Oct 2016 15:25:19 +0200 Subject: [PATCH] [9.0][MIG][mass_mailing_partner] --- mass_mailing_partner/README.rst | 34 ++++++------------- mass_mailing_partner/__openerp__.py | 9 +++-- .../models/mail_mass_mailing_contact.py | 2 -- .../views/res_partner_view.xml | 2 +- 4 files changed, 15 insertions(+), 32 deletions(-) diff --git a/mass_mailing_partner/README.rst b/mass_mailing_partner/README.rst index a95f5175..925ba055 100644 --- a/mass_mailing_partner/README.rst +++ b/mass_mailing_partner/README.rst @@ -1,6 +1,6 @@ .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 =============================== Link partners with mass-mailing @@ -43,34 +43,17 @@ as mailing list contacts. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/111/8.0 + :target: https://runbot.odoo-community.org/runbot/111/9.0 Bug Tracker =========== -Bugs are tracked on `GitHub Issues `_. -In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us smashing it by providing a detailed and welcomed feedback -`here `_. - - -License -======= - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU Affero General Public License as published -by the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU Affero General Public License for more details. - -You should have received a copy of the GNU Affero General Public License -along with this program. If not, see . +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smashing it by providing a detailed and welcomed feedback. Credits ======= @@ -83,6 +66,8 @@ Contributors * Antonio Espinosa * Javier Iniesta * Jairo Llopis +* Alessio Gerace + Maintainer ---------- @@ -98,3 +83,4 @@ mission is to support the collaborative development of Odoo features and promote its widespread use. To contribute to this module, please visit https://odoo-community.org. + diff --git a/mass_mailing_partner/__openerp__.py b/mass_mailing_partner/__openerp__.py index 2bda90ed..ac9d8199 100644 --- a/mass_mailing_partner/__openerp__.py +++ b/mass_mailing_partner/__openerp__.py @@ -7,10 +7,9 @@ { "name": "Link partners with mass-mailing", - "version": "8.0.2.1.0", - "author": "Tecnativa, " - "Antiun IngenierĂ­a S.L., " - "Serv. Tecnol. Avanzados - Pedro M. Baeza, " + "version": "9.0.1.0.0", + "author": "Antiun IngenierĂ­a S.L., " + "Tecnativa, " "Odoo Community Association (OCA)", "license": "AGPL-3", "category": "Marketing", @@ -25,5 +24,5 @@ 'views/res_partner_view.xml', 'wizard/partner_mail_list_wizard.xml' ], - 'installable': False, + 'installable': True, } diff --git a/mass_mailing_partner/models/mail_mass_mailing_contact.py b/mass_mailing_partner/models/mail_mass_mailing_contact.py index 7a8bf25c..c738e209 100644 --- a/mass_mailing_partner/models/mail_mass_mailing_contact.py +++ b/mass_mailing_partner/models/mail_mass_mailing_contact.py @@ -19,7 +19,6 @@ class MailMassMailingContact(models.Model): _('Partner already exists in this mailing list.')) ] - @api.one @api.onchange('partner_id') def _onchange_partner(self): if self.partner_id: @@ -27,7 +26,6 @@ class MailMassMailingContact(models.Model): self.email = self.partner_id.email @api.model - @api.returns('self', lambda x: x.id) def create(self, vals): if not vals.get('partner_id'): vals = self._set_partner(vals) diff --git a/mass_mailing_partner/views/res_partner_view.xml b/mass_mailing_partner/views/res_partner_view.xml index 81a552b1..5d2f5b14 100644 --- a/mass_mailing_partner/views/res_partner_view.xml +++ b/mass_mailing_partner/views/res_partner_view.xml @@ -12,7 +12,7 @@ res.partner -
+