| @ -1,41 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Cybrosys Technologies(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| { |  | ||||
|     'name': 'PDC Management', |  | ||||
|     'version': '10.0.1.0', |  | ||||
|     'author': 'Cybrosys Techno Solutions', |  | ||||
|     'company': 'Cybrosys Techno Solutions', |  | ||||
|     'website': 'http://www.cybrosys.com', |  | ||||
|     'category': 'Accounting', |  | ||||
|     'summary': 'Extension on Cheques to handle Post Dated Cheques', |  | ||||
|     'description': """ Extension on Cheques to handle Post Dated Cheques """, |  | ||||
|     'depends': ['account_check_printing'], |  | ||||
|     'data': [ |  | ||||
|         'data/account_pdc_data.xml', |  | ||||
|         'views/account_payment_view.xml', |  | ||||
|     ], |  | ||||
|     'images': ['static/description/banner.jpg'], |  | ||||
|     'license': 'LGPL-3', |  | ||||
|     'installable': True, |  | ||||
|     'auto_install': False, |  | ||||
| } |  | ||||
| @ -1,92 +0,0 @@ | |||||
| <section class="oe_container"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <h2 class="oe_slogan">PDC Management</h2> |  | ||||
|             <h3 class="oe_slogan">...A simple way to handle Post Dated Checks...</h3> |  | ||||
|             <h4 class="oe_slogan">Cybrosys Techno Solutions, www.cybrosys.com</h4> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container oe_dark"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <h3 class="oe_slogan">Configuration</h3> |  | ||||
|         </div> |  | ||||
|         <div class="oe_span8"> |  | ||||
|             <div class="oe_demo oe_picture oe_screenshot"> |  | ||||
|                 <img src="pdc_config.png"> |  | ||||
|             </div> |  | ||||
|         </div> |  | ||||
|         <div class="oe_span4"> |  | ||||
|             <p class="oe_mt32"> |  | ||||
|                 <p><b>Select PDC:</b></p> |  | ||||
|                 <p>As shown here, You have to select PDC to enable the PDC payment.This is only available with Journal of type 'Bank'</p> |  | ||||
|             </p> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <h3 class="oe_slogan">At The Time of Payment You Will Have</h3> |  | ||||
|         </div> |  | ||||
|         <div class="oe_span6"> |  | ||||
|             <div class="oe_demo oe_picture oe_screenshot"> |  | ||||
|                 <img src="pdc_payment.png"> |  | ||||
|             </div> |  | ||||
|         </div> |  | ||||
|         <div class="oe_span4"> |  | ||||
|             <p class="oe_mt32"> |  | ||||
|                 <p>Payment form have two extra fields to put Bank and Check Detail.</p> |  | ||||
|             </p> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span4"> |  | ||||
|             <p class="oe_mt32"> |  | ||||
|                 <p>When you select PDC, You have to put 'effective date' of PDC.</p> |  | ||||
|             </p> |  | ||||
|         </div> |  | ||||
|         <div class="oe_span6"> |  | ||||
|             <div class="oe_demo oe_picture oe_screenshot"> |  | ||||
|                 <img src="pdc_payment_eff.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> |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB | 
| Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB | 
| @ -1,68 +0,0 @@ | |||||
| <section class="oe_container"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <h2 class="oe_slogan">Payments Report</h2> |  | ||||
|             <h3 class="oe_slogan">...A report of Payments with a filter for PDC...</h3> |  | ||||
|             <h4 class="oe_slogan">Cybrosys Techno Solutions, www.cybrosys.com</h4> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container oe_dark"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <div class="oe_demo oe_picture oe_screenshot"> |  | ||||
|                 <img src="pdc_report.png"> |  | ||||
|             </div> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| <section class="oe_container"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <div class="col-md-12"> <p class='oe_mt32' style="text-align:center;"> |  | ||||
|                 If you want to analyze the working of PDC Management Module, Click Here:</p> |  | ||||
|             </div> |  | ||||
|             <div class="col-md-12"> <a  class="btn btn-info btn-lg mt8 center-block" |  | ||||
|                 style="color: #FFFFFF !important; width: 55%;" href="https://apps.odoo.com/apps/modules/10.0/account_pdc/"><i |  | ||||
|                 class="fa fa-money "></i> PDC Management </a> |  | ||||
|             </div> |  | ||||
|         </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;"> |  | ||||
|             <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> |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| Before Width: | Height: | Size: 298 KiB After Width: | Height: | Size: 76 KiB | 
| Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 75 KiB | 
| @ -1,50 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Nilmar Shereef(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| { |  | ||||
|     'name': "Cron Failure Notification", |  | ||||
|     'version': '10.0.1.0.0', |  | ||||
|     'category': 'Extra Tools', |  | ||||
|     'summary': """Cron job failure log""", |  | ||||
|     'description': """ |  | ||||
|         This module will generate error Logs for Scheduled |  | ||||
|         Actions / Cron jobs running in backend server |  | ||||
|     """, |  | ||||
|     'author': "Cybrosys Techno Solutions", |  | ||||
|     'company': "Cybrosys Techno Solutions", |  | ||||
|     'website': "http://www.cybrosys.com", |  | ||||
|     'depends': ['base', 'mail', 'web', 'base_setup'], |  | ||||
|     'data': [ |  | ||||
|         'views/logs_scheduled_actions_view.xml', |  | ||||
|         'views/error_log_report_template.xml', |  | ||||
|         'views/report.xml', |  | ||||
|         'views/error_mail_template.xml' |  | ||||
|     ], |  | ||||
|     'demo': [ |  | ||||
|         'demo/ir_cron_demo.xml' |  | ||||
|     ], |  | ||||
|     'images': ['static/description/banner.jpg'], |  | ||||
|     'license': 'LGPL-3', |  | ||||
|     'installable': True, |  | ||||
|     'auto_install': False, |  | ||||
|     'application': False, |  | ||||
| } |  | ||||
| Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 63 KiB | 
| @ -1,43 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Nilmar Shereef(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| { |  | ||||
|     'name': "Automatic Developer Mode", |  | ||||
|     'summary': """Automatically Activate Developer Mode & Running DB Name on Left Top""", |  | ||||
|     'version': '10.0.2.0.0', |  | ||||
|     'author': 'Cybrosys Techno Solutions', |  | ||||
|     'website': "http://www.cybrosys.com", |  | ||||
|     'company': 'Cybrosys Techno Solutions', |  | ||||
|     'category': 'Extra Tools', |  | ||||
|     'depends': ['base', 'web', 'base_setup'], |  | ||||
|     'data': [ |  | ||||
|         'views/web_view.xml', |  | ||||
|         'security/security_data.xml', |  | ||||
|         'views/developer_mode_view.xml', |  | ||||
|         'views/ir_rule_view.xml', |  | ||||
|         'data/cybro_developer_data.xml', |  | ||||
|     ], |  | ||||
|     'images': ['static/description/banner.jpg'], |  | ||||
|     'license': 'AGPL-3', |  | ||||
|     'installable': True, |  | ||||
|     'auto_install': False, |  | ||||
| } |  | ||||
| Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 68 KiB | 
| @ -1,95 +0,0 @@ | |||||
| <section class="oe_container"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <h2 class="oe_slogan">Automatic Developer Mode</h2> |  | ||||
|             <h3 class="oe_slogan">Developers, Keep up your smile!</h3> |  | ||||
|             <h4 class="oe_slogan">Cybrosys Technologies , www.cybrosys.com</h4> |  | ||||
|         </div> |  | ||||
|         <div class="oe_row oe_spaced"> |  | ||||
|         <h4><p style="margin-left: 41px;">Keep smiling for the below reasons:</p></h4> |  | ||||
|         <ul> |  | ||||
|            <li style="list-style:none !important;"><span style="color:green;"> ☺</span>   Automatically Trigger Developer Mode.</li> |  | ||||
|             <li style="list-style:none !important;"><span style="color:green;"> ☺</span>   Showing Running DB On Left Top.</li> |  | ||||
|             <li style="list-style:none !important;"><span style="color:green;"> ☺</span>   Update Modules Easily.</li> |  | ||||
|         </ul> |  | ||||
|         </div> |  | ||||
|         <div class="oe_span6"> |  | ||||
|             <div class="oe_demo oe_picture oe_screenshot"> |  | ||||
|                 <img src="dev.jpg"> |  | ||||
|             </div> |  | ||||
|         </div> |  | ||||
|         <div class="oe_span6"> |  | ||||
|             <p class="oe_mt32"> |  | ||||
|                 <p>This module makes you free from activating developer mode operations repeatedly. |  | ||||
|         When you login, It will trigger the DEVELOPER MODE automatically.</p> |  | ||||
|             </p> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span6"> |  | ||||
|             <p class="oe_mt32"> |  | ||||
|                 <p>As shown here, Simply automate the developer mode. It help developer in several perspective. NOTE That, you have to re-login after this module installation</p> |  | ||||
|             </p> |  | ||||
|         </div> |  | ||||
|         <div class="oe_span6"> |  | ||||
|             <div class="oe_demo oe_picture oe_screenshot"> |  | ||||
|                 <img src="im_login.jpg"> |  | ||||
|             </div> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span6"> |  | ||||
|             <p class="oe_mt32"> |  | ||||
|                 <p>The developer can identify running DB easily.</p> |  | ||||
|             </p> |  | ||||
|         </div> |  | ||||
|         <div class="oe_span6"> |  | ||||
|             <div class="oe_demo oe_picture oe_screenshot"> |  | ||||
|                 <img src="working_db.png"> |  | ||||
|             </div> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span6"> |  | ||||
|             <p class="oe_mt32"> |  | ||||
|                 <p>Easily update any module without opening the module form.</p> |  | ||||
|             </p> |  | ||||
|         </div> |  | ||||
|         <div class="oe_span6"> |  | ||||
|             <div class="oe_demo oe_picture oe_screenshot"> |  | ||||
|                 <img src="apps_view.png"> |  | ||||
|             </div> |  | ||||
|         </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> |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| @ -1,22 +0,0 @@ | |||||
| { |  | ||||
|     'name': 'Export Product Stock in Excel', |  | ||||
|     'version': '0.2', |  | ||||
|     'category': 'Inventory', |  | ||||
|     'license': "AGPL-3", |  | ||||
|     'summary': "Current Stock Report for all Products in each Warehouse", |  | ||||
|     'author': 'Cybrosys Techno Solutions', |  | ||||
|     'company': 'Cybrosys Techno Solutions', |  | ||||
|     'website': 'http://www.cybrosys.com', |  | ||||
|     'depends': [ |  | ||||
|                 'base', |  | ||||
|                 'stock', |  | ||||
|                 'sale', |  | ||||
|                 'purchase', |  | ||||
|                 'report_xlsx' |  | ||||
|                 ], |  | ||||
|     'data': [ |  | ||||
|             'views/wizard_view.xml', |  | ||||
|             ], |  | ||||
|     'installable': True, |  | ||||
|     'auto_install': False, |  | ||||
| } |  | ||||
| After Width: | Height: | Size: 66 KiB | 
| @ -1,23 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Niyas Raphy(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| import account_receipt_parser |  | ||||
| @ -1,91 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Niyas Raphy(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| import json |  | ||||
| from odoo.report import report_sxw |  | ||||
| from odoo.osv import osv |  | ||||
| from odoo import api |  | ||||
| from odoo.http import request |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| class AccountReceiptParser(report_sxw.rml_parse): |  | ||||
| 
 |  | ||||
|     def __init__(self, cr, uid, name, context=None): |  | ||||
|         super(AccountReceiptParser, self).__init__(cr, uid, name, context=context) |  | ||||
|         self.localcontext.update({ |  | ||||
|             'get_details': self.get_details, |  | ||||
|             'get_details_invoice': self.get_details_invoice, |  | ||||
|         }) |  | ||||
|         self.context = context |  | ||||
| 
 |  | ||||
|     @api.multi |  | ||||
|     def get_details_invoice(self, doc): |  | ||||
|         lines = [] |  | ||||
|         if doc.number: |  | ||||
|             acc_inv = request.env['account.invoice'] |  | ||||
|             acc_inv_rec = acc_inv.search([('number', '=', doc.number)]) |  | ||||
|             total_amount = acc_inv_rec.amount_total |  | ||||
|             if acc_inv_rec.state == 'draft': |  | ||||
|                 balance_amount = total_amount |  | ||||
|             else: |  | ||||
|                 balance_amount = acc_inv_rec.residual |  | ||||
|             paid = total_amount - balance_amount |  | ||||
|             vals = { |  | ||||
|                 'total_amount': total_amount, |  | ||||
|                 'balance_amount': balance_amount, |  | ||||
|                 'paid': paid, |  | ||||
|             } |  | ||||
|             lines.append(vals) |  | ||||
|         else: |  | ||||
|             vals = { |  | ||||
|                 'total_amount': doc.amount_total, |  | ||||
|                 'balance_amount': doc.amount_total, |  | ||||
|                 'paid': 0, |  | ||||
|             } |  | ||||
|             lines.append(vals) |  | ||||
|         return lines |  | ||||
| 
 |  | ||||
|     @api.multi |  | ||||
|     def get_details(self, doc): |  | ||||
|         lines = [] |  | ||||
|         if doc.number: |  | ||||
|             acc_inv = request.env['account.invoice'] |  | ||||
|             acc_inv_rec = acc_inv.search([('number', '=', doc.number)]) |  | ||||
|             d = json.loads(acc_inv_rec.payments_widget) |  | ||||
|             for payment in d['content']: |  | ||||
|                 vals = { |  | ||||
|                     'memo': payment['name'], |  | ||||
|                     'amount': payment['amount'], |  | ||||
|                     'method': payment['journal_name'], |  | ||||
|                     'date': payment['date'], |  | ||||
|                 } |  | ||||
|                 lines.append(vals) |  | ||||
|         return lines |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| class PrintReport(osv.AbstractModel): |  | ||||
|     _name = 'report.payment_receipt_invoice.report_payment' |  | ||||
|     _inherit = 'report.abstract_report' |  | ||||
|     _template = 'payment_receipt_invoice.report_payment' |  | ||||
|     _wrapped_report_class = AccountReceiptParser |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 58 KiB | 
| Before Width: | Height: | Size: 30 KiB | 
| Before Width: | Height: | Size: 48 KiB | 
| After Width: | Height: | Size: 14 KiB | 
| @ -1,103 +1,100 @@ | |||||
| <section class="oe_container"> | <section class="oe_container"> | ||||
|      <div class="oe_row"> |      <div class="oe_row"> | ||||
|         <h2 class="oe_slogan">Payment Receipt Report</h2> |         <h2 class="oe_slogan">Payment Receipt Report</h2> | ||||
|         <h3 class="oe_slogan">Customer Receipts & Vendor Payment Report</h3> |         <h3 class="oe_slogan">Customer & Vendor Payment Receipt</h3> | ||||
|          <h4 class="oe_slogan">Cybrosys Techno Solutions, www.cybrosys.com</h4> |         <h4 class="oe_slogan">Cybrosys Techno Solutions, www.cybrosys.com</h4> | ||||
|     </div> |     </div> | ||||
| </section> | </section> | ||||
| <section> | 
 | ||||
|  | <section class=oe_container> | ||||
|     <div class="row oe_row oe_spaced"> |     <div class="row oe_row oe_spaced"> | ||||
|         <div class="col-md-12"> |         <div class="col-md-12"> | ||||
|                 ☀ Generate Customer invoice receipt with payment details.<br> |             ☀ Generate Receipt for Customer & Supplier Payment.<br> | ||||
|                 ☀  Generate Vendor receipt with payment details.<br> |             ☀ Supports Multi Currency.<br> | ||||
|         </div> |         </div> | ||||
|     </div> |     </div> | ||||
|     <div class="oe_row"> |     <div class="oe_row"> | ||||
|         <h2 class="oe_slogan">Customer Invoice</h2> |         <h2 class="oe_slogan">Print Customer/Supplier Payment</h2> | ||||
|         <h4 class="oe_slogan">Customer Invoice Form View</h4> |         <h4 class="oe_slogan">Payment Form</h4> | ||||
|         <div class="oe_span12"> |         <div class="oe_span12"> | ||||
|             <p class='oe_mt32'> |             <p class='oe_mt32'> | ||||
|                 <br> |                 <br> | ||||
|             </p> |             </p> | ||||
|             <div class="oe_row_img oe_centered"> |             <div class="oe_row_img oe_demo oe_picture oe_screenshot"> | ||||
|                 <img class="oe_picture oe_screenshot" src="customer_invoice_form_view.png"> |                 <img src="payment.png"> | ||||
|  |                 <div class="oe_demo_footer oe_centeralign"style="background-color:rgba(162, 70, 137, 0.7);">Here you can see the option to print receipt against this payment</div> | ||||
|             </div> |             </div> | ||||
|         </div> |         </div> | ||||
|     </div> |     </div> | ||||
|     <div class="oe_row oe_spaced"> |     <div class="oe_row oe_spaced"> | ||||
|         <h4 class="oe_slogan">Customer Receipt Print</h4> |         <h4 class="oe_slogan">Invoices Paid by above payment</h4> | ||||
|         <div class="oe_span12"> |         <div class="oe_span12"> | ||||
|             <p class='oe_mt32'> |             <p class='oe_mt32'> | ||||
|                 <br> |                 <br> | ||||
|             </p> |             </p> | ||||
|             <div class="oe_row_img oe_centered"> |             <div class="oe_row_img oe_picture oe_screenshot oe_demo"> | ||||
|                 <img class="oe_picture oe_screenshot" src="receipt_print_customer.png"> |                 <img src="invoices.png"> | ||||
|  |                 <div class="oe_demo_footer oe_centeralign" style="background-color:rgba(162, 70, 137, 0.7);">These are the invoices paid by above payment</div> | ||||
|             </div> |             </div> | ||||
|         </div> |         </div> | ||||
|     </div> |     </div> | ||||
|  | </section> | ||||
|  | 
 | ||||
|  | <section class=oe_container> | ||||
|     <div class="oe_row oe_spaced"> |     <div class="oe_row oe_spaced"> | ||||
|         <h4 class="oe_slogan">Customer Receipt Report</h4> |         <h4 class="oe_slogan">Payment Receipt</h4> | ||||
|         <div class="oe_span12"> |         <div class="oe_span12"> | ||||
|             <p class='oe_mt32'> |             <p class='oe_mt32'> | ||||
|                 <br> |                 <br> | ||||
|             </p> |             </p> | ||||
|             <div class="oe_row_img oe_centered"> |             <div class="oe_row_img"> | ||||
|                 <img class="oe_picture oe_screenshot" src="customer_receipt.png"> |                 <img src="receipt_report2.png" style="border:2px black solid !important;"> | ||||
|             </div> |             </div> | ||||
|  |             <br/> | ||||
|         </div> |         </div> | ||||
|     </div> |     </div> | ||||
| </section> | </section> | ||||
| <section> | 
 | ||||
|  | <section class=oe_container> | ||||
|     <div class="oe_row oe_spaced"> |     <div class="oe_row oe_spaced"> | ||||
|         <h2 class="oe_slogan">Vendor Bill</h2> |  | ||||
|         <h4 class="oe_slogan">Vendor Bill Form View</h4> |  | ||||
|         <div class="oe_span12"> |         <div class="oe_span12"> | ||||
|             <p class='oe_mt32'> |             <div class="oe_row_img oe_picture oe_screenshot oe_demo"> | ||||
|                 <br> |                 <img src="diff_curr_repo.png"> | ||||
|             </p> |                 <div class="oe_demo_footer oe_centeralign" style="background-color:rgba(162, 70, 137, 0.7);">When payment and company are in different currency</div> | ||||
|             <div class="oe_row_img oe_centered"> |  | ||||
|                 <img class="oe_picture oe_screenshot" src="vendor_invoice_form.png"> |  | ||||
|             </div> |             </div> | ||||
|         </div> |             <br/> | ||||
|     </div> |             <div class="oe_row_img oe_picture oe_screenshot oe_demo"> | ||||
|     <div class="oe_row oe_spaced"> |                 <img src="same_curr_repo.png"> | ||||
|         <h4 class="oe_slogan">Vendor Receipt Print</h4> |                 <div class="oe_demo_footer oe_centeralign" style="background-color:rgba(162, 70, 137, 0.7);">When payment and company are in same currency</div> | ||||
|         <div class="oe_span12"> |  | ||||
|             <p class='oe_mt32'> |  | ||||
|                 <br> |  | ||||
|             </p> |  | ||||
|             <div class="oe_row_img oe_centered"> |  | ||||
|                 <img class="oe_picture oe_screenshot" src="vendor_print_button.png"> |  | ||||
|             </div> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <h4 class="oe_slogan">Vendor Receipt Report</h4> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <p class='oe_mt32'> |  | ||||
|                 <br> |  | ||||
|             </p> |  | ||||
|             <div class="oe_row_img oe_centered"> |  | ||||
|                 <img class="oe_picture oe_screenshot" src="vendor_receipt.png"> |  | ||||
|             </div> |             </div> | ||||
|         </div> |         </div> | ||||
|     </div> |     </div> | ||||
| </section> | </section> | ||||
| 
 | 
 | ||||
| <section class="oe_container oe_dark"> |  | ||||
|     <h3 class="oe_slogan">Need Any Help?</h3> |  | ||||
|     <div class="oe_slogan"> |  | ||||
|         <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> |  | ||||
| 
 | 
 | ||||
|  | <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: 36 KiB | 
| After Width: | Height: | Size: 26 KiB | 
| Before Width: | Height: | Size: 27 KiB | 
| After Width: | Height: | Size: 76 KiB | 
| After Width: | Height: | Size: 11 KiB | 
| Before Width: | Height: | Size: 26 KiB | 
| Before Width: | Height: | Size: 16 KiB | 
| Before Width: | Height: | Size: 45 KiB | 
| @ -1,22 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> |  | ||||
| <odoo> |  | ||||
|     <data> |  | ||||
|         <report |  | ||||
|             id="report_payment_receipt" |  | ||||
|             string="Payment Receipt" |  | ||||
|             model="account.invoice" |  | ||||
|             report_type="qweb-pdf" |  | ||||
|             file="payment_receipt_invoice.report_payment" |  | ||||
|             name="payment_receipt_invoice.report_payment" |  | ||||
|         /> |  | ||||
| 
 |  | ||||
|         <template id="report_payment"> |  | ||||
|             <t t-call="report.html_container"> |  | ||||
|             <t t-foreach="docs" t-as="doc"> |  | ||||
|                 <t t-call="payment_receipt_invoice.report_payment_print" t-lang="doc.partner_id.lang"/> |  | ||||
|             </t> |  | ||||
|             </t> |  | ||||
|         </template> |  | ||||
| 
 |  | ||||
|     </data> |  | ||||
| </odoo> |  | ||||
| @ -1,82 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> |  | ||||
| <odoo> |  | ||||
|      <template id="report_payment_print"> |  | ||||
|             <t t-call="report.html_container"> |  | ||||
|                 <t t-set="doc" t-value="doc.with_context({'lang':doc.partner_id.lang})" /> |  | ||||
|                 <t t-call="report.internal_layout"> |  | ||||
|                     <div class="page" > |  | ||||
|                         <t t-call="report.external_layout"> |  | ||||
|                             <div class="header" style="text-align:center;"><h1><strong>Payment Receipt</strong></h1></div> |  | ||||
|                             <div class="row mt32 mb32" style="text-align:center;"> |  | ||||
|                             </div> |  | ||||
|                             <div class="row mt32 mb32" > |  | ||||
|                                     <div class="col-xs-12" style="text-align:left;"> |  | ||||
|                                         <span style="float:left;"><strong>Partner:</strong><span t-field="doc.partner_id.name"/></span> |  | ||||
|                                         <span style="float:left; padding-left:50px;"><strong>Invoice Date:</strong><span t-field="doc.date_invoice"/></span> |  | ||||
|                                         <span style="float:left; padding-left:50px;"><strong>Due Date:</strong><span t-field="doc.date_due"/></span> |  | ||||
|                                     </div> |  | ||||
|                             </div> |  | ||||
| 
 |  | ||||
|                             <table class="table table-condensed"> |  | ||||
|                                  <thead> |  | ||||
|                                     <tr > |  | ||||
|                                         <th style="background-color:#9b9da0 !important;">INVOICE TOTAL</th> |  | ||||
|                                         <th style="background-color:#9b9da0 !important;">PAID</th> |  | ||||
|                                         <th style="background-color:#9b9da0 !important;">DUE</th> |  | ||||
|                                     </tr> |  | ||||
|                                 </thead> |  | ||||
|                                <tbody> |  | ||||
|                                     <t t-set="paid_amount" t-value='1'></t> |  | ||||
|                                     <t t-foreach="get_details_invoice(doc)" t-as="rec"> |  | ||||
|                                             <tr> |  | ||||
|                                                 <td><span t-att-style="style" t-esc="rec['total_amount']"/></td> |  | ||||
|                                                 <t t-set="paid_amount" t-value="rec['paid']"/> |  | ||||
|                                                 <td><span t-att-style="style" t-esc="rec['paid']"/> </td> |  | ||||
|                                                 <td><span t-att-style="style" t-esc="rec['balance_amount']"/></td> |  | ||||
|                                             </tr> |  | ||||
|                                     </t> |  | ||||
|                                 </tbody> |  | ||||
|                             </table> |  | ||||
|                             <t t-if="paid_amount != 0"> |  | ||||
|                                 <div class="row mt32 mb32" style="text-align:center;"> |  | ||||
|                                         <div class="col-xs-12"> |  | ||||
|                                             <h3><strong>Payment Details</strong></h3> |  | ||||
|                                         </div> |  | ||||
|                                 </div> |  | ||||
|                                 <t t-if="doc.amount_total != doc.residual"> |  | ||||
|                                     <table class="table table-condensed"> |  | ||||
|                                          <thead> |  | ||||
|                                             <tr > |  | ||||
|                                                 <th style="background-color:#9b9da0 !important;">MEMO</th> |  | ||||
|                                                 <th style="background-color:#9b9da0 !important;">PAYMENT DATE</th> |  | ||||
|                                                 <th style="background-color:#9b9da0 !important;">METHOD</th> |  | ||||
|                                                 <th style="background-color:#9b9da0 !important;">AMOUNT</th> |  | ||||
|                                             </tr> |  | ||||
|                                         </thead> |  | ||||
|                                         <tbody> |  | ||||
|                                             <t t-foreach="get_details(doc)" t-as="b"> |  | ||||
|                                                 <tr> |  | ||||
|                                                     <td> |  | ||||
|                                                         <span t-att-style="style" t-esc="b['memo']"/> |  | ||||
|                                                     </td> |  | ||||
|                                                     <td> |  | ||||
|                                                         <span t-att-style="style" t-esc="b['date']"/> |  | ||||
|                                                     </td> |  | ||||
|                                                     <td> |  | ||||
|                                                        <span t-att-style="style" t-esc="b['method']"/> |  | ||||
|                                                     </td> |  | ||||
|                                                     <td> |  | ||||
|                                                        <span t-att-style="style" t-esc="b['amount']"/> |  | ||||
|                                                     </td> |  | ||||
|                                                 </tr> |  | ||||
|                                             </t> |  | ||||
|                                         </tbody> |  | ||||
|                                     </table> |  | ||||
|                                 </t> |  | ||||
|                             </t> |  | ||||
|                         </t> |  | ||||
|                     </div> |  | ||||
|                 </t> |  | ||||
|             </t> |  | ||||
|      </template> |  | ||||
| </odoo> |  | ||||
| @ -0,0 +1,13 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <data> | ||||
|  |         <report | ||||
|  |             id="account_receipt" | ||||
|  |             model="account.payment" | ||||
|  |             string="Receipt" | ||||
|  |             report_type="qweb-pdf" | ||||
|  |             name="payment_receipt_invoice.report_receipt" | ||||
|  |             file="payment_receipt_invoice.report_receipt" | ||||
|  |         /> | ||||
|  |     </data> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,137 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <data> | ||||
|  |         <template id="report_receipt_document"> | ||||
|  |             <t t-call="report.external_layout"> | ||||
|  |                 <t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})" /> | ||||
|  |                 <div class="page"> | ||||
|  |                     <br/> | ||||
|  |                     <div class="header" style="text-align:center;"><h1><strong>Payment Receipt</strong></h1></div> | ||||
|  |                     <div class="row mt32 mb32"> | ||||
|  |                         <div name="partner_address" class="col-xs-3"> | ||||
|  |                             <strong><span t-field="o.partner_type"/><span>:</span></strong> | ||||
|  |                             <address t-field="o.partner_id" | ||||
|  |                                 t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' /> | ||||
|  |                             <span t-if="o.partner_id.vat">TIN: <span t-field="o.partner_id.vat"/></span> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-xs-3 col-xs-offset-6"> | ||||
|  |                             <t t-if="o.payment_date"> | ||||
|  |                                 <strong>Payment Date:</strong> | ||||
|  |                                 <p t-field="o.payment_date"/></t> | ||||
|  |                             <t t-if="o.name"> | ||||
|  |                                 <strong>Reference NO:</strong> | ||||
|  |                                 <p t-field="o.name"/></t> | ||||
|  |                             <t t-if="o.journal_id"> | ||||
|  |                                 <strong>Payment Method:</strong> | ||||
|  |                                 <p t-field="o.journal_id"/></t> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <table class="table table-condensed"> | ||||
|  |                         <thead> | ||||
|  |                             <tr style="background-color:#9b9da0 !important;"> | ||||
|  |                                 <th>Invoice No</th> | ||||
|  |                                 <th>Invoice Date</th> | ||||
|  |                                 <th class="text-right">Total Amount</th> | ||||
|  |                                 <th class="text-right">Payment Amount</th> | ||||
|  |                                 <th class="text-right">Balance</th> | ||||
|  |                             </tr> | ||||
|  |                         </thead> | ||||
|  |                         <tbody class="payment_tbody"> | ||||
|  |                             <tr t-foreach="o.invoice_ids" t-as="l"> | ||||
|  |                                 <td><span t-field="l.number"/></td> | ||||
|  |                                 <td><span t-field="l.date_invoice"/></td> | ||||
|  |                                 <td class="text-right"> | ||||
|  |                                     <span t-field="l.amount_total" | ||||
|  |                                           t-options='{"widget": "monetary", "display_currency": l.currency_id}'/> | ||||
|  |                                 </td> | ||||
|  |                                 <td class="text-right"> | ||||
|  |                                     <t t-foreach="l.payment_move_line_ids" t-as="pm"> | ||||
|  |                                         <t t-if="pm.payment_id.id == o.id"> | ||||
|  |                                             <t t-if="l.type in ('out_invoice', 'in_refund')"> | ||||
|  |                                                 <t t-foreach="pm.matched_debit_ids" t-as="md"> | ||||
|  |                                                     <t t-foreach="l.move_id.line_ids" t-as="ln"> | ||||
|  |                                                         <t t-if="md.debit_move_id.id == ln.id"> | ||||
|  |                                                             <t t-if="md.debit_move_id.amount_currency == 0.0"> | ||||
|  |                                                                 <span t-field="md.amount" | ||||
|  |                                                                 t-options='{"widget": "monetary", "display_currency": l.currency_id}'/> | ||||
|  |                                                             </t> | ||||
|  |                                                             <t t-if="md.debit_move_id.amount_currency != 0.0"> | ||||
|  |                                                                 <span t-esc="abs(md.debit_move_id.amount_currency)" | ||||
|  |                                                                 t-options='{"widget": "monetary", "display_currency": l.currency_id}'/> | ||||
|  |                                                             </t> | ||||
|  | 
 | ||||
|  |                                                         </t> | ||||
|  |                                                     </t> | ||||
|  |                                                 </t> | ||||
|  |                                             </t> | ||||
|  |                                             <t t-if="l.type in ('in_invoice', 'out_refund')"> | ||||
|  |                                                 <t t-foreach="pm.matched_credit_ids" t-as="mc"> | ||||
|  |                                                     <t t-foreach="l.move_id.line_ids" t-as="ln"> | ||||
|  |                                                         <t t-if="mc.credit_move_id.id == ln.id"> | ||||
|  |                                                             <t t-if="mc.credit_move_id.amount_currency == 0.0"> | ||||
|  |                                                                 <span t-field="mc.amount" | ||||
|  |                                                                 t-options='{"widget": "monetary", "display_currency": l.currency_id}'/> | ||||
|  |                                                             </t> | ||||
|  |                                                             <t t-if="mc.credit_move_id.amount_currency != 0.0"> | ||||
|  |                                                                 <span t-esc="abs(mc.credit_move_id.amount_currency)" | ||||
|  |                                                                 t-options='{"widget": "monetary", "display_currency": l.currency_id}'/> | ||||
|  |                                                             </t> | ||||
|  |                                                         </t> | ||||
|  |                                                     </t> | ||||
|  |                                                 </t> | ||||
|  |                                             </t> | ||||
|  |                                         </t> | ||||
|  |                                     </t> | ||||
|  |                                 </td> | ||||
|  |                                 <td class="text-right"> | ||||
|  |                                     <span t-field="l.residual" | ||||
|  |                                         t-options='{"widget": "monetary", "display_currency": l.currency_id}'/> | ||||
|  |                                 </td> | ||||
|  |                             </tr> | ||||
|  |                             <tr style="border-top:2px solid black !important;"> | ||||
|  |                                 <td colspan="3"> | ||||
|  |                                     <b><span>Total Receipt Amount:</span></b> | ||||
|  |                                 </td> | ||||
|  |                                 <td class="text-right"> | ||||
|  |                                     <b><span t-field="o.amount" | ||||
|  |                                           t-options='{"widget": "monetary", "display_currency": o.currency_id}'/></b> | ||||
|  |                                 </td> | ||||
|  |                                 <td/> | ||||
|  |                             </tr> | ||||
|  |                             <t t-if="o.currency_id != o.company_id.currency_id"> | ||||
|  |                                 <tr> | ||||
|  |                                     <t t-set="c_amount" t-value="0.0"/> | ||||
|  |                                     <t t-foreach="o.move_line_ids" t-as="x"> | ||||
|  |                                         <t t-if="x.credit == 0.0"> | ||||
|  |                                             <t t-set="c_amount" t-value="x.debit"/> | ||||
|  |                                         </t> | ||||
|  |                                         <t t-if="x.credit != 0.0"> | ||||
|  |                                             <t t-set="c_amount" t-value="x.credit"/> | ||||
|  |                                         </t> | ||||
|  |                                     </t> | ||||
|  |                                     <td colspan="3"> | ||||
|  |                                         <b><span>Total Receipt Amount in </span><span t-field="o.company_id.currency_id.name"/>:</b> | ||||
|  |                                     </td> | ||||
|  |                                     <td class="text-right"> | ||||
|  |                                         <b><span t-esc="c_amount" | ||||
|  |                                                  t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/></b> | ||||
|  |                                     </td> | ||||
|  |                                     <td/> | ||||
|  |                                 </tr> | ||||
|  |                             </t> | ||||
|  |                         </tbody> | ||||
|  |                     </table> | ||||
|  |                     <p style="text-align:center;">Thank You For Doing Business With Us</p> | ||||
|  |                 </div> | ||||
|  |             </t> | ||||
|  |         </template> | ||||
|  | 
 | ||||
|  |         <template id="report_receipt"> | ||||
|  |             <t t-call="report.html_container"> | ||||
|  |                 <t t-foreach="docs" t-as="o"> | ||||
|  |                     <t t-call="payment_receipt_invoice.report_receipt_document" t-lang="o.partner_id.lang"/> | ||||
|  |                 </t> | ||||
|  |             </t> | ||||
|  |         </template> | ||||
|  |     </data> | ||||
|  | </odoo> | ||||
| @ -1,39 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Nilmar Shereef(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| { |  | ||||
|     'name': "POS Chat Box", |  | ||||
|     'summary': """Chat in POS""", |  | ||||
|     'description': "This module adds chat interface in Point of sale screen.", |  | ||||
|     'author': "Cybrosys Techno Solutions", |  | ||||
|     'company': "Cybrosys Techno Solutions", |  | ||||
|     'website': "http://www.cybrosys.com", |  | ||||
|     'category': 'Point Of Sale', |  | ||||
|     'version': '0.4', |  | ||||
|     'depends': ['base', 'point_of_sale'], |  | ||||
|     'data': ['views/pos_chat.xml'], |  | ||||
|     'qweb': ['static/src/xml/pos_msg.xml'], |  | ||||
|     'images': ['static/description/banner.jpg'], |  | ||||
|     'license': 'AGPL-3', |  | ||||
|     'installable': True, |  | ||||
|     'auto_install': False, |  | ||||
| } |  | ||||
| Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 55 KiB | 
| @ -1,42 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Nilmar Shereef(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| { |  | ||||
|     'name': 'Floor Wise Charge in Restaurant', |  | ||||
|     'version': '10.0.2.0.0', |  | ||||
|     'summary': """Product Price Change Based on Floor of POS Restaurant.""", |  | ||||
|     'description': """Module adds the facility charge of floor with each products in POS restaurant""", |  | ||||
|     'author': 'Cybrosys Techno Solutions', |  | ||||
|     'website': "http://www.cybrosys.com", |  | ||||
|     'company': 'Cybrosys Techno Solutions', |  | ||||
|     'category': 'Point Of Sale', |  | ||||
|     'depends': ['point_of_sale', |  | ||||
|                 'pos_restaurant'], |  | ||||
|     'data': [ |  | ||||
|         'views/pos_restaurant_extra_facility.xml', |  | ||||
|         'views/templates.xml', |  | ||||
|         ], |  | ||||
|     'images': ['static/description/banner.jpg'], |  | ||||
|     'license': 'LGPL-3', |  | ||||
|     'installable': True, |  | ||||
|     'auto_install': False, |  | ||||
| } |  | ||||
| Before Width: | Height: | Size: 197 KiB After Width: | Height: | Size: 90 KiB | 
| @ -1,20 +0,0 @@ | |||||
| odoo.define('pos_restaurant_floor_facility.floor_facility_rate_addition', function (require) { |  | ||||
| 'use strict'; |  | ||||
| alert("aaaaaaaa"); |  | ||||
| var models = require('point_of_sale.models'); |  | ||||
| var screens = require('point_of_sale.screens'); |  | ||||
| var restaurant = require('pos_restaurant.floors'); |  | ||||
| 
 |  | ||||
| models.load_fields("restaurant.floor",['facility_service_percentage']); |  | ||||
| 
 |  | ||||
| screens.ProductScreenWidget.include({ |  | ||||
|     click_product: function(product) { |  | ||||
|                if(product.to_weight && this.pos.config.iface_electronic_scale){ |  | ||||
|                    this.gui.show_screen('scale',{product: product}); |  | ||||
|                }else{ |  | ||||
|                    this.pos.get_order().add_product(product,{ price: product.price + |  | ||||
|                    (product.price * this.pos.table.floor.facility_service_percentage)/100}); |  | ||||
|                } |  | ||||
|         } |  | ||||
| }); |  | ||||
| }); |  | ||||
| @ -1,41 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Nilmar Shereef(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| { |  | ||||
|     'name': "Lifeline for Task", |  | ||||
|     'summary': """Lifeline Progressbar for Tasks (100% -> 0%)""", |  | ||||
|     'description': """Calculates the time remaining based on live time & deadline.""", |  | ||||
|     'author': 'Cybrosys Techno Solutions', |  | ||||
|     'website': "http://www.cybrosys.com", |  | ||||
|     'company': 'Cybrosys Techno Solutions', |  | ||||
|     'category': 'Project', |  | ||||
|     'version': '0.2', |  | ||||
|     'depends': ['base', 'project'], |  | ||||
|     'data': [ |  | ||||
|         'views/task_lifeline_view.xml', |  | ||||
|         'views/progress_bar_view.xml', |  | ||||
|         'views/progress_bar_settings.xml', |  | ||||
|     ], |  | ||||
|     'images': ['static/description/banner.jpg'], |  | ||||
|     'installable': True, |  | ||||
|     'auto_install': False, |  | ||||
| } |  | ||||
| Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 58 KiB | 
| @ -1,17 +0,0 @@ | |||||
| { |  | ||||
|     'name': 'Task Statusbar', |  | ||||
|     'author': 'Nilmar Shereef PT', |  | ||||
|     'website': 'www.cybrosys.com', |  | ||||
|     'category': 'Project', |  | ||||
|     'version': '10.0.0.3', |  | ||||
|     'summary': 'Calculates the time spend based on assigning date and deadline', |  | ||||
|     'depends': [ |  | ||||
|                 'base', |  | ||||
|                 'project', |  | ||||
|                 ], |  | ||||
|     'data': [ |  | ||||
|             'security/ir.model.access.csv', |  | ||||
|             'views/project_statusbar_view.xml', |  | ||||
|             ], |  | ||||
|     'installable': True, |  | ||||
| } |  | ||||
| @ -1,33 +0,0 @@ | |||||
| { |  | ||||
|     'name': 'Sale Discount on Total Amount', |  | ||||
|     'version': '1.0', |  | ||||
|     'category': 'sale', |  | ||||
|     'summary': "Discount on total in Sale and invoice with Discount limit and approval", |  | ||||
|     'author': 'Cybrosys Techno Solutions', |  | ||||
|     'company': 'Cybrosys Techno Solutions', |  | ||||
|     'website': 'http://www.cybrosys.com', |  | ||||
| 
 |  | ||||
|     'description': """ |  | ||||
| 
 |  | ||||
| Sale Discount for Total Amount |  | ||||
| ======================= |  | ||||
| Module to manage discount on total amount in Sale. |  | ||||
|         as an specific amount or percentage |  | ||||
| """, |  | ||||
|     'depends': ['sale', |  | ||||
|                 'account' |  | ||||
|                 ], |  | ||||
|     'data': [ |  | ||||
|         'views/sale_view.xml', |  | ||||
|         'views/account_invoice_view.xml', |  | ||||
|         'views/invoice_report.xml', |  | ||||
|         'views/sale_order_report.xml', |  | ||||
|         'views/res_config_view.xml', |  | ||||
| 
 |  | ||||
|     ], |  | ||||
|     'demo': [ |  | ||||
|     ], |  | ||||
|     'application': True, |  | ||||
|     'installable': True, |  | ||||
|     'auto_install': False, |  | ||||
| } |  | ||||
| After Width: | Height: | Size: 70 KiB | 
| @ -1,41 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Nilmar Shereef(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| { |  | ||||
|     'name': 'Sales Tags To Invoice Tags', |  | ||||
|     'version': '0.1', |  | ||||
|     'description': """Pass the sales tags to its invoice""", |  | ||||
|     'author': 'Cybrosys Techno Solutions', |  | ||||
|     'company': 'Cybrosys Techno Solutions', |  | ||||
|     'website': 'http://www.cybrosys.com', |  | ||||
|     'category': 'sale', |  | ||||
|     'depends': ['account', 'base', 'sale'], |  | ||||
|     'license': 'AGPL-3', |  | ||||
|     'data': [ |  | ||||
|             'views/sale_invoice_tag_pass_view.xml' |  | ||||
|              ], |  | ||||
|     'demo': [], |  | ||||
|     'images': ['static/description/banner.jpg'], |  | ||||
|     'installable': True, |  | ||||
|     'auto_install': False, |  | ||||
| 
 |  | ||||
| } |  | ||||
| Before Width: | Height: | Size: 237 KiB After Width: | Height: | Size: 71 KiB | 
| @ -1,41 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2009-TODAY Cybrosys Technologies(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| { |  | ||||
|     'name': 'Timesheet PDF Report', |  | ||||
|     'version': '10.0.1.0.0', |  | ||||
|     "category": "Generic Modules/Human Resources", |  | ||||
|     'sequence': 25, |  | ||||
|     'summary': 'Timesheet PDF Report of Employee', |  | ||||
|     'author': 'Cybrosys Techno Solutions', |  | ||||
|     'company': 'Cybrosys Techno Solutions', |  | ||||
|     'website': 'www.cybrosys.com', |  | ||||
|     'depends': ['hr_timesheet'], |  | ||||
|     'data': [ |  | ||||
|              'report/report_timesheets.xml', |  | ||||
|              'wizard/timesheet_wizard.xml', |  | ||||
|             ], |  | ||||
|     'images': ['static/description/banner.jpg'], |  | ||||
|     'license': 'AGPL-3', |  | ||||
|     'installable': True, |  | ||||
|     'auto_install': False, |  | ||||
|     'application': False, |  | ||||
| } |  | ||||
| Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 78 KiB | 
| @ -1,50 +0,0 @@ | |||||
| <section class="oe_container"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <h2 class="oe_slogan">Timesheet PDF Report of Employee</h2> |  | ||||
|         <h3 class="oe_slogan">..Print timesheets of selected employees..</h3> |  | ||||
|         <h4 class="oe_slogan">Cybrosys Technologies , www.cybrosys.com</h4> |  | ||||
|         <div> |  | ||||
|             <p class='oe_mt32' style="text-align: center;"> |  | ||||
|             This module by Cybrosys Technologies allows to print the timesheets of selected employee. It will group all timesheet lines |  | ||||
|                 of selected employee in wizard by period. |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container oe_dark"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <h3 class="oe_slogan">Generate Timesheet Report Wizard With Dates:</h3> |  | ||||
|             <div class="oe_demo oe_picture oe_screenshot"> |  | ||||
|             	<img src="image1.png"> |  | ||||
|             </div> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <h3 class="oe_slogan">PDF Report Of Employee Timesheet:</h3> |  | ||||
|             <div class="oe_demo oe_picture oe_screenshot"> |  | ||||
|             	<img src="image2.png"> |  | ||||
|             </div> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container oe_dark" style="padding-top: 153px;"> |  | ||||
|     <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> |  | ||||
| Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 74 KiB | 
| @ -1,47 +0,0 @@ | |||||
| <section class="oe_container"> |  | ||||
|      <div class="oe_row oe_spaced"> |  | ||||
|         <h2 class="oe_slogan">Change Password Option To Users</h2> |  | ||||
|         <h3 class="oe_slogan">It gives an option to change their own password </h3> |  | ||||
|          <h4 class="oe_slogan">Author : Cybrosys Techno Solutions , www.cybrosys.com</h4> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section> |  | ||||
|     <div class="oe_row oe_spaced oe_dark"> |  | ||||
|         <h4 class="oe_slogan">User Changing Password</h4> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <p class='oe_mt32'> |  | ||||
|                 ☛ User can change password from his own account<br> |  | ||||
|             </p> |  | ||||
|             <div class="oe_row_img oe_centered"> |  | ||||
|                 <img class="oe_picture oe_screenshot" src="new_change_password.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> |  | ||||
| @ -1,15 +0,0 @@ | |||||
| <?xml version="1.0"?> |  | ||||
| <odoo> |  | ||||
|     <data> |  | ||||
|         <record model="ir.ui.view" id="res_partner_total_payable"> |  | ||||
|             <field name="name">res.partner.inherit</field> |  | ||||
|             <field name="model">res.partner</field> |  | ||||
|             <field name="inherit_id" ref="base.view_partner_form" /> |  | ||||
|             <field name="arch" type="xml"> |  | ||||
|                  <field name="debit" position="replace"> |  | ||||
|                           <field name="debit"/> |  | ||||
|                  </field> |  | ||||
|             </field> |  | ||||
|         </record> |  | ||||
|     </data> |  | ||||
| </odoo> |  | ||||
| @ -1,17 +0,0 @@ | |||||
| Website Coupon Code v10 |  | ||||
| ======================= |  | ||||
| Manage Website Coupon Codes & Its Operations |  | ||||
| 
 |  | ||||
| Features |  | ||||
| ======== |  | ||||
| 
 |  | ||||
| * Create and configure vouchers for providing a discount. |  | ||||
| * Generate a unique code for each coupon. |  | ||||
| * Limit the usage of coupons by each user. |  | ||||
| * Provide a validity for the coupons. |  | ||||
| * History of coupons used by each customer. |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| Credits |  | ||||
| ======= |  | ||||
| Cybrosys Techno Solutions, <http://www.cybrosys.com> |  | ||||
| @ -1,25 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Cybrosys Technologies(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| 
 |  | ||||
| import models |  | ||||
| import controllers |  | ||||
| @ -1,42 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Cybrosys Technologies(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| { |  | ||||
|     'name': 'Website Coupon Code', |  | ||||
|     'version': '10.0.1.0.0', |  | ||||
|     'category': 'Website', |  | ||||
|     'sequence': 56, |  | ||||
|     'summary': 'Manage Website Coupon Codes & Its Operations', |  | ||||
|     'author': 'Cybrosys Techno Solutions', |  | ||||
|     'company': 'Cybrosys Techno Solutions', |  | ||||
|     'website': 'http://www.cybrosys.com', |  | ||||
|     'depends': ['sale', 'website_sale'], |  | ||||
|     'data': [ |  | ||||
|         'data/product_data.xml', |  | ||||
|         'views/gift_voucher.xml', |  | ||||
|         'views/applied_coupons.xml', |  | ||||
|         'views/templates.xml', |  | ||||
|     ], |  | ||||
|     'installable': True, |  | ||||
|     'license': 'LGPL-3', |  | ||||
|     'auto_install': False, |  | ||||
| } |  | ||||
| @ -1,24 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Cybrosys Technologies(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| 
 |  | ||||
| import main |  | ||||
| @ -1,138 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Cybrosys Technologies(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| 
 |  | ||||
| from odoo import http, tools, _ |  | ||||
| from odoo.http import request |  | ||||
| from datetime import datetime |  | ||||
| from dateutil import parser |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| class WebsiteCoupon(http.Controller): |  | ||||
| 
 |  | ||||
|     @http.route(['/shop/cart'], type='http', auth="public", website=True) |  | ||||
|     def cart(self, **post): |  | ||||
|         """This function is overwritten because we need to pass the value 'coupon_not_available' |  | ||||
|         to the template, inorder to show the error message to the user that, 'this coupon is not available'. """ |  | ||||
| 
 |  | ||||
|         order = request.website.sale_get_order() |  | ||||
|         if order: |  | ||||
|             from_currency = order.company_id.currency_id |  | ||||
|             to_currency = order.pricelist_id.currency_id |  | ||||
|             compute_currency = lambda price: from_currency.compute(price, to_currency) |  | ||||
|         else: |  | ||||
|             compute_currency = lambda price: price |  | ||||
| 
 |  | ||||
|         values = { |  | ||||
|             'website_sale_order': order, |  | ||||
|             'compute_currency': compute_currency, |  | ||||
|             'suggested_products': [], |  | ||||
|         } |  | ||||
|         if order: |  | ||||
|             _order = order |  | ||||
|             if not request.env.context.get('pricelist'): |  | ||||
|                 _order = order.with_context(pricelist=order.pricelist_id.id) |  | ||||
|             values['suggested_products'] = _order._cart_accessories() |  | ||||
| 
 |  | ||||
|         if post.get('type') == 'popover': |  | ||||
|             return request.render("website_sale.cart_popover", values) |  | ||||
| 
 |  | ||||
|         if post.get('code_not_available'): |  | ||||
|             values['code_not_available'] = post.get('code_not_available') |  | ||||
|         elif post.get('coupon_not_available'): |  | ||||
|             values['coupon_not_available'] = post.get('coupon_not_available') |  | ||||
| 
 |  | ||||
|         return request.render("website_sale.cart", values) |  | ||||
| 
 |  | ||||
|     @http.route(['/shop/gift_coupon'], type='http', auth="public", website=True) |  | ||||
|     def gift_coupon(self, promo_voucher, **post): |  | ||||
|         """This function will be executed when we click the apply button of the voucher code in the website. |  | ||||
|         It will verify the validity and availability of that coupon. If it can be applied, the coupon  will be applied |  | ||||
|         and coupon balance will also be updated""" |  | ||||
| 
 |  | ||||
|         curr_user = request.env.user |  | ||||
|         coupon = request.env['gift.coupon'].sudo().search([('code', '=', promo_voucher)], limit=1) |  | ||||
|         flag = True |  | ||||
|         if coupon and coupon.total_avail > 0: |  | ||||
|             applied_coupons = request.env['partner.coupon'].sudo().search([('coupon', '=', promo_voucher), |  | ||||
|                                                                            ('partner_id', '=', curr_user.partner_id.id)], limit=1) |  | ||||
| 
 |  | ||||
|         # checking voucher date and limit for each user for this coupon--------------------- |  | ||||
|             if coupon.partner_id: |  | ||||
|                 if curr_user.partner_id.id != coupon.partner_id.id: |  | ||||
|                     flag = False |  | ||||
|             today = datetime.now().date() |  | ||||
|             if flag and applied_coupons.number < coupon.limit and today <= parser.parse(coupon.voucher.expiry_date).date(): |  | ||||
|                 # checking coupon validity --------------------------- |  | ||||
|                 #    checking date of coupon ------------ |  | ||||
|                 if coupon.start_date and coupon.end_date: |  | ||||
|                     if today < parser.parse(coupon.start_date).date() or today > parser.parse(coupon.end_date).date(): |  | ||||
|                         flag = False |  | ||||
|                 elif coupon.start_date: |  | ||||
|                     if today < parser.parse(coupon.start_date).date(): |  | ||||
|                         flag = False |  | ||||
|                 elif coupon.end_date: |  | ||||
|                     if today > parser.parse(coupon.end_date).date(): |  | ||||
|                         flag = False |  | ||||
|             else: |  | ||||
|                 flag = False |  | ||||
|         else: |  | ||||
|             flag = False |  | ||||
|         if flag: |  | ||||
|             product_id = coupon.voucher.product_id |  | ||||
|             voucher_val = coupon.voucher_val |  | ||||
|             type = coupon.type |  | ||||
|             coupon_product = request.env['product.product'].sudo().search([('name', '=', 'Gift Coupon')], limit=1) |  | ||||
|             if coupon_product: |  | ||||
|                 order = request.website.sale_get_order(force_create=1) |  | ||||
|                 flag_product = False |  | ||||
|                 for line in order.order_line: |  | ||||
|                     if line.product_id.name == 'Gift Coupon': |  | ||||
|                         flag = False |  | ||||
|                         break |  | ||||
|                     if line.product_id.name == product_id.name: |  | ||||
|                         flag_product = True |  | ||||
|                 if flag and flag_product: |  | ||||
|                     if type == 'fixed': |  | ||||
|                         res = coupon_product.product_tmpl_id.write({'list_price': -voucher_val}) |  | ||||
|                     elif type == 'percentage': |  | ||||
|                         amount = 0 |  | ||||
|                         for line in order.order_line: |  | ||||
|                             amount += line.product_uom_qty * line.price_unit |  | ||||
|                             amount_final = (voucher_val/100) * amount |  | ||||
|                             res = coupon_product.product_tmpl_id.write({'list_price': -amount_final}) |  | ||||
|                     value = order._cart_update(product_id=coupon_product.id, set_qty=1, add_qty=1) |  | ||||
| 
 |  | ||||
|                     # updating coupon balance-------------- |  | ||||
|                     total = coupon.total_avail - 1 |  | ||||
|                     coupon.write({'total_avail': total}) |  | ||||
|                     # creating a record for this partner, i.e he is used this coupen once----------- |  | ||||
|                     if not applied_coupons: |  | ||||
|                         res = curr_user.partner_id.write({'applied_coupon': [(0, 0, {'partner_id': curr_user.partner_id.id, |  | ||||
|                                                                                      'coupon': coupon.code, |  | ||||
|                                                                                      'number': 1})]}) |  | ||||
|                     else: |  | ||||
|                         applied_coupons.write({'number': applied_coupons.number + 1}) |  | ||||
|         else: |  | ||||
|             return request.redirect("/shop/cart?coupon_not_available=1") |  | ||||
| 
 |  | ||||
|         return request.redirect("/shop/cart") |  | ||||
| @ -1,8 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> |  | ||||
| <odoo noupdate="1"> |  | ||||
|     <record model="product.product" id="discount_product"> |  | ||||
|         <field name="name">Gift Coupon</field> |  | ||||
|         <!--<field name="type">service</field>--> |  | ||||
|     </record> |  | ||||
| 
 |  | ||||
| </odoo> |  | ||||
| @ -1,24 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Cybrosys Technologies(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| 
 |  | ||||
| import gift_voucher |  | ||||
| @ -1,84 +0,0 @@ | |||||
| # -*- coding: utf-8 -*- |  | ||||
| ############################################################################## |  | ||||
| # |  | ||||
| #    Cybrosys Technologies Pvt. Ltd. |  | ||||
| #    Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |  | ||||
| #    Author: Cybrosys Technologies(<http://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 <http://www.gnu.org/licenses/>. |  | ||||
| # |  | ||||
| ############################################################################## |  | ||||
| 
 |  | ||||
| import string |  | ||||
| import random |  | ||||
| from odoo import models, fields, api, _ |  | ||||
| from odoo.exceptions import UserError |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| class GiftVoucher(models.Model): |  | ||||
|     _name = 'gift.voucher' |  | ||||
| 
 |  | ||||
|     name = fields.Char(string="Name", required=True) |  | ||||
|     product_id = fields.Many2one('product.product', string="Product", required=True) |  | ||||
|     min_value = fields.Integer(string="Minimum Voucher Value", required=True) |  | ||||
|     max_value = fields.Integer(string="Maximum Voucher Value", required=True) |  | ||||
|     expiry_date = fields.Date(string="Expiry Date", required=True) |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| class GiftCoupon(models.Model): |  | ||||
|     _name = 'gift.coupon' |  | ||||
| 
 |  | ||||
|     def get_code(self): |  | ||||
|         size = 7 |  | ||||
|         chars = string.ascii_uppercase + string.digits |  | ||||
|         return ''.join(random.choice(chars) for _ in range(size)) |  | ||||
| 
 |  | ||||
|     _sql_constraints = [ |  | ||||
|         ('name_uniq', 'unique (code)', "Code already exists !"), |  | ||||
|     ] |  | ||||
| 
 |  | ||||
|     name = fields.Char(string="Name", required=True) |  | ||||
|     code = fields.Char(string="Code", default=get_code) |  | ||||
|     voucher = fields.Many2one('gift.voucher', string="Voucher", required=True) |  | ||||
|     start_date = fields.Date(string="Start Date") |  | ||||
|     end_date = fields.Date(string="End Date") |  | ||||
|     partner_id = fields.Many2one('res.partner', string="Limit to a Single Partner") |  | ||||
|     limit = fields.Integer(string="Total Available For Each User", default=1) |  | ||||
|     total_avail = fields.Integer(string="Total Available", default=1) |  | ||||
| 
 |  | ||||
|     voucher_val = fields.Float(string="Voucher Value") |  | ||||
|     type = fields.Selection([ |  | ||||
|         ('fixed', 'Fixed Amount'), |  | ||||
|         ('percentage', 'Percentage'), |  | ||||
|         ], store=True, default='fixed') |  | ||||
| 
 |  | ||||
|     @api.onchange('voucher_val') |  | ||||
|     def check_val(self): |  | ||||
|         if self.voucher_val > self.voucher.max_value or self.voucher_val < self.voucher.min_value: |  | ||||
|             raise UserError(_("Please check the voucher value")) |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| class CouponPartner(models.Model): |  | ||||
|     _name = 'partner.coupon' |  | ||||
| 
 |  | ||||
|     partner_id = fields.Many2one('res.partner', string="Partner") |  | ||||
|     coupon = fields.Char(string="Coupon Applied") |  | ||||
|     number = fields.Integer(string="Number of Times Used") |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| class PartnerExtended(models.Model): |  | ||||
|     _inherit = 'res.partner' |  | ||||
| 
 |  | ||||
|     applied_coupon = fields.One2many('partner.coupon', 'partner_id', string="Coupons Applied") |  | ||||
| Before Width: | Height: | Size: 91 KiB | 
| Before Width: | Height: | Size: 61 KiB | 
| Before Width: | Height: | Size: 81 KiB | 
| Before Width: | Height: | Size: 50 KiB | 
| Before Width: | Height: | Size: 87 KiB | 
| Before Width: | Height: | Size: 52 KiB | 
| Before Width: | Height: | Size: 23 KiB | 
| @ -1,140 +0,0 @@ | |||||
| <section class="oe_container"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <h2 class="oe_slogan">Website Coupon</h2> |  | ||||
|         <h3 class="oe_slogan">..Manage Your Coupon Codes Simply..</h3> |  | ||||
|         <h4 class="oe_slogan">Cybrosys Technologies , www.cybrosys.com</h4> |  | ||||
|         <div> |  | ||||
|             <p class='oe_mt32' style="text-align: center;"> |  | ||||
|             This module by Cybrosys Technologies allows us to manage our customers in a better way by providing |  | ||||
|                 discount coupons to our special customers, and thereby increase the sales. |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container oe_dark"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <h2 style="color:#875A7B;">Features</h2> |  | ||||
|         <div class="oe_span6 text-justify oe_mt32"> |  | ||||
|             <p class="oe_mb32" style="margin-left:48px;"> |  | ||||
|             ☛ Create and configure vouchers for providing a discount. |  | ||||
|             </p> |  | ||||
|             <p class="oe_mb32" style="margin-left:48px;"> |  | ||||
|             ☛ Generate a unique code for each coupon. |  | ||||
|             </p> |  | ||||
|             <p class="oe_mb32" style="margin-left:48px;"> |  | ||||
|             ☛ Limit the usage of coupons by each user. |  | ||||
|             </p> |  | ||||
|             <p class="oe_mb32" style="margin-left:48px;"> |  | ||||
|             ☛ Provide a validity for the coupons. |  | ||||
|             </p> |  | ||||
|             <p class="oe_mb32" style="margin-left:48px;"> |  | ||||
|             ☛ History of coupons used by each customer. |  | ||||
|             </p> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <h3 class="oe_slogan">Enable the voucher option from the website.</h3> |  | ||||
|             <div class="oe_demo oe_screenshot"> |  | ||||
|             	<img src="enable_voucher.png"> |  | ||||
|             </div> |  | ||||
|             <p class="oe_mt32" style="margin-left:48px;"> |  | ||||
|             When we added some product to our cart, under the 'Customize' menu, we can see the 'Voucher Code' option. |  | ||||
|             </p> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container oe_dark"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <h3 class="oe_slogan">Apply the coupon by providing the secret code.</h3> |  | ||||
|             <div class="oe_demo oe_screenshot"> |  | ||||
|             	<img src="apply_coupon.png"> |  | ||||
|             </div> |  | ||||
|             <p class="oe_mt32" style="margin-left:48px;"> |  | ||||
|             After enabling the 'Voucher Code' option, we can enter our coupon code. If that code is valid, |  | ||||
|                 it will be applied to the order. |  | ||||
|             </p> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <h3 class="oe_slogan">Create and configure vouchers.</h3> |  | ||||
|             <div class="oe_demo oe_screenshot"> |  | ||||
|             	<img src="voucher.png"> |  | ||||
|             </div> |  | ||||
|             <p class="oe_mt32" style="margin-left:48px;"> |  | ||||
|             For creating a voucher, we need to specify a product, that means, this voucher will be applicable only |  | ||||
|                 if the customer has selected this product in his order. The minimum and maximum voucher values can be set here. |  | ||||
|                 The expiry date indicates the validity of this voucher. |  | ||||
|             </p> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container oe_dark"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <h3 class="oe_slogan">Create and configure coupons and codes.</h3> |  | ||||
|             <div class="oe_demo oe_screenshot"> |  | ||||
|             	<img src="coupon.png"> |  | ||||
|             </div> |  | ||||
|             <p class="oe_mt32" style="margin-left:48px;"> |  | ||||
|             When we create the coupon, a unique, auto-generated and editable code will be there for each coupon. There are mainly |  | ||||
|                 two types of coupons, fixed and percentage. The fixed type is used to deduct a fixed amount from the order. The |  | ||||
|                 percentage type will deduct a certain percentage of amount from the order. |  | ||||
|                 </p> |  | ||||
|             <p class="oe_mt32" style="margin-left:48px;">The total number of available coupons |  | ||||
|                 and the number of times one user can use this coupon can be set here. It is also possible to limit this coupon to a single customer, |  | ||||
|                 i.e, only one customer can use this coupon. |  | ||||
|             </p> |  | ||||
|         </div> |  | ||||
|     </div> |  | ||||
| </section> |  | ||||
| 
 |  | ||||
| <section class="oe_container"> |  | ||||
|     <div class="oe_row oe_spaced"> |  | ||||
|         <div class="oe_span12"> |  | ||||
|             <h3 class="oe_slogan">Coupon History.</h3> |  | ||||
|             <div class="oe_demo oe_screenshot"> |  | ||||
|             	<img src="history.png"> |  | ||||
|             </div> |  | ||||
|             <p class="oe_mt32" style="margin-left:48px;"> |  | ||||
|             Under the 'Coupon History' menu, we can see the details of coupons used by all the customers. |  | ||||
|             </p> |  | ||||
|         </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> |  | ||||
| Before Width: | Height: | Size: 70 KiB | 
| @ -1,46 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> |  | ||||
| <odoo> |  | ||||
|     <data> |  | ||||
|         <record id="applied_coupons_view" model="ir.ui.view"> |  | ||||
|             <field name="name">applied_coupons_form</field> |  | ||||
|             <field name="model">res.partner</field> |  | ||||
|             <field name="inherit_id" ref="base.view_partner_form"/> |  | ||||
|             <field name="arch" type="xml"> |  | ||||
|                 <xpath expr="//page[@name='sales_purchases']" position="after"> |  | ||||
|                     <page name="coupon_applied" string="Applied Coupons"> |  | ||||
|                         <field name="applied_coupon" readonly="1"> |  | ||||
|                             <tree> |  | ||||
|                                 <field name="partner_id" invisible="1"/> |  | ||||
|                                 <field name="coupon"/> |  | ||||
|                                 <field name="number"/> |  | ||||
|                             </tree> |  | ||||
|                         </field> |  | ||||
|                     </page> |  | ||||
|                 </xpath> |  | ||||
| 			  </field> |  | ||||
| 		</record> |  | ||||
| 
 |  | ||||
|         <record id="gift_coupon_history_tree" model="ir.ui.view"> |  | ||||
|             <field name="name">Gift Coupon History</field> |  | ||||
|             <field name="model">partner.coupon</field> |  | ||||
|             <field name="arch" type="xml"> |  | ||||
|                <tree> |  | ||||
|                    <field name="partner_id" /> |  | ||||
|                    <field name="coupon" /> |  | ||||
|                    <field name="number" /> |  | ||||
|                </tree> |  | ||||
|             </field> |  | ||||
|         </record> |  | ||||
| 
 |  | ||||
|         <record id="action_gift_coupon_history" model="ir.actions.act_window"> |  | ||||
|             <field name="name">Gift Coupons History</field> |  | ||||
|             <field name="res_model">partner.coupon</field> |  | ||||
|             <field name="type">ir.actions.act_window</field> |  | ||||
|             <field name="view_type">form</field> |  | ||||
|             <field name="view_id" ref="gift_coupon_history_tree"/> |  | ||||
|             <field name="view_mode">tree</field> |  | ||||
|         </record> |  | ||||
| 
 |  | ||||
|         <menuitem name="Coupon History" id="gift_coupon_history" action="action_gift_coupon_history" parent="website_coupon.gift_coupon_main"/> |  | ||||
|     </data> |  | ||||
| </odoo> |  | ||||
| @ -1,121 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> |  | ||||
| <odoo> |  | ||||
|     <data> |  | ||||
|         <record id="gift_voucher_form" model="ir.ui.view"> |  | ||||
|             <field name="name">Gift Voucher</field> |  | ||||
|             <field name="model">gift.voucher</field> |  | ||||
|             <field name="arch" type="xml"> |  | ||||
|                <form> |  | ||||
|                    <sheet> |  | ||||
|                        <group> |  | ||||
|                            <group> |  | ||||
|                                <field name="name" /> |  | ||||
|                                <field name="product_id" /> |  | ||||
|                                <field name="min_value" /> |  | ||||
|                                <field name="max_value" /> |  | ||||
|                                <field name="expiry_date" /> |  | ||||
|                            </group> |  | ||||
|                        </group> |  | ||||
|                    </sheet> |  | ||||
|                </form> |  | ||||
|             </field> |  | ||||
|         </record> |  | ||||
| 
 |  | ||||
|         <record id="gift_voucher_tree" model="ir.ui.view"> |  | ||||
|             <field name="name">Gift Voucher</field> |  | ||||
|             <field name="model">gift.voucher</field> |  | ||||
|             <field name="arch" type="xml"> |  | ||||
|                <tree> |  | ||||
|                    <field name="name" /> |  | ||||
|                    <field name="product_id" /> |  | ||||
|                    <field name="min_value" /> |  | ||||
|                    <field name="max_value" /> |  | ||||
|                    <field name="expiry_date" /> |  | ||||
|                </tree> |  | ||||
|             </field> |  | ||||
|         </record> |  | ||||
| 
 |  | ||||
|         <record id="gift_coupon_form" model="ir.ui.view"> |  | ||||
|             <field name="name">Gift Coupon</field> |  | ||||
|             <field name="model">gift.coupon</field> |  | ||||
|             <field name="arch" type="xml"> |  | ||||
|                <form> |  | ||||
|                    <sheet> |  | ||||
|                        <div class="oe_title"> |  | ||||
|                            <label for="name" string="Name" /> |  | ||||
|                             <h1> |  | ||||
|                                 <field name="name"/> |  | ||||
|                             </h1> |  | ||||
|                         </div> |  | ||||
|                        <group> |  | ||||
|                            <group> |  | ||||
|                                <field name="code" /> |  | ||||
|                                <field name="start_date" /> |  | ||||
|                            </group> |  | ||||
|                            <group> |  | ||||
|                                <field name="voucher" /> |  | ||||
|                                <field name="end_date" /> |  | ||||
|                            </group> |  | ||||
|                        </group> |  | ||||
|                        <group string="Conditions"> |  | ||||
|                            <group> |  | ||||
|                                <field name="total_avail" /> |  | ||||
|                            </group> |  | ||||
|                            <group> |  | ||||
|                                <field name="partner_id" /> |  | ||||
|                                <field name="limit" /> |  | ||||
|                            </group> |  | ||||
|                        </group> |  | ||||
|                        <group string="Pricing"> |  | ||||
|                            <group> |  | ||||
|                                <field name="voucher_val" /> |  | ||||
|                            </group> |  | ||||
|                            <group> |  | ||||
|                                <field name="type" /> |  | ||||
|                            </group> |  | ||||
|                        </group> |  | ||||
|                    </sheet> |  | ||||
|                </form> |  | ||||
|             </field> |  | ||||
|         </record> |  | ||||
| 
 |  | ||||
|         <record id="gift_coupon_tree" model="ir.ui.view"> |  | ||||
|             <field name="name">Gift Coupon</field> |  | ||||
|             <field name="model">gift.coupon</field> |  | ||||
|             <field name="arch" type="xml"> |  | ||||
|                <tree> |  | ||||
|                    <field name="name" /> |  | ||||
|                    <field name="code" /> |  | ||||
|                    <field name="voucher" /> |  | ||||
|                    <field name="start_date" /> |  | ||||
|                    <field name="end_date" /> |  | ||||
|                    <field name="partner_id" /> |  | ||||
|                    <field name="total_avail" /> |  | ||||
|                    <field name="type" /> |  | ||||
|                </tree> |  | ||||
|             </field> |  | ||||
|         </record> |  | ||||
| 
 |  | ||||
|         <record id="action_gift_voucher" model="ir.actions.act_window"> |  | ||||
|             <field name="name">Gift Vouchers</field> |  | ||||
|             <field name="res_model">gift.voucher</field> |  | ||||
|             <field name="type">ir.actions.act_window</field> |  | ||||
|             <field name="view_type">form</field> |  | ||||
|             <field name="view_id" ref="gift_voucher_tree"/> |  | ||||
|             <field name="view_mode">tree,form</field> |  | ||||
|         </record> |  | ||||
| 
 |  | ||||
|         <record id="action_gift_coupon" model="ir.actions.act_window"> |  | ||||
|             <field name="name">Generate Gift Coupons</field> |  | ||||
|             <field name="res_model">gift.coupon</field> |  | ||||
|             <field name="type">ir.actions.act_window</field> |  | ||||
|             <field name="view_type">form</field> |  | ||||
|             <field name="view_id" ref="gift_coupon_tree"/> |  | ||||
|             <field name="view_mode">tree,form</field> |  | ||||
|         </record> |  | ||||
| 
 |  | ||||
|         <menuitem name="Gift Voucher" id="gift_voucher" action="action_gift_voucher" parent="sales_team.menu_sale_config"/> |  | ||||
|         <menuitem name="Gift Coupons" id="gift_coupon_main" parent="sales_team.menu_base_partner"/> |  | ||||
|         <menuitem name="Gift Coupon" id="gift_coupon" action="action_gift_coupon" parent="gift_coupon_main"/> |  | ||||
|     </data> |  | ||||
| </odoo> |  | ||||
| @ -1,89 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8" ?> |  | ||||
| <odoo> |  | ||||
|     <template id="voucher_code" inherit_id="website_sale.cart" active="False" customize_show="True" name="Voucher Code"> |  | ||||
|         <xpath expr="//div[@id='right_column']" position="inside"> |  | ||||
|             <h4>Voucher Code</h4> |  | ||||
|             <p> |  | ||||
|                         Have a voucher code? Fill this field and apply. |  | ||||
|                       </p> |  | ||||
|             <t t-if="coupon_not_available"> |  | ||||
|                 <p class="bg-warning">This gift code is not available</p> |  | ||||
|             </t> |  | ||||
|             <form t-if="website_sale_order and website_sale_order.website_order_line" action="/shop/gift_coupon" method="post" class="mb32"> |  | ||||
|                 <input type="hidden" name="csrf_token" t-att-value="request.csrf_token()" /> |  | ||||
|                 <div class="input-group"> |  | ||||
|                     <input name="promo_voucher" class="form-control" type="text" placeholder="code..." t-att-value="website_sale_order.pricelist_id.code or None" /> |  | ||||
|                     <div class="input-group-btn"> |  | ||||
|                         <a class="btn btn-default a-submit">Apply</a> |  | ||||
|                     </div> |  | ||||
|                 </div> |  | ||||
|             </form> |  | ||||
|         </xpath> |  | ||||
|     </template> |  | ||||
| 
 |  | ||||
|     <template id="cart_lines_extended" inherit_id="website_sale.cart_lines"> |  | ||||
|         <xpath expr="//table[@id='cart_products']" position="replace"> |  | ||||
|         <table class="table table-striped table-condensed js_cart_lines" id="cart_products" t-if="website_sale_order and website_sale_order.website_order_line"> |  | ||||
|             <thead> |  | ||||
|                 <tr> |  | ||||
|                     <th width="100">Product</th> |  | ||||
|                     <th></th> |  | ||||
|                     <th width="130" class="text-center">Quantity</th> |  | ||||
|                     <th width="100" class="text-center">Price</th> |  | ||||
|                 </tr> |  | ||||
|             </thead> |  | ||||
|             <tbody> |  | ||||
|                 <t t-foreach="website_sale_order.website_order_line" t-as="line"> |  | ||||
|                     <tr> |  | ||||
|                         <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td> |  | ||||
|                         <td align="center" t-if="line.product_id.product_tmpl_id"> |  | ||||
|                             <span t-field="line.product_id.image_small" t-options="{'widget': 'image', 'class': 'img-rounded'}" /> |  | ||||
|                         </td> |  | ||||
|                         <td t-if="line.product_id.product_tmpl_id"> |  | ||||
|                             <div> |  | ||||
|                                 <a t-attf-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }"> |  | ||||
|                                     <strong t-esc="line.product_id.with_context(display_default_code=False).display_name" /> |  | ||||
|                                 </a> |  | ||||
|                             </div> |  | ||||
|                             <div class="text-muted"> |  | ||||
|                                 <t t-foreach="line.name.splitlines()[1:]" t-as="name_line"> |  | ||||
|                                     <span><t t-esc="name_line"/></span><br/> |  | ||||
|                                 </t> |  | ||||
|                             </div> |  | ||||
|                             <t t-if="line.product_id.display_name != 'Gift Coupon'"> |  | ||||
|                                 <a href='#' class='js_delete_product no-decoration'> <small><i class='fa fa-trash-o'></i> Remove</small></a> |  | ||||
|                             </t> |  | ||||
|                         </td> |  | ||||
|                         <td class="text-center" id="td-qty"> |  | ||||
|                             <t t-if="line.product_id.display_name == 'Gift Coupon'"> |  | ||||
|                                 <a href='#' class='js_delete_product no-decoration'> <small><i class='fa fa-trash-o'></i> Remove</small></a> |  | ||||
|                                 <div class="input-group oe_website_spinner"> |  | ||||
|                                     <input type="hidden" class="js_quantity form-control" t-att-data-line-id="line.id" t-att-data-product-id="line.product_id.id" t-att-value="int(line.product_uom_qty)" /> |  | ||||
|                                 </div> |  | ||||
|                             </t> |  | ||||
|                             <t t-if="line.product_id.display_name != 'Gift Coupon'"> |  | ||||
|                                 <div class="input-group oe_website_spinner"> |  | ||||
|                                     <a t-attf-href="#" class="mb8 input-group-addon js_add_cart_json" data-no-instant=""> |  | ||||
|                                         <i class="fa fa-minus"></i> |  | ||||
|                                     </a> |  | ||||
|                                     <input type="text" class="js_quantity form-control" t-att-data-line-id="line.id" t-att-data-product-id="line.product_id.id" t-att-value="int(line.product_uom_qty)" /> |  | ||||
|                                     <a t-attf-href="#" class="mb8 input-group-addon float_left js_add_cart_json" data-no-instant=""> |  | ||||
|                                         <i class="fa fa-plus"></i> |  | ||||
|                                     </a> |  | ||||
|                                 </div> |  | ||||
|                             </t> |  | ||||
|                         </td> |  | ||||
|                         <td class="text-center" id="td-price" name="price"> |  | ||||
|                             <t t-if="(compute_currency(line.product_id.lst_price) - line.price_reduce ) > 0.01  and website.get_current_pricelist().discount_policy=='without_discount'"> |  | ||||
|                                 <del t-attf-class="#{'text-danger mr8'}" style="white-space: nowrap;" t-esc="compute_currency(line.product_id.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}" /> |  | ||||
|                             </t> |  | ||||
|                             <span t-field="line.price_reduce_taxexcl" style="white-space: nowrap;" t-options="{'widget': 'monetary', 'from_currency': website_sale_order.pricelist_id.currency_id, 'display_currency': website.currency_id}" groups="sale.group_show_price_subtotal" /> |  | ||||
|                             <span t-field="line.price_reduce_taxinc" style="white-space: nowrap;" t-options="{'widget': 'monetary', 'from_currency': website_sale_order.pricelist_id.currency_id, 'display_currency': website.currency_id}" groups="sale.group_show_price_total" /> |  | ||||
|                         </td> |  | ||||
|                     </tr> |  | ||||
|                 </t> |  | ||||
|             </tbody> |  | ||||
|         </table> |  | ||||
|         </xpath> |  | ||||
|     </template> |  | ||||
| </odoo> |  | ||||