@ -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 | 
				
			|||
 | 
				
			|||
@ -0,0 +1,23 @@ | 
				
			|||
# -*- coding: utf-8 -*- | 
				
			|||
############################################################################## | 
				
			|||
# | 
				
			|||
#    Cybrosys Technologies Pvt. Ltd. | 
				
			|||
#    Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | 
				
			|||
#    Author: Saritha Sahadevan(<https://www.cybrosys.com>) | 
				
			|||
#    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 <https://www.gnu.org/licenses/>. | 
				
			|||
# | 
				
			|||
############################################################################## | 
				
			|||
import models | 
				
			|||
@ -0,0 +1,38 @@ | 
				
			|||
# -*- coding: utf-8 -*- | 
				
			|||
############################################################################## | 
				
			|||
# | 
				
			|||
#    Cybrosys Technologies Pvt. Ltd. | 
				
			|||
#    Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | 
				
			|||
#    Author: Saritha Sahadevan(<https://www.cybrosys.com>) | 
				
			|||
#    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 <https://www.gnu.org/licenses/>. | 
				
			|||
# | 
				
			|||
############################################################################## | 
				
			|||
{ | 
				
			|||
    '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, | 
				
			|||
} | 
				
			|||
@ -0,0 +1,23 @@ | 
				
			|||
# -*- coding: utf-8 -*- | 
				
			|||
############################################################################## | 
				
			|||
# | 
				
			|||
#    Cybrosys Technologies Pvt. Ltd. | 
				
			|||
#    Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | 
				
			|||
#    Author: Saritha Sahadevan(<https://www.cybrosys.com>) | 
				
			|||
#    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 <https://www.gnu.org/licenses/>. | 
				
			|||
# | 
				
			|||
############################################################################## | 
				
			|||
import partner_emails_history | 
				
			|||
@ -0,0 +1,39 @@ | 
				
			|||
# -*- coding: utf-8 -*- | 
				
			|||
############################################################################## | 
				
			|||
# | 
				
			|||
#    Cybrosys Technologies Pvt. Ltd. | 
				
			|||
#    Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | 
				
			|||
#    Author: Saritha Sahadevan(<https://www.cybrosys.com>) | 
				
			|||
#    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 <https://www.gnu.org/licenses/>. | 
				
			|||
# | 
				
			|||
############################################################################## | 
				
			|||
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 | 
				
			|||
| 
		 After Width: | Height: | Size: 142 KiB  | 
| 
		 After Width: | Height: | Size: 93 KiB  | 
| 
		 After Width: | Height: | Size: 50 KiB  | 
| 
		 After Width: | Height: | Size: 17 KiB  | 
@ -0,0 +1,83 @@ | 
				
			|||
<section class="oe_container"> | 
				
			|||
    <div class="oe_row oe_spaced"> | 
				
			|||
        <h2 class="oe_slogan">Partner Email History</h2> | 
				
			|||
        <h3 class="oe_slogan">Maintains Email History(Sent mail and Received mail) In Partner Form</h3> | 
				
			|||
        <h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a> </h4> | 
				
			|||
    </div> | 
				
			|||
</section> | 
				
			|||
 | 
				
			|||
<section class="oe_container oe_dark"> | 
				
			|||
    <div class="oe_row oe_spaced"> | 
				
			|||
        <div class="oe_picture"> | 
				
			|||
            <h3 class="oe_slogan">Overview</h3> | 
				
			|||
            <p class="oe_mt32"> | 
				
			|||
                Partner Email History,Maintains Email History(Sent emails and Received emails) In Partner Form. | 
				
			|||
            </p> | 
				
			|||
            <p> | 
				
			|||
                * We Have Sent Emails Button To View All Sent Emails And Received Emails Button To View All Received Emails. | 
				
			|||
            </p> | 
				
			|||
        </div> | 
				
			|||
    </div> | 
				
			|||
</section> | 
				
			|||
 | 
				
			|||
<section class="oe_container"> | 
				
			|||
    <div class="oe_row oe_spaced"> | 
				
			|||
        <div class="oe_span12"> | 
				
			|||
            <div class="oe_demo oe_picture oe_screenshot"> | 
				
			|||
            	<img src="customer_form.png"> | 
				
			|||
            </div> | 
				
			|||
        </div> | 
				
			|||
    </div> | 
				
			|||
</section> | 
				
			|||
 | 
				
			|||
<section class="oe_container oe_dark"> | 
				
			|||
    <div class="oe_row oe_space"> | 
				
			|||
        <h3 class="oe_slogan">Sent Emails</h3> | 
				
			|||
        <div class="oe_span6"> | 
				
			|||
            <p class='oe_mt32'> | 
				
			|||
                <centre>Here ,we can view all sent emails of partner</centre> | 
				
			|||
            </p> | 
				
			|||
        </div> | 
				
			|||
        <div class="oe_span6"> | 
				
			|||
            <div class="oe_demo oe_picture oe_screenshot"> | 
				
			|||
                <img src="sent_emails.png"> | 
				
			|||
            </div> | 
				
			|||
        </div> | 
				
			|||
    </div> | 
				
			|||
</section> | 
				
			|||
 | 
				
			|||
<section class="oe_container"> | 
				
			|||
    <div class="oe_row oe_spaced"> | 
				
			|||
        <h3 class="oe_slogan"> Received Emails</h3> | 
				
			|||
        <div class="oe_span6"> | 
				
			|||
            <div class="oe_demo oe_picture oe_screenshot"> | 
				
			|||
            	<img src="received_mails.png"> | 
				
			|||
            </div> | 
				
			|||
        </div> | 
				
			|||
        <div class="oe_span6"> | 
				
			|||
            <p class='oe_mt32'> | 
				
			|||
                Here,We can view all received emails of partner. | 
				
			|||
            </p> | 
				
			|||
        </div> | 
				
			|||
    </div> | 
				
			|||
</section> | 
				
			|||
 | 
				
			|||
<section class="oe_container oe_dark"> | 
				
			|||
    <h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2> | 
				
			|||
    <div class="oe_slogan" style="margin-top:10px !important;"> | 
				
			|||
        <a  class="btn btn-primary btn-lg mt8" | 
				
			|||
            style="color: #FFFFFF !important;" href="http://www.cybrosys.com"><i | 
				
			|||
            class="fa fa-envelope"></i> Email </a> <a | 
				
			|||
            class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;" | 
				
			|||
            href="http://www.cybrosys.com/contact/"><i | 
				
			|||
            class="fa fa-phone"></i> Contact Us </a> <a | 
				
			|||
            class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;" | 
				
			|||
            href="http://www.cybrosys.com/odoo-customization-and-installation/"><i | 
				
			|||
            class="fa fa-check-square"></i> Request Customization </a> | 
				
			|||
    </div> | 
				
			|||
    <img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block"> | 
				
			|||
</section> | 
				
			|||
 | 
				
			|||
 | 
				
			|||
 | 
				
			|||
 | 
				
			|||
| 
		 After Width: | Height: | Size: 67 KiB  | 
| 
		 After Width: | Height: | Size: 58 KiB  | 
@ -0,0 +1,19 @@ | 
				
			|||
<?xml version="1.0" encoding="utf-8"?> | 
				
			|||
<odoo> | 
				
			|||
    <data> | 
				
			|||
        <record model="ir.ui.view" id="res_partner_email_view_buttons"> | 
				
			|||
            <field name="name">res.partner.view.buttons</field> | 
				
			|||
            <field name="model">res.partner</field> | 
				
			|||
            <field name="inherit_id" ref="base.view_partner_form" /> | 
				
			|||
            <field name="priority" eval="10"/> | 
				
			|||
            <field name="arch" type="xml"> | 
				
			|||
                <xpath expr="//div[@name='button_box']" position="inside"> | 
				
			|||
                    <button class="oe_inline oe_stat_button" type="object" string="Sent Emails" attrs="{'invisible': [('customer', '=', False)]}" | 
				
			|||
                    name="sent_email_history" icon="fa-mail-forward"/> | 
				
			|||
                     <button class="oe_inline oe_stat_button" type="object" string="Received Emails" attrs="{'invisible': [('customer', '=', False)]}" | 
				
			|||
                    name="received_email_history" icon="fa-mail-reply"/> | 
				
			|||
                </xpath> | 
				
			|||
            </field> | 
				
			|||
        </record> | 
				
			|||
    </data> | 
				
			|||
</odoo> | 
				
			|||
		
		
			
  | 
| 
		 After Width: | Height: | Size: 39 KiB  |