diff --git a/mail_base/README.rst b/mail_base/README.rst index 9ac76e2..44fc410 100644 --- a/mail_base/README.rst +++ b/mail_base/README.rst @@ -17,9 +17,9 @@ Note. Due to odoo restrictions, module makes mail initialization again. That is Further information =================== -Demo: http://runbot.it-projects.info/demo/mail-addons/9.0 +Demo: http://runbot.it-projects.info/demo/mail-addons/10.0 -.. HTML Description: https://apps.odoo.com/apps/modules/9.0/mail_base/ +.. HTML Description: https://apps.odoo.com/apps/modules/10.0/mail_base/ Usage instructions: ``_ diff --git a/mail_delete_odoo_footer/README.rst b/mail_delete_odoo_footer/README.rst deleted file mode 100644 index 1cbeaa2..0000000 --- a/mail_delete_odoo_footer/README.rst +++ /dev/null @@ -1,4 +0,0 @@ -Delete Odoo footer in email -=========================== - -Tested on 8.0 ab7b5d7732a7c222a0aea45bd173742acd47242d diff --git a/mail_delete_odoo_footer/__init__.py b/mail_delete_odoo_footer/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/mail_delete_odoo_footer/__openerp__.py b/mail_delete_odoo_footer/__openerp__.py deleted file mode 100644 index 955df7c..0000000 --- a/mail_delete_odoo_footer/__openerp__.py +++ /dev/null @@ -1,14 +0,0 @@ -# -*- coding: utf-8 -*- -{ - 'name': 'Delete Odoo footer in email (TODO)', - 'version': '1.0.0', - 'author': 'IT-Projects LLC, Ivan Yelizariev', - 'license': 'LGPL-3', - "category": "Discuss", - "support": "apps@it-projects.info", - 'website': 'https://yelizariev.github.io', - 'depends': [], - 'data': [ - ], - 'installable': False -} diff --git a/mail_delete_odoo_footer/static/description/icon.png b/mail_delete_odoo_footer/static/description/icon.png deleted file mode 100644 index 79f7d8f..0000000 Binary files a/mail_delete_odoo_footer/static/description/icon.png and /dev/null differ diff --git a/mail_fix_empty_body/README.rst b/mail_fix_empty_body/README.rst deleted file mode 100644 index 7be4736..0000000 --- a/mail_fix_empty_body/README.rst +++ /dev/null @@ -1,6 +0,0 @@ -Fix "False" in empty email body -=============================== - -Description: https://apps.odoo.com/apps/modules/8.0/mail_fix_empty_body/ - -Tested on Odoo 8.0 ab7b5d7732a7c222a0aea45bd173742acd47242d diff --git a/mail_fix_empty_body/__init__.py b/mail_fix_empty_body/__init__.py deleted file mode 100644 index a0fdc10..0000000 --- a/mail_fix_empty_body/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- -from . import models diff --git a/mail_fix_empty_body/__openerp__.py b/mail_fix_empty_body/__openerp__.py deleted file mode 100644 index bffc5c6..0000000 --- a/mail_fix_empty_body/__openerp__.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -{ - 'name': 'Fix "False" in empty email body', - 'version': '1.0.0', - 'author': 'IT-Projects LLC, Ivan Yelizariev', - 'license': 'LGPL-3', - "category": "Discuss", - "support": "apps@it-projects.info", - 'website': 'https://twitter.com/yelizariev', - 'price': 9.00, - 'currency': 'EUR', - 'depends': ['mail'], - 'data': [ - ], - 'installable': False -} diff --git a/mail_fix_empty_body/models.py b/mail_fix_empty_body/models.py deleted file mode 100644 index cf622d3..0000000 --- a/mail_fix_empty_body/models.py +++ /dev/null @@ -1,12 +0,0 @@ -# -*- coding: utf-8 -*- -from openerp import models - - -class MailComposeMessage(models.TransientModel): - _inherit = 'mail.compose.message' - - def get_mail_values(self, cr, uid, wizard, res_ids, context=None): - res = super(MailComposeMessage, self).get_mail_values(cr, uid, wizard, res_ids, context) - for id, d in res.iteritems(): - d['body'] = d.get('body') or '' - return res diff --git a/mail_fix_empty_body/static/description/icon.png b/mail_fix_empty_body/static/description/icon.png deleted file mode 100644 index 79f7d8f..0000000 Binary files a/mail_fix_empty_body/static/description/icon.png and /dev/null differ diff --git a/mail_fix_empty_body/static/description/index.html b/mail_fix_empty_body/static/description/index.html deleted file mode 100644 index fdb1ea5..0000000 --- a/mail_fix_empty_body/static/description/index.html +++ /dev/null @@ -1,65 +0,0 @@ -
-
-
-

Fix "False" in empty email body

-

Feel free to send emails without body

-
- -
-

- Some time you need to send email with empty body.
E.g. to send some file to partner. -

-
-
-
- -
-
-
-
- -
-
-
-
- -
-
- -
-

- There is a bug in odoo -- it sends "False" if email body if empty. -

-
-
-
- - -
-
-
-

- This module just fix the issue. -

-
-
-
- -
-
-
-
- -
-
- -
-
diff --git a/mail_fix_empty_body/static/description/receive-false.png b/mail_fix_empty_body/static/description/receive-false.png deleted file mode 100644 index be440c0..0000000 Binary files a/mail_fix_empty_body/static/description/receive-false.png and /dev/null differ diff --git a/mail_fix_empty_body/static/description/receive-ok.png b/mail_fix_empty_body/static/description/receive-ok.png deleted file mode 100644 index 845424f..0000000 Binary files a/mail_fix_empty_body/static/description/receive-ok.png and /dev/null differ diff --git a/mail_fix_empty_body/static/description/send.png b/mail_fix_empty_body/static/description/send.png deleted file mode 100644 index 92cafa4..0000000 Binary files a/mail_fix_empty_body/static/description/send.png and /dev/null differ diff --git a/mail_fix_header_from/__init__.py b/mail_fix_header_from/__init__.py deleted file mode 100644 index a0fdc10..0000000 --- a/mail_fix_header_from/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- -from . import models diff --git a/mail_fix_header_from/__openerp__.py b/mail_fix_header_from/__openerp__.py deleted file mode 100644 index f8adf16..0000000 --- a/mail_fix_header_from/__openerp__.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -{ - "name": "Fix non-ascii header 'from' (OBSOLETE)", - "version": "0.3", - "author": "IT-Projects LLC, Ivan Yelizariev", - 'license': 'LGPL-3', - "category": "Discuss", - "support": "apps@it-projects.info", - "website": "https://yelizariev.github.io", - "description": """ -Obsolete in odoo 8.0 since Sep 10, 2014 https://github.com/odoo/odoo/commit/f2cf6ced17d3477b8858e3a8f955a42cc8a629ff . You can install this module, if you use older version. - """, - "depends": ["base"], - # "init_xml" : [], - # "update_xml" : [], - # "active": True, - 'installable': False -} diff --git a/mail_fix_header_from/models.py b/mail_fix_header_from/models.py deleted file mode 100644 index 399fc3b..0000000 --- a/mail_fix_header_from/models.py +++ /dev/null @@ -1,5 +0,0 @@ -# -*- coding: utf-8 -*- -import re -from openerp.addons.base.ir import ir_mail_server - -ir_mail_server.name_with_email_pattern = re.compile(r'([^<@>]+)\s*<([^ ,<@]+@[^> ,]+)>') diff --git a/mail_fix_header_from/static/description/icon.png b/mail_fix_header_from/static/description/icon.png deleted file mode 100644 index 79f7d8f..0000000 Binary files a/mail_fix_header_from/static/description/icon.png and /dev/null differ diff --git a/mail_outgoing/__init__.py b/mail_outgoing/__init__.py deleted file mode 100644 index 71fed50..0000000 --- a/mail_outgoing/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- -from . import mail_outgoing_models diff --git a/mail_outgoing/__openerp__.py b/mail_outgoing/__openerp__.py deleted file mode 100644 index 33f2c32..0000000 --- a/mail_outgoing/__openerp__.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -{ - 'name': 'Outgoing mails menu', - 'version': '1.0.0', - 'author': 'IT-Projects LLC, Ivan Yelizariev', - 'license': 'LGPL-3', - "category": "Discuss", - "support": "apps@it-projects.info", - 'website': 'https://yelizariev.github.io', - 'description': """ -Allows to check outgoing mails, i.e. failed or delayed. - -Tested on Odoo 8.0 ab7b5d7732a7c222a0aea45bd173742acd47242d - """, - 'depends': ['mail'], - 'data': [ - 'security/mail_outgoing.xml', - 'security/ir.model.access.csv', - 'mail_outgoing_views.xml', - ], - 'installable': False -} diff --git a/mail_outgoing/mail_outgoing_models.py b/mail_outgoing/mail_outgoing_models.py deleted file mode 100644 index cd358d6..0000000 --- a/mail_outgoing/mail_outgoing_models.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -from openerp.osv import osv - - -class MailMessage(osv.Model): - _inherit = 'mail.message' - - def check_access_rule(self, cr, uid, ids, operation, context=None): - group_all_emails = self.pool.get('ir.model.data').xmlid_to_object(cr, uid, 'mail_outgoing.group_all_emails', context=context) - - user = self.pool['res.users'].browse(cr, uid, uid, context) - user_groups = set(user.groups_id) - if user_groups.issuperset(group_all_emails): - return - - return super(MailMessage, self).check_access_rule(cr, uid, ids, operation, context) - - -class MailMail(osv.Model): - _name = 'mail.mail' - _inherit = ['mail.mail', 'ir.needaction_mixin'] - _needaction = True - - def _needaction_domain_get(self, cr, uid, context=None): - return [('state', 'in', ['outgoing', 'exception'])] diff --git a/mail_outgoing/mail_outgoing_views.xml b/mail_outgoing/mail_outgoing_views.xml deleted file mode 100644 index 3b74479..0000000 --- a/mail_outgoing/mail_outgoing_views.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - Outgoing - mail.mail - form - tree,form - {} - - -

- Failed or delayed emails will be shown here. You will be able to retry failed emails and send delayed emails manually. -

-
-
- - - - - - Open Outgoing Menu - reload - - - - - open - - - -
-
diff --git a/mail_outgoing/security/ir.model.access.csv b/mail_outgoing/security/ir.model.access.csv deleted file mode 100644 index 9ae9ee1..0000000 --- a/mail_outgoing/security/ir.model.access.csv +++ /dev/null @@ -1,3 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_mail_mail_system,mail.mail.system,model_mail_mail,mail_outgoing.group_all_emails,1,1,1,1 - diff --git a/mail_outgoing/security/mail_outgoing.xml b/mail_outgoing/security/mail_outgoing.xml deleted file mode 100644 index 75648c9..0000000 --- a/mail_outgoing/security/mail_outgoing.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - all_emails - Gets access to all emails. For example to check outgoing emails. - - - - mail.mail: user - - [('author_id', '=', user.partner_id.id)] - - - - - - - - - - mail.mail: system - - [(1, '=', 1)] - - - - - - - - - diff --git a/mail_outgoing/static/description/icon.png b/mail_outgoing/static/description/icon.png deleted file mode 100644 index 79f7d8f..0000000 Binary files a/mail_outgoing/static/description/icon.png and /dev/null differ diff --git a/mail_partner_lang/README.rst b/mail_partner_lang/README.rst deleted file mode 100644 index 6e16513..0000000 --- a/mail_partner_lang/README.rst +++ /dev/null @@ -1,4 +0,0 @@ -Use partner language in mail -============================ - -FIXME: there is issue with frozen dict in new odoo. diff --git a/mail_partner_lang/__init__.py b/mail_partner_lang/__init__.py deleted file mode 100644 index a0fdc10..0000000 --- a/mail_partner_lang/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- -from . import models diff --git a/mail_partner_lang/__openerp__.py b/mail_partner_lang/__openerp__.py deleted file mode 100644 index d0087e6..0000000 --- a/mail_partner_lang/__openerp__.py +++ /dev/null @@ -1,14 +0,0 @@ -# -*- coding: utf-8 -*- -{ - 'name': 'Use partner language in mail', - 'version': '1.0.0', - 'author': 'IT-Projects LLC, Ivan Yelizariev', - 'license': 'LGPL-3', - "category": "Discuss", - "support": "apps@it-projects.info", - 'website': 'https://yelizariev.github.io', - - 'depends': ['mail'], - 'data': [], - 'installable': False, -} diff --git a/mail_partner_lang/models.py b/mail_partner_lang/models.py deleted file mode 100644 index d4e37a2..0000000 --- a/mail_partner_lang/models.py +++ /dev/null @@ -1,88 +0,0 @@ -# -*- coding: utf-8 -*- -from openerp.osv import osv - - -class MailThread(osv.Model): - _inherit = "mail.thread" - - def message_track(self, cr, uid, ids, tracked_fields, initial_values, context={}): - - def convert_for_display(value, col_info): - if not value and col_info['type'] == 'boolean': - return 'False' - if not value: - return '' - if col_info['type'] == 'many2one': - return value.name_get()[0][1] - if col_info['type'] == 'selection': - return dict(col_info['selection'])[value] - return value - - def format_message(message_description, tracked_values): - message = '' - if message_description: - message = '%s' % message_description - for name, change in tracked_values.items(): - message += '
    • %s: ' % change.get('col_info') - if change.get('old_value'): - message += '%s → ' % change.get('old_value') - message += '%s
' % change.get('new_value') - return message - - if not tracked_fields: - return True - - update_fields = [f for f in tracked_fields] - - for browse_record in self.browse(cr, uid, ids, context=context): - p = getattr(browse_record, 'partner_id', None) - if p: - browse_record._context.update({'lang': p.lang}) - - initial = initial_values[browse_record.id] - changes = set() - tracked_values = {} - - # update translation - tracked_fields = self._get_tracked_fields(cr, uid, update_fields, browse_record._context) - - # generate tracked_values data structure: {'col_name': {col_info, new_value, old_value}} - for col_name, col_info in tracked_fields.items(): - initial_value = initial[col_name] - record_value = getattr(browse_record, col_name) - - if record_value == initial_value and getattr(self._all_columns[col_name].column, 'track_visibility', None) == 'always': - tracked_values[col_name] = dict(col_info=col_info['string'], - new_value=convert_for_display(record_value, col_info)) - elif record_value != initial_value and (record_value or initial_value): # because browse null != False - if getattr(self._all_columns[col_name].column, 'track_visibility', None) in ['always', 'onchange']: - tracked_values[col_name] = dict(col_info=col_info['string'], - old_value=convert_for_display(initial_value, col_info), - new_value=convert_for_display(record_value, col_info)) - if col_name in tracked_fields: - changes.add(col_name) - if not changes: - continue - - # find subtypes and post messages or log if no subtype found - subtypes = [] - for field, track_info in self._track.items(): - if field not in changes: - continue - for subtype, method in track_info.items(): - if method(self, cr, uid, browse_record, context): - subtypes.append(subtype) - - posted = False - for subtype in subtypes: - subtype_rec = self.pool.get('ir.model.data').xmlid_to_object(cr, uid, subtype, context=context) - if not (subtype_rec and subtype_rec.exists()): - _logger.debug('subtype %s not found' % subtype) - continue - message = format_message(subtype_rec.description if subtype_rec.description else subtype_rec.name, tracked_values) - self.message_post(cr, uid, browse_record.id, body=message, subtype=subtype, context=context) - posted = True - if not posted: - message = format_message('', tracked_values) - self.message_post(cr, uid, browse_record.id, body=message, context=context) - return True diff --git a/mail_partner_lang/static/description/icon.png b/mail_partner_lang/static/description/icon.png deleted file mode 100644 index 79f7d8f..0000000 Binary files a/mail_partner_lang/static/description/icon.png and /dev/null differ diff --git a/mail_sent/i18n/pt.po b/mail_sent/i18n/pt.po new file mode 100644 index 0000000..f798914 --- /dev/null +++ b/mail_sent/i18n/pt.po @@ -0,0 +1,67 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_sent +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-29 18:57+0000\n" +"PO-Revision-Date: 2017-03-29 18:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: mail_sent +#: model:ir.actions.client,help:mail_sent.action_mail_sent_feeds +msgid "

\n" +" No message found and no message sent yet.\n" +"

\n" +" Click on the top-right icon to compose a message. This\n" +" message will be sent by email if it's an internal contact.\n" +"

\n" +" " +msgstr "

\n" +" Nenhuma mensagem encontrada e nenhuma enviada ainda.\n" +"

\n" +" Clique no ícone no canto superior direito para compor uma nova mensagem.\n" +" Esta mensagem será enviada por e-mail se não for um contato interno.\n" +"

\n" +" " + +#. module: mail_sent +#: model:ir.model,name:mail_sent.model_mail_compose_message +msgid "Email composition wizard" +msgstr "Assistente de composição de Email" + +#. module: mail_sent +#: model:ir.model,name:mail_sent.model_mail_message +msgid "Message" +msgstr "Mensagem" + +#. module: mail_sent +#: model:ir.model,name:mail_sent.model_mail_notification +msgid "Notifications" +msgstr "Notificações" + +#. module: mail_sent +#: model:ir.actions.client,name:mail_sent.action_mail_sent_feeds +#: model:ir.ui.menu,name:mail_sent.mail_sentfeeds +#: field:mail.compose.message,sent:0 +#: field:mail.message,sent:0 +msgid "Sent" +msgstr "Enviados" + +#. module: mail_sent +#: help:mail.message,sent:0 +msgid "Was message sent to someone" +msgstr "Foi enviada mensagem para alguém" + +#. module: mail_sent +#: help:mail.compose.message,sent:0 +msgid "dummy field to fix inherit error" +msgstr "campo fictício para corrigir o erro da herança" + diff --git a/mail_sent/i18n/pt_BR.po b/mail_sent/i18n/pt_BR.po new file mode 100644 index 0000000..8cc602d --- /dev/null +++ b/mail_sent/i18n/pt_BR.po @@ -0,0 +1,67 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_sent +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-29 18:57+0000\n" +"PO-Revision-Date: 2017-03-29 18:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: mail_sent +#: model:ir.actions.client,help:mail_sent.action_mail_sent_feeds +msgid "

\n" +" No message found and no message sent yet.\n" +"

\n" +" Click on the top-right icon to compose a message. This\n" +" message will be sent by email if it's an internal contact.\n" +"

\n" +" " +msgstr "

\n" +" Nenhuma mensagem encontrada e nenhuma enviada ainda.\n" +"

\n" +" Clique no ícone no canto superior direito para compor uma nova mensagem.\n" +" Esta mensagem será enviada por e-mail se não for um contato interno.\n" +"

\n" +" " + +#. module: mail_sent +#: model:ir.model,name:mail_sent.model_mail_compose_message +msgid "Email composition wizard" +msgstr "Assistente de Composição de Email" + +#. module: mail_sent +#: model:ir.model,name:mail_sent.model_mail_message +msgid "Message" +msgstr "Mensagem" + +#. module: mail_sent +#: model:ir.model,name:mail_sent.model_mail_notification +msgid "Notifications" +msgstr "Notificações" + +#. module: mail_sent +#: model:ir.actions.client,name:mail_sent.action_mail_sent_feeds +#: model:ir.ui.menu,name:mail_sent.mail_sentfeeds +#: field:mail.compose.message,sent:0 +#: field:mail.message,sent:0 +msgid "Sent" +msgstr "Enviados" + +#. module: mail_sent +#: help:mail.message,sent:0 +msgid "Was message sent to someone" +msgstr "Foi enviada mensagem para alguém" + +#. module: mail_sent +#: help:mail.compose.message,sent:0 +msgid "dummy field to fix inherit error" +msgstr "campo fictício para corrigir o erro da herança" + diff --git a/mail_todo_custom/README.rst b/mail_todo_custom/README.rst deleted file mode 100644 index 56b440e..0000000 --- a/mail_todo_custom/README.rst +++ /dev/null @@ -1,2 +0,0 @@ -Mark unstarred email as read, remove filter in 'To-do' folder -============================================================= diff --git a/mail_todo_custom/__init__.py b/mail_todo_custom/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/mail_todo_custom/__openerp__.py b/mail_todo_custom/__openerp__.py deleted file mode 100644 index aa683fc..0000000 --- a/mail_todo_custom/__openerp__.py +++ /dev/null @@ -1,14 +0,0 @@ -# -*- coding: utf-8 -*- -{ - 'name': "Mark unstarred email as read, remove filter in 'To-do' folder", - 'version': '1.0', - 'author': 'IT-Projects LLC', - 'license': 'LGPL-3', - "support": "apps@it-projects.info", - 'website': "https://yelizariev.github.io", - "category": "Discuss", - 'depends': ['mail'], - 'data': ['mail_todo_custom.xml'], - 'demo': [], - 'installable': False, -} diff --git a/mail_todo_custom/mail_todo_custom.xml b/mail_todo_custom/mail_todo_custom.xml deleted file mode 100644 index 8274d61..0000000 --- a/mail_todo_custom/mail_todo_custom.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - { - 'default_model': 'res.users', - 'default_res_id': uid, - 'thread_model': 'res.partner', - 'search_default_message_unread': False, - 'view_todo': True - } - - - - - - diff --git a/mail_todo_custom/static/src/js/mail_todo_custom.js b/mail_todo_custom/static/src/js/mail_todo_custom.js deleted file mode 100644 index 66a3bfc..0000000 --- a/mail_todo_custom/static/src/js/mail_todo_custom.js +++ /dev/null @@ -1,44 +0,0 @@ -openerp.mail_todo_custom = function(session) { - - var mail = session.mail; - - mail.ThreadMessage.include({ - - on_star: function (event) { - event.stopPropagation(); - var self=this; - var button = self.$('.oe_star:first'); - - this.ds_message.call('set_message_starred', [[self.id], !self.is_favorite, true]) - .then(function (star) { - self.is_favorite=star; - if (self.is_favorite) { - button.addClass('oe_starred'); - } else { - button.removeClass('oe_starred'); - } - - if (self.options.view_inbox && self.is_favorite) { - self.on_message_read_unread(true); - } - else { - self.check_for_rerender(); - } - if (self.options.view_todo && !self.is_favorite) { - self.on_message_read_unread(true); - } - }); - return false; - }, - - }); - - mail.Widget.include({ - - init: function (parent, action) { - this._super(parent, action); - this.action.params.view_todo = this.action.context.view_todo || false; - }, - - }); -}; diff --git a/mass_mailing_extra/__init__.py b/mass_mailing_extra/__init__.py deleted file mode 100644 index a0fdc10..0000000 --- a/mass_mailing_extra/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- -from . import models diff --git a/mass_mailing_extra/__openerp__.py b/mass_mailing_extra/__openerp__.py deleted file mode 100644 index 0fb2deb..0000000 --- a/mass_mailing_extra/__openerp__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -{ - 'name': 'Improvements for mass mailing', - 'version': '1.0.0', - 'author': 'IT-Projects LLC, Ivan Yelizariev', - 'license': 'LGPL-3', - "category": "Discuss", - "support": "apps@it-projects.info", - 'website': 'https://yelizariev.github.io', - 'description': """ -Modules adds: - -* partners info in mail.mail.statistics tree -* partners info in mail.mail.statistics form - -Tested on 8.0 f8d5a6727d3e8d428d9bef93da7ba6b11f344284 - """, - 'depends': ['mass_mailing'], - 'data': [ - 'views.xml', - ], - 'installable': False -} diff --git a/mass_mailing_extra/models.py b/mass_mailing_extra/models.py deleted file mode 100644 index 9c4c337..0000000 --- a/mass_mailing_extra/models.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -from openerp import api, models, fields - - -class MailMailStats(models.Model): - - _inherit = 'mail.mail.statistics' - - partner_ids = fields.Many2many('res.partner', related='mail_mail_id.recipient_ids', string='Partners (Mail)') - - @api.multi - def _get_partner_id(self): - for r in self: - r._get_partner_id_one() - - @api.multi - def _get_partner_id_one(self): - self.ensure_one() - if self.model == 'res.partner': - self.partner_id = self.res_id - else: - self.partner_id = None - - partner_id = fields.Many2one('res.partner', compute=_get_partner_id, string='Partner (Document ID)') - - @api.multi - def _get_partners(self): - for r in self: - r._get_partners_one() - - @api.multi - def _get_partners_one(self): - self.ensure_one() - res = {} - for p in self.partner_ids: - res[p.id] = p - if self.partner_id and self.partner_id.id not in res: - res[self.partner_id.id] = self.partner_id - self.partners = ', '.join([('%s <%s>' % (p.name, p.email)) for id, p in res.items()]) - - partners = fields.Char('Partners', compute=_get_partners) diff --git a/mass_mailing_extra/static/description/icon.png b/mass_mailing_extra/static/description/icon.png deleted file mode 100644 index 79f7d8f..0000000 Binary files a/mass_mailing_extra/static/description/icon.png and /dev/null differ diff --git a/mass_mailing_extra/views.xml b/mass_mailing_extra/views.xml deleted file mode 100644 index 3dbb91f..0000000 --- a/mass_mailing_extra/views.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - mail.mail.statistics.form - mail.mail.statistics - - - - - - - - - - - - - - - mail.mail.statistics.tree - mail.mail.statistics - - - - - - - - - - diff --git a/res_partner_strip_email/README.rst b/res_partner_strip_email/README.rst deleted file mode 100644 index c90a29b..0000000 --- a/res_partner_strip_email/README.rst +++ /dev/null @@ -1 +0,0 @@ -Trim email field in partner form. diff --git a/res_partner_strip_email/__init__.py b/res_partner_strip_email/__init__.py deleted file mode 100644 index a0fdc10..0000000 --- a/res_partner_strip_email/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- -from . import models diff --git a/res_partner_strip_email/__openerp__.py b/res_partner_strip_email/__openerp__.py deleted file mode 100644 index d2424c2..0000000 --- a/res_partner_strip_email/__openerp__.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -{ - 'name': "Trim partner's email", - 'summary': "", - 'author': "IT-Projects LLC, Ivan Yelizariev", - 'license': 'LGPL-3', - "support": "apps@it-projects.info", - 'website': "https://yelizariev.github.io", - - # Categories can be used to filter modules in modules listing - # Check https://github.com/odoo/odoo/blob/master/openerp/addons/base/module/module_data.xml - # for the full list - "category": "Discuss", - 'version': '1.0.0', - - # any module necessary for this one to work correctly - 'depends': ['base'], - - # always loaded - 'data': [], - 'installable': False, -} diff --git a/res_partner_strip_email/models.py b/res_partner_strip_email/models.py deleted file mode 100644 index da029a7..0000000 --- a/res_partner_strip_email/models.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- - -from openerp import api -from openerp import models - - -class ResPartnerStripEmail(models.Model): - _inherit = 'res.partner' - - @api.multi - def write(self, vals): - for r in self: - r.write_one(vals) - - @api.multi - def write_one(self, vals): - self.ensure_one() - vals = self._check_email_field(vals) - return super(ResPartnerStripEmail, self).write(vals) - - @api.model - def create(self, vals): - vals = self._check_email_field(vals) - return super(ResPartnerStripEmail, self).create(vals) - - def _check_email_field(self, vals): - if vals.get('email'): - vals['email'] = vals['email'].strip() - return vals diff --git a/res_partner_strip_email/static/description/icon.png b/res_partner_strip_email/static/description/icon.png deleted file mode 100644 index b43a0a1..0000000 Binary files a/res_partner_strip_email/static/description/icon.png and /dev/null differ