Browse Source

[DEL] mail_delete_access_link, mail_delete_sent_by_footer

they are obsolete in 9.0.
See https://www.odoo.com/forum/help-1/question/remove-email-footer-sent-by-xxx-using-openerp-48296#answer_102649
pull/37/head
Ivan Yelizariev 9 years ago
parent
commit
d8d5ea7b6a
  1. 4
      mail_delete_access_link/README.rst
  2. 1
      mail_delete_access_link/__init__.py
  3. 14
      mail_delete_access_link/__openerp__.py
  4. 8
      mail_delete_access_link/mail_delete_access_link.py
  5. BIN
      mail_delete_access_link/static/description/icon.png
  6. 4
      mail_delete_sent_by_footer/README.rst
  7. 1
      mail_delete_sent_by_footer/__init__.py
  8. 14
      mail_delete_sent_by_footer/__openerp__.py
  9. 21
      mail_delete_sent_by_footer/mail_delete_sent_by_footer.py
  10. BIN
      mail_delete_sent_by_footer/static/description/icon.png

4
mail_delete_access_link/README.rst

@ -1,4 +0,0 @@
Delete access link in email footer
==================================
Tested on 8.0 ab7b5d7732a7c222a0aea45bd173742acd47242d

1
mail_delete_access_link/__init__.py

@ -1 +0,0 @@
import mail_delete_access_link

14
mail_delete_access_link/__openerp__.py

@ -1,14 +0,0 @@
{
'name' : 'Delete access link in email footer',
'version' : '1.0.0',
'author' : 'IT-Projects LLC, Ivan Yelizariev',
'license': 'GPL-3',
'category' : 'Social Network',
'website' : 'https://twitter.com/yelizariev',
'price': 9.00,
'currency': 'EUR',
'depends' : ['mail'],
'data':[
],
'installable': True
}

8
mail_delete_access_link/mail_delete_access_link.py

@ -1,8 +0,0 @@
from openerp.osv import osv
from openerp import tools, SUPERUSER_ID
class mail_mail(osv.Model):
_inherit = 'mail.mail'
def _get_partner_access_link(self, cr, uid, mail, partner=None, context=None):
return None

BIN
mail_delete_access_link/static/description/icon.png

Before

Width: 100  |  Height: 100  |  Size: 2.1 KiB

4
mail_delete_sent_by_footer/README.rst

@ -1,4 +0,0 @@
Delete "Sent by..." footer in email
===================================
Tested on 8.0 ab7b5d7732a7c222a0aea45bd173742acd47242d

1
mail_delete_sent_by_footer/__init__.py

@ -1 +0,0 @@
import mail_delete_sent_by_footer

14
mail_delete_sent_by_footer/__openerp__.py

@ -1,14 +0,0 @@
{
'name' : 'Delete "Sent by..." footer in email',
'version' : '1.0.0',
'author' : 'IT-Projects LLC, Ivan Yelizariev',
'license': 'GPL-3',
'category' : 'Debranding',
'website' : 'https://twitter.com/yelizariev',
'price': 9.00,
'currency': 'EUR',
'depends' : ['mail'],
'data':[
],
'installable': True
}

21
mail_delete_sent_by_footer/mail_delete_sent_by_footer.py

@ -1,21 +0,0 @@
from openerp.osv import osv
from openerp import tools, SUPERUSER_ID
class mail_notification(osv.Model):
_inherit = 'mail.notification'
def get_signature_footer(self, cr, uid, user_id, res_model=None, res_id=None, context=None, user_signature=True):
footer = ""
if not user_id:
return footer
# add user signature
user = self.pool.get("res.users").browse(cr, SUPERUSER_ID, [user_id], context=context)[0]
if user_signature:
if user.signature:
signature = user.signature
else:
signature = "--<br />%s" % user.name
footer = tools.append_content_to_html(footer, signature, plaintext=False)
return footer

BIN
mail_delete_sent_by_footer/static/description/icon.png

Before

Width: 100  |  Height: 100  |  Size: 2.1 KiB

Loading…
Cancel
Save