From c9312f71e287025e5b3ce14c88e734d81e4c427b Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Fri, 8 May 2015 12:26:29 +0200 Subject: [PATCH 1/9] split mail_delete_odoo_footer in two modules: * mail_delete_access_link * mail_delete_sent_by_footer --- README.rst | 4 ++++ __init__.py | 1 + __openerp__.py | 11 +++++++++++ mail_delete_sent_by_footer.py | 21 +++++++++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 README.rst create mode 100644 __init__.py create mode 100644 __openerp__.py create mode 100644 mail_delete_sent_by_footer.py diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..359199e --- /dev/null +++ b/README.rst @@ -0,0 +1,4 @@ +Delete "Sent by..." footer in email +=================================== + +Tested on 8.0 ab7b5d7732a7c222a0aea45bd173742acd47242d diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..6219218 --- /dev/null +++ b/__init__.py @@ -0,0 +1 @@ +import mail_delete_sent_by_footer diff --git a/__openerp__.py b/__openerp__.py new file mode 100644 index 0000000..5d250f1 --- /dev/null +++ b/__openerp__.py @@ -0,0 +1,11 @@ +{ + 'name' : 'Delete "Sent by..." footer in email', + 'version' : '1.0.0', + 'author' : 'Ivan Yelizariev', + 'category' : 'Social Network', + 'website' : 'https://yelizariev.github.io', + 'depends' : ['mail'], + 'data':[ + ], + 'installable': True +} diff --git a/mail_delete_sent_by_footer.py b/mail_delete_sent_by_footer.py new file mode 100644 index 0000000..41e03fb --- /dev/null +++ b/mail_delete_sent_by_footer.py @@ -0,0 +1,21 @@ +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 = "--
%s" % user.name + footer = tools.append_content_to_html(footer, signature, plaintext=False) + + return footer From 4cd09d5038a9f7fddc47ba4cfd7cde12891c13e3 Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Tue, 23 Jun 2015 13:31:39 +0500 Subject: [PATCH 2/9] [DOC] set category to Debranding --- __openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__openerp__.py b/__openerp__.py index 5d250f1..2e2e989 100644 --- a/__openerp__.py +++ b/__openerp__.py @@ -2,7 +2,7 @@ 'name' : 'Delete "Sent by..." footer in email', 'version' : '1.0.0', 'author' : 'Ivan Yelizariev', - 'category' : 'Social Network', + 'category' : 'Debranding', 'website' : 'https://yelizariev.github.io', 'depends' : ['mail'], 'data':[ From 816d93a427de9e8521381cc03ffa57576a0f28a3 Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Thu, 2 Jul 2015 16:35:12 +0500 Subject: [PATCH 3/9] [DOC] add icon --- static/description/icon.png | Bin 0 -> 2140 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 static/description/icon.png diff --git a/static/description/icon.png b/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..79f7d8fe294f838cf2996940c40dc08dde60642f GIT binary patch literal 2140 zcmV-i2&4CjP)=D+Wys1fe}G$Q#Z2832St25n<}h#$%L7sUBHn zgVlR~4gtNOs+KA#@5q|?_&of{fCW3h;+eI-@is^))^C>Ap=O06Yq-$?c7APo?&VKv z))(zizAhAwtYInZ&irDhM>SGBFM>?d${LzoxNVMo=er+dj|dVX82(itvPy&nJI7R} zxal|{b!VXeY~=?NW24HG!g#W&q%^mz9C_k)O~vB$l!nR>c7Azkc41B0?h`G%re>$6 zR3XK_wP$L$`wA`+vfQ*It2kJ&bC8N#=Y*z`?T#poH4<6rMKBSth@G$Anh#P6geeX3 z66#s7^ZuFn%%U9v!&L5`a;i`|jy4C6tV1;wvTsBRf(1LrR7N-{7FL;Ru=vP|@loCg zW(jHMC_PwJ+DqF+1@u$zm8o8m$Y1m0V>0T?5;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(Pp~uq7PD-^kM2p`;8cbRHVRCk`&s%0t^5+Kg1eL SSUIi$0000 Date: Fri, 7 Aug 2015 18:49:29 +0500 Subject: [PATCH 4/9] [DOC] --- __openerp__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/__openerp__.py b/__openerp__.py index 2e2e989..0634ef6 100644 --- a/__openerp__.py +++ b/__openerp__.py @@ -4,6 +4,8 @@ 'author' : 'Ivan Yelizariev', 'category' : 'Debranding', 'website' : 'https://yelizariev.github.io', + 'price': 9.00, + 'currency': 'EUR', 'depends' : ['mail'], 'data':[ ], From 17894f23cba48d341f693eabf23273853ed0c7e5 Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Sun, 27 Sep 2015 10:22:56 +0500 Subject: [PATCH 5/9] [DOC] add IT-Projects LLC to authors --- __openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__openerp__.py b/__openerp__.py index 0634ef6..6187489 100644 --- a/__openerp__.py +++ b/__openerp__.py @@ -1,7 +1,7 @@ { 'name' : 'Delete "Sent by..." footer in email', 'version' : '1.0.0', - 'author' : 'Ivan Yelizariev', + 'author' : 'IT-Projects LLC, Ivan Yelizariev', 'category' : 'Debranding', 'website' : 'https://yelizariev.github.io', 'price': 9.00, From daf8e421f762d4220a738bd0619df6d5ca96d88a Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Tue, 3 Nov 2015 10:22:20 +0500 Subject: [PATCH 6/9] [DOC] add license tag --- __openerp__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/__openerp__.py b/__openerp__.py index 6187489..b280312 100644 --- a/__openerp__.py +++ b/__openerp__.py @@ -2,6 +2,7 @@ 'name' : 'Delete "Sent by..." footer in email', 'version' : '1.0.0', 'author' : 'IT-Projects LLC, Ivan Yelizariev', + 'license': 'LGPL-3', 'category' : 'Debranding', 'website' : 'https://yelizariev.github.io', 'price': 9.00, From ed9bad951e4839bd3e71c1460210b41d12cca4fa Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Mon, 9 Nov 2015 11:26:31 +0500 Subject: [PATCH 7/9] update license to GPL-3 --- __openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__openerp__.py b/__openerp__.py index b280312..bcf3d79 100644 --- a/__openerp__.py +++ b/__openerp__.py @@ -2,7 +2,7 @@ 'name' : 'Delete "Sent by..." footer in email', 'version' : '1.0.0', 'author' : 'IT-Projects LLC, Ivan Yelizariev', - 'license': 'LGPL-3', + 'license': 'GPL-3', 'category' : 'Debranding', 'website' : 'https://yelizariev.github.io', 'price': 9.00, From 63c3219417ca976a9f484c64dc90a2e7b5c4e16e Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Sun, 6 Dec 2015 12:14:55 +0500 Subject: [PATCH 8/9] [DOC] update website --- __openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__openerp__.py b/__openerp__.py index bcf3d79..c19a290 100644 --- a/__openerp__.py +++ b/__openerp__.py @@ -4,7 +4,7 @@ 'author' : 'IT-Projects LLC, Ivan Yelizariev', 'license': 'GPL-3', 'category' : 'Debranding', - 'website' : 'https://yelizariev.github.io', + 'website' : 'https://twitter.com/yelizariev', 'price': 9.00, 'currency': 'EUR', 'depends' : ['mail'], From df2df30d2e5e28b4971bdd9855028bcfba4535d8 Mon Sep 17 00:00:00 2001 From: Ildar Nasyrov Date: Thu, 19 May 2016 12:07:21 +0500 Subject: [PATCH 9/9] [MOV] module -- mail_delete_sent_by_footer --- README.rst => mail_delete_sent_by_footer/README.rst | 0 .../__init__.py | 0 .../__openerp__.py | 0 .../mail_delete_sent_by_footer.py | 0 .../static}/description/icon.png | Bin 5 files changed, 0 insertions(+), 0 deletions(-) rename README.rst => mail_delete_sent_by_footer/README.rst (100%) rename __init__.py => mail_delete_sent_by_footer/__init__.py (100%) rename __openerp__.py => mail_delete_sent_by_footer/__openerp__.py (100%) rename mail_delete_sent_by_footer.py => mail_delete_sent_by_footer/mail_delete_sent_by_footer.py (100%) rename {static => mail_delete_sent_by_footer/static}/description/icon.png (100%) diff --git a/README.rst b/mail_delete_sent_by_footer/README.rst similarity index 100% rename from README.rst rename to mail_delete_sent_by_footer/README.rst diff --git a/__init__.py b/mail_delete_sent_by_footer/__init__.py similarity index 100% rename from __init__.py rename to mail_delete_sent_by_footer/__init__.py diff --git a/__openerp__.py b/mail_delete_sent_by_footer/__openerp__.py similarity index 100% rename from __openerp__.py rename to mail_delete_sent_by_footer/__openerp__.py diff --git a/mail_delete_sent_by_footer.py b/mail_delete_sent_by_footer/mail_delete_sent_by_footer.py similarity index 100% rename from mail_delete_sent_by_footer.py rename to mail_delete_sent_by_footer/mail_delete_sent_by_footer.py diff --git a/static/description/icon.png b/mail_delete_sent_by_footer/static/description/icon.png similarity index 100% rename from static/description/icon.png rename to mail_delete_sent_by_footer/static/description/icon.png