diff --git a/partner_emails_history/README.rst b/partner_emails_history/README.rst new file mode 100644 index 000000000..c2a18c2f6 --- /dev/null +++ b/partner_emails_history/README.rst @@ -0,0 +1,22 @@ +Partner Email History v10 +========================== +This module was developed to track sent/received emails from partner form. + +Installation +============ +Just select it from available modules to install it, there is no need to extra installations. + +Configuration +============= +Nothing to configure. + +Usage +===== +To use this functionality, you need to: +#.Click on Sent Email button to view all sent emails +#.And click on Received Email button to view all received emails + +Credits +======= +Developer: Saritha @ cybrosys + diff --git a/partner_emails_history/__init__.py b/partner_emails_history/__init__.py new file mode 100644 index 000000000..8d5b31230 --- /dev/null +++ b/partner_emails_history/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Saritha Sahadevan() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +import models diff --git a/partner_emails_history/__manifest__.py b/partner_emails_history/__manifest__.py new file mode 100644 index 000000000..b918d5b1b --- /dev/null +++ b/partner_emails_history/__manifest__.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Saritha Sahadevan() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': "Partner Email History", + 'version': '10.0.1.0.0', + 'summary': """ Send/Received Mails From Partner Form""", + 'description': """Send/Received Emails From Partner Form""", + 'author': "Cybrosys Techno Solutions", + 'website': "https://www.cybrosys.com", + 'category': 'Tools', + 'depends': ['base', 'mail'], + 'data': ['views/partner_emails_history_view.xml'], + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/partner_emails_history/models/__init__.py b/partner_emails_history/models/__init__.py new file mode 100644 index 000000000..3f0144fda --- /dev/null +++ b/partner_emails_history/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Saritha Sahadevan() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +import partner_emails_history diff --git a/partner_emails_history/models/partner_emails_history.py b/partner_emails_history/models/partner_emails_history.py new file mode 100644 index 000000000..5926ed391 --- /dev/null +++ b/partner_emails_history/models/partner_emails_history.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Saritha Sahadevan() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +from odoo import models + + +class PartnerEmailHistory(models.Model): + _inherit = 'res.partner' + + def sent_email_history(self): + action = self.env.ref('mail.action_view_mail_mail') + result = action.read()[0] + result['domain'] = [('email_from', '=', self.email)] + return result + + def received_email_history(self): + action = self.env.ref('mail.action_view_mail_mail') + result = action.read()[0] + result['domain'] = ['|', ('email_to', '=', self.email), ('recipient_ids', '=', self.email)] + return result diff --git a/partner_emails_history/static/description/banner.jpg b/partner_emails_history/static/description/banner.jpg new file mode 100644 index 000000000..bd04acd38 Binary files /dev/null and b/partner_emails_history/static/description/banner.jpg differ diff --git a/partner_emails_history/static/description/customer_form.png b/partner_emails_history/static/description/customer_form.png new file mode 100644 index 000000000..6ec05d6a9 Binary files /dev/null and b/partner_emails_history/static/description/customer_form.png differ diff --git a/partner_emails_history/static/description/cybro_logo.png b/partner_emails_history/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/partner_emails_history/static/description/cybro_logo.png differ diff --git a/partner_emails_history/static/description/icon.png b/partner_emails_history/static/description/icon.png new file mode 100644 index 000000000..10bfdb4ec Binary files /dev/null and b/partner_emails_history/static/description/icon.png differ diff --git a/partner_emails_history/static/description/index.html b/partner_emails_history/static/description/index.html new file mode 100644 index 000000000..d0060c135 --- /dev/null +++ b/partner_emails_history/static/description/index.html @@ -0,0 +1,83 @@ +
+
+

Partner Email History

+

Maintains Email History(Sent mail and Received mail) In Partner Form

+

Cybrosys Technologies

+
+
+ +
+
+
+

Overview

+

+ Partner Email History,Maintains Email History(Sent emails and Received emails) In Partner Form. +

+

+ * We Have Sent Emails Button To View All Sent Emails And Received Emails Button To View All Received Emails. +

+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+

Sent Emails

+
+

+ Here ,we can view all sent emails of partner +

+
+
+
+ +
+
+
+
+ +
+
+

Received Emails

+
+
+ +
+
+
+

+ Here,We can view all received emails of partner. +

+
+
+
+ +
+

Need Any Help?

+ + +
+ + + + diff --git a/partner_emails_history/static/description/received_mails.png b/partner_emails_history/static/description/received_mails.png new file mode 100644 index 000000000..3b6ba094b Binary files /dev/null and b/partner_emails_history/static/description/received_mails.png differ diff --git a/partner_emails_history/static/description/sent_emails.png b/partner_emails_history/static/description/sent_emails.png new file mode 100644 index 000000000..6370cf983 Binary files /dev/null and b/partner_emails_history/static/description/sent_emails.png differ diff --git a/partner_emails_history/views/partner_emails_history_view.xml b/partner_emails_history/views/partner_emails_history_view.xml new file mode 100644 index 000000000..2aef7e816 --- /dev/null +++ b/partner_emails_history/views/partner_emails_history_view.xml @@ -0,0 +1,19 @@ + + + + + res.partner.view.buttons + res.partner + + + + +