Browse Source

[9.0][MIG][mass_mailing_partner]

pull/113/head
archetipo 8 years ago
parent
commit
ff2db99221
  1. 30
      mass_mailing_partner/README.rst
  2. 9
      mass_mailing_partner/__openerp__.py
  3. 2
      mass_mailing_partner/models/mail_mass_mailing_contact.py
  4. 2
      mass_mailing_partner/views/res_partner_view.xml

30
mass_mailing_partner/README.rst

@ -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 <https://github.com/OCA/crm/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 <https://github.com/OCA/crm/issues/new?body=module:%20mass_mailing_partner%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
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 <http://www.gnu.org/licenses/agpl-3.0-standalone.html>.
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/crm/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 <antonioea@antiun.com>
* Javier Iniesta <javieria@antiun.com>
* Jairo Llopis <jairo.llopis@tecnativa.com>
* Alessio Gerace <alessio.gerace@gmail.com>
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.

9
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,
}

2
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)

2
mass_mailing_partner/views/res_partner_view.xml

@ -12,7 +12,7 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<div class="oe_right oe_button_box" position="inside">
<div name="button_box" position="inside">
<button name="%(mass_mailing.action_view_mass_mailing_contacts)d"
context="{'search_default_partner_id': active_id,
'default_partner_id': active_id}"

Loading…
Cancel
Save