11 changed files with 289 additions and 0 deletions
			
			
		| @ -0,0 +1,25 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################## | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | #    Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Niyas Raphy(<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,42 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################## | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | #    Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Niyas Raphy(<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': 'Email - Auto Resend', | ||||
|  |     'summary': """Automatically Resend The Failed Emails""", | ||||
|  |     'version': '10.0.1.0', | ||||
|  |     'description': """Automatically resend the failed Emails""", | ||||
|  |     'author': 'Cybrosys Techno Solutions', | ||||
|  |     'company': 'Cybrosys Techno Solutions', | ||||
|  |     'website': 'https://www.cybrosys.com', | ||||
|  |     'category': 'Tools', | ||||
|  |     'depends': ['base', 'mail', 'mrp'], | ||||
|  |     'license': 'AGPL-3', | ||||
|  |     'data': [ | ||||
|  |             'views/auto_resend_cron.xml', | ||||
|  |              ], | ||||
|  |     'images': ['static/description/banner.jpg'], | ||||
|  |     'demo': [], | ||||
|  |     'installable': True, | ||||
|  |     'auto_install': False, | ||||
|  | 
 | ||||
|  | } | ||||
| @ -0,0 +1,26 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################## | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | #    Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Niyas Raphy(<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 auto_resend | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | 
 | ||||
| @ -0,0 +1,34 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################## | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | #    Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Niyas Raphy(<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, api | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class ResendMails(models.Model): | ||||
|  |     _inherit = 'mail.mail' | ||||
|  | 
 | ||||
|  |     @api.multi | ||||
|  |     def resend_failed_mails(self): | ||||
|  |         mail_failed_list = self.env['mail.mail'].search([('state', '=', 'exception')]) | ||||
|  |         for failed_mail in mail_failed_list: | ||||
|  |             failed_mail.state = 'outgoing' | ||||
|  | 
 | ||||
| After Width: | Height: | Size: 122 KiB | 
| After Width: | Height: | Size: 50 KiB | 
| After Width: | Height: | Size: 36 KiB | 
| @ -0,0 +1,65 @@ | |||||
|  | <section class="oe_container"> | ||||
|  |      <div class="oe_row oe_spaced"> | ||||
|  |          <h2 class="oe_slogan">Failed Emails - Auto Resend</h2> | ||||
|  |          <h3 class="oe_slogan">Resend failed E-mails automatically</h3> | ||||
|  |          <h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a> </h4> | ||||
|  |          <div> | ||||
|  |              <p>No more worry about the failed E-mails, install Auto Resend to resend the failed E-mails | ||||
|  |                  automatically.  </p> | ||||
|  |          </div> | ||||
|  |          <div> | ||||
|  |                 <h4><p>Features:</p></h4> | ||||
|  |                 <ul> | ||||
|  |                     <li style="list-style:none !important;"><span style="color:green;"> ☑</span>   Resending of failed Emails </li> | ||||
|  |                     <li style="list-style:none !important;"><span style="color:green;"> ☑</span>   Can configure the resending time periods</li> | ||||
|  |                     <li style="list-style:none !important;"><span style="color:green;"> ☑</span>   The whole mailbox will be checked once a day by default.</li> | ||||
|  |                     <li style="list-style:none !important;"><span style="color:green;"> ☑</span>   If there are any failed emails, it will resend</li> | ||||
|  |                     <li style="list-style:none !important;"><span style="color:green;"> ☑</span>   Automatic checking for resending the failed emails can be configured once | ||||
|  |                         a day or once a week, or once an Hour etc.</li> | ||||
|  |                 </ul> | ||||
|  |             </div> | ||||
|  |     </div> | ||||
|  | </section> | ||||
|  | 
 | ||||
|  | <section class="oe_container oe_dark"> | ||||
|  |     <div class="oe_row oe_spaced"> | ||||
|  |         <h4 class="oe_slogan">How to set the resending time period?</h4> | ||||
|  |         <div class="oe_span12"> | ||||
|  |             <p>By default, the whole Emails will be checked once a day</p> | ||||
|  |             <p>If there are any failed emails, then it will resend</p> | ||||
|  |             <p>To change the time period</p> | ||||
|  |             <p>Activate the developer mode, Then Settings -> Technical -> Automation -> Scheduled Action</p> | ||||
|  |             <p>Open the record named 'Auto Resend Emails'</p> | ||||
|  |             <p>Configure it here</p> | ||||
|  |             <div class="oe_row_img oe_centered"> | ||||
|  |                 <img style="border:10px solid white;" class="oe_picture oe_screenshot" src="set_interval.png"> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </section> | ||||
|  | 
 | ||||
|  | <section class="oe_container"> | ||||
|  | 		<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2> | ||||
|  | 		<div class="oe_slogan" style="margin-top:10px !important;"> | ||||
|  |             <div> | ||||
|  | 				<a  class="btn btn-primary btn-lg mt8" | ||||
|  | 				style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i | ||||
|  | 				class="fa fa-envelope"></i> Email </a> <a | ||||
|  | 				class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" | ||||
|  | 				href="https://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;border-radius: 0;" | ||||
|  | 				href="https://www.cybrosys.com/odoo-customization-and-installation/"><i | ||||
|  | 				class="fa fa-check-square"></i> Request Customization </a> | ||||
|  | 	        </div> | ||||
|  |             <br> | ||||
|  | 		    <img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block"> | ||||
|  |             <div> | ||||
|  | 			  <a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td> | ||||
|  |               <a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td> | ||||
|  |               <a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td> | ||||
|  |               <a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td> | ||||
|  |               <a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td> | ||||
|  |             </div> | ||||
|  | 		</div> | ||||
|  | </section> | ||||
| @ -0,0 +1,82 @@ | |||||
|  | <section class="oe_container"> | ||||
|  |     <div class="oe_spaced"> | ||||
|  |         <h2 class="oe_slogan">Birthday Notification By E-mail</h2> | ||||
|  |         <h3 class="oe_slogan">This module will wish the employees on their birthday</h3> | ||||
|  | 
 | ||||
|  |         <h4 class="oe_slogan">Author : Cybrosys Techno Solutions , www.cybrosys.com</h4> | ||||
|  |         <div style="padding-left:66px;"> | ||||
|  |         <h4>Features:</h4> | ||||
|  |         <ul> | ||||
|  |             <li style="list-style:none !important;"><span style="color:green;"> →</span>   Adds a cron job to invoke email</li> | ||||
|  |             <li style="list-style:none !important;"><span style="color:green;"> →</span>   Adds an email template</li> | ||||
|  |         </ul> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </section> | ||||
|  | 
 | ||||
|  | <section class="oe_container oe_dark"> | ||||
|  |     <div class="oe_spaced"> | ||||
|  |         <div class="oe_picture"> | ||||
|  |             <h3 class="oe_slogan">Overview</h3> | ||||
|  |             <p class="oe_mt32"> | ||||
|  |                 HR departments need not worry to wish their employees for their Birthday. In this module we have included the feature to send an email Birthday notification to the employee. | ||||
|  |             </p> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </section> | ||||
|  | 
 | ||||
|  | <section class="oe_container"> | ||||
|  |     <div class="oe_row oe_spaced"> | ||||
|  |         <h4 class="oe_slogan">Employee Form</h4> | ||||
|  |         <div class="oe_span12"> | ||||
|  |             <p class='oe_mt32'> | ||||
|  |                 ☛ Give Date of Birth for employee.<br> | ||||
|  |                 ☛ Give work email.<br> | ||||
|  |             </p> | ||||
|  |             <div class="oe_row_img oe_centered"> | ||||
|  |                 <img class="oe_picture oe_screenshot" src="birthday_1.png"> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </section> | ||||
|  | 
 | ||||
|  | <section class="oe_container"> | ||||
|  |     <div class="oe_row oe_spaced"> | ||||
|  |         <h4 class="oe_slogan">Email Template</h4> | ||||
|  |         <div class="oe_span12"> | ||||
|  |             <p class='oe_mt32'> | ||||
|  |                 ☛ The cron job will invoke the email<br> | ||||
|  |                 ☛ Email template is very simple<br> | ||||
|  |             </p> | ||||
|  |             <div class="oe_row_img oe_centered"> | ||||
|  |                 <img class="oe_picture oe_screenshot" src="temp.png"> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </section> | ||||
|  | 
 | ||||
|  | <section class="oe_container"> | ||||
|  |     <h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2> | ||||
|  |     <div class="oe_slogan" style="margin-top:10px !important;"> | ||||
|  |         <div> | ||||
|  |             <a  class="btn btn-primary btn-lg mt8" | ||||
|  |             style="color: #FFFFFF !important;border-radius: 0;" 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;border-radius: 0;" | ||||
|  |             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;border-radius: 0;" | ||||
|  |             href="http://www.cybrosys.com/odoo-customization-and-installation/"><i | ||||
|  |             class="fa fa-check-square"></i> Request Customization </a> | ||||
|  |         </div> | ||||
|  |         <br> | ||||
|  |         <img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block"> | ||||
|  |         <div> | ||||
|  |           <a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td> | ||||
|  |           <a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td> | ||||
|  |           <a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td> | ||||
|  |           <a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td> | ||||
|  |           <a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </section> | ||||
| After Width: | Height: | Size: 51 KiB | 
| @ -0,0 +1,15 @@ | |||||
|  | <?xml version="1.0" ?> | ||||
|  | <odoo> | ||||
|  |     <data> | ||||
|  |         <record model="ir.cron" id="auto_resend_mails"> | ||||
|  |             <field name="name">Auto Resend Emails</field> | ||||
|  |             <field name="interval_number">1</field> | ||||
|  |             <field name="interval_type">days</field> | ||||
|  |             <field name="numbercall">-1</field> | ||||
|  |             <field name="doall" eval="False"/> | ||||
|  |             <field name="model" eval="'mail.mail'"/> | ||||
|  |             <field name="function" eval="'resend_failed_mails'"/> | ||||
|  |             <field name="args">()</field> | ||||
|  |         </record> | ||||
|  |     </data> | ||||
|  | </odoo> | ||||
					Loading…
					
					
				
		Reference in new issue