| @ -0,0 +1,42 @@ | |||||
|  | .. image:: https://img.shields.io/badge/license-LGPL--3-green.svg | ||||
|  |     :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html | ||||
|  |     :alt: License: LGPL-3 | ||||
|  | 
 | ||||
|  | Warranty Management | ||||
|  | =================== | ||||
|  | Warranty management used to manage warranty of product | ||||
|  | 
 | ||||
|  | License | ||||
|  | ------- | ||||
|  | General Public License, Version 3 (AGPL v3). | ||||
|  | (https://www.gnu.org/licenses/lgpl-3.0-standalone.html) | ||||
|  | 
 | ||||
|  | Company | ||||
|  | ------- | ||||
|  | * `Cybrosys Techno Solutions <https://cybrosys.com/>`__ | ||||
|  | 
 | ||||
|  | Credits | ||||
|  | ------- | ||||
|  | * Developers: (V16)	Subina P Contact: odoo@cybrosys.com | ||||
|  | 
 | ||||
|  | Contacts | ||||
|  | -------- | ||||
|  | * Mail Contact : odoo@cybrosys.com | ||||
|  | * Website : https://cybrosys.com | ||||
|  | 
 | ||||
|  | Bug Tracker | ||||
|  | ----------- | ||||
|  | Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. | ||||
|  | 
 | ||||
|  | Maintainer | ||||
|  | ========== | ||||
|  | .. image:: https://cybrosys.com/images/logo.png | ||||
|  |    :target: https://cybrosys.com | ||||
|  | 
 | ||||
|  | This module is maintained by Cybrosys Technologies. | ||||
|  | 
 | ||||
|  | For support and more information, please visit `Our Website <https://cybrosys.com/>`__ | ||||
|  | 
 | ||||
|  | Further information | ||||
|  | =================== | ||||
|  | HTML Description: `<static/description/index.html>`__ | ||||
| @ -0,0 +1,23 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from . import controllers | ||||
|  | from . import models | ||||
| @ -0,0 +1,57 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | { | ||||
|  |     'name': 'Warranty Management', | ||||
|  |     'version': '16.0.1.0.0', | ||||
|  |     'category': 'Sale', | ||||
|  |     'summary': 'Warranty management used to manage warranty of product', | ||||
|  |     'description': """The "Warranty Management" module enables businesses to  | ||||
|  |     efficiently track product warranties, including expiration dates and  | ||||
|  |     associated customer details. Seamlessly integrated with sales processes, | ||||
|  |     it facilitates easy warranty claim creation from sales orders and enhances | ||||
|  |     customer experience with website warranty registration.""", | ||||
|  |     'author': 'Cybrosys Techno Solutions', | ||||
|  |     'company': 'Cybrosys Techno Solutions', | ||||
|  |     'maintainer': 'Cybrosys Techno Solutions', | ||||
|  |     'website': "https://www.cybrosys.com", | ||||
|  |     'depends': ['mail', 'sale', 'website'], | ||||
|  |     'data': [ | ||||
|  |         'data/website_warranty_menu_data.xml', | ||||
|  |         'security/ir.model.access.csv', | ||||
|  |         'views/product_template_views.xml', | ||||
|  |         'views/sale_order_views.xml', | ||||
|  |         'views/website_registration_templates.xml', | ||||
|  |         'views/warranty_claim_views.xml', | ||||
|  |         'views/portal_templates.xml', | ||||
|  |     ], | ||||
|  |     'assets': { | ||||
|  |         'web.assets_frontend': [ | ||||
|  |             'product_warranty_management_odoo/static/src/js/website_registration.js', | ||||
|  |             'product_warranty_management_odoo/static/src/css/warranty.css', | ||||
|  |         ], | ||||
|  |     }, | ||||
|  |     'images': ['static/description/banner.png'], | ||||
|  |     'license': 'LGPL-3', | ||||
|  |     'installable': True, | ||||
|  |     'application': False, | ||||
|  |     'auto_install': False | ||||
|  | } | ||||
| @ -0,0 +1,23 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from . import portal | ||||
|  | from . import product_warranty_management_odoo | ||||
| @ -0,0 +1,55 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from odoo import http | ||||
|  | from odoo.addons.portal.controllers.portal import CustomerPortal | ||||
|  | from odoo.http import request | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class PortalAccount(CustomerPortal): | ||||
|  |     """Inherited class to add portal menu for warranty claims""" | ||||
|  |     def _prepare_home_portal_values(self, counters): | ||||
|  |         """ Super the function to add the warranty claim menu""" | ||||
|  |         values = super()._prepare_home_portal_values(counters) | ||||
|  |         user = request.env.user.partner_id.id | ||||
|  |         claim_count = (request.env['warranty.claim']. | ||||
|  |                        search_count([('customer_id', '=', user)])) | ||||
|  |         values['claim_count'] = claim_count | ||||
|  |         return values | ||||
|  | 
 | ||||
|  |     @http.route('/my/claims', type='http', auth="user", website=True) | ||||
|  |     def my_claims(self): | ||||
|  |         """ Define the action to open the warranty claim tree view""" | ||||
|  |         user = request.env.user.partner_id.id | ||||
|  |         claims = (request.env['warranty.claim'].sudo(). | ||||
|  |                   search([('customer_id', '=', user)])) | ||||
|  |         # Extract the required fields and store them in a list of dictionaries | ||||
|  |         claim_data = [] | ||||
|  |         for claim in claims: | ||||
|  |             claim_data.append({ | ||||
|  |                 'customer_id': claim.customer_id.name, | ||||
|  |                 'product_id': claim.product_id.name, | ||||
|  |                 'sale_order_id': claim.sale_order_id.name, | ||||
|  |                 'status': claim.state, | ||||
|  |             }) | ||||
|  |         # Pass the claim_data to the template | ||||
|  |         return http.request.render('product_warranty_management_odoo.portal_warranty_claims', | ||||
|  |                                    {'claim_data': claim_data}) | ||||
| @ -0,0 +1,45 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from odoo import http | ||||
|  | from odoo.http import request | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class WarrantyClaimController(http.Controller): | ||||
|  |     """ Class for Warranty claim controller""" | ||||
|  | 
 | ||||
|  |     @http.route('/warranty', type='http', auth="public", website=True) | ||||
|  |     def warranty_claim(self): | ||||
|  |         """ Function to pass the warranty claim details to the warranty | ||||
|  |         claim page""" | ||||
|  |         customers = request.env['res.partner'].sudo().search([]) | ||||
|  |         sale_orders = request.env['sale.order'].sudo().search([]) | ||||
|  |         products = request.env['product.template'].sudo().search([]) | ||||
|  |         return request.render('product_warranty_management_odoo.warranty_claim_page', | ||||
|  |                               {'sale_orders': sale_orders, | ||||
|  |                                'customers': customers, | ||||
|  |                                'products': products}) | ||||
|  | 
 | ||||
|  |     @http.route('/warranty/claim/submit', type='http', auth="public", | ||||
|  |                 website=True) | ||||
|  |     def warranty_claim_submit(self): | ||||
|  |         """Function to render the claim thanks view""" | ||||
|  |         return request.render('product_warranty_management_odoo.claim_thanks_view') | ||||
| @ -0,0 +1,13 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8" ?> | ||||
|  | <odoo> | ||||
|  |     <!--This XML configuration defines a new menu item for the Odoo website with | ||||
|  |     the name "Warranty".--> | ||||
|  |     <data noupdate="1"> | ||||
|  |         <record id="menu_warranty" model="website.menu"> | ||||
|  |             <field name="name">Warranty</field> | ||||
|  |             <field name="url">/warranty</field> | ||||
|  |             <field name="parent_id" ref="website.main_menu"/> | ||||
|  |             <field name="sequence" type="int">50</field> | ||||
|  |         </record> | ||||
|  |     </data> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,6 @@ | |||||
|  | ## Module <product_warranty_management_odoo> | ||||
|  | 
 | ||||
|  | #### 18.05.2024 | ||||
|  | #### Version 16.0.1.0.0 | ||||
|  | #### ADD | ||||
|  | - Initial Commit for Warranty Management | ||||
| @ -0,0 +1,24 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from . import product_template | ||||
|  | from . import sale_order | ||||
|  | from . import warranty_claim | ||||
| @ -0,0 +1,35 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from odoo import fields, models | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class ProductTemplate(models.Model): | ||||
|  |     """Inherited product template to add fields""" | ||||
|  |     _inherit = 'product.template' | ||||
|  | 
 | ||||
|  |     is_warranty_available = fields.Boolean(string="Warranty Available", | ||||
|  |                                            help="Boolean field to check" | ||||
|  |                                                 "the warranty availability") | ||||
|  |     warranty_duration = fields.Integer(string="Warranty Duration (months)", | ||||
|  |                                        help="Warranty duration") | ||||
|  |     warranty_expiry = fields.Date(string="Warranty Expiry Date", | ||||
|  |                                   help="Warranty expiry date") | ||||
| @ -0,0 +1,76 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from dateutil.relativedelta import relativedelta | ||||
|  | from odoo import fields, models | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class SaleOrder(models.Model): | ||||
|  |     """Inherited sale order to super functions to add additional | ||||
|  |     functionalities""" | ||||
|  |     _inherit = 'sale.order' | ||||
|  | 
 | ||||
|  |     is_warranty_check = fields.Boolean(string='Warranty Check', | ||||
|  |                                        help='Check this box if the item has' | ||||
|  |                                             ' warranty.') | ||||
|  | 
 | ||||
|  |     def action_confirm(self): | ||||
|  |         """Call the super method to perform the default confirmation | ||||
|  |         behavior""" | ||||
|  |         super(SaleOrder, self).action_confirm() | ||||
|  |         # Loop through the order lines and check warranty for each product | ||||
|  |         for order in self: | ||||
|  |             for line in order.order_line: | ||||
|  |                 product = line.product_id | ||||
|  |                 if product.is_warranty_available: | ||||
|  |                     self.is_warranty_check = True | ||||
|  |                 else: | ||||
|  |                     self.is_warranty_check = False | ||||
|  |         if (self.order_line. | ||||
|  |                 filtered(lambda x: x.product_id.is_warranty_available)): | ||||
|  |             self.is_warranty_check = True | ||||
|  |         else: | ||||
|  |             self.is_warranty_check = False | ||||
|  | 
 | ||||
|  |     def action_open_smart_tab(self): | ||||
|  |         """ To open warranty smart tab""" | ||||
|  |         domain = [ | ||||
|  |             ('id', 'in', | ||||
|  |              self.order_line.mapped('product_id.product_tmpl_id.id')), | ||||
|  |             ('is_warranty_available', '=', True), | ||||
|  |         ] | ||||
|  |         products_with_warranty = self.env['product.template'].search(domain) | ||||
|  |         for product in products_with_warranty: | ||||
|  |             # Calculate the warranty expiry date based on the sale order date | ||||
|  |             warranty_expiry_date = self.date_order + relativedelta( | ||||
|  |                 months=product.warranty_duration) | ||||
|  |             product.write({'warranty_expiry': warranty_expiry_date}) | ||||
|  |         return { | ||||
|  |             'type': 'ir.actions.act_window', | ||||
|  |             'name': 'Warranty Details', | ||||
|  |             'view_mode': 'tree,form', | ||||
|  |             'res_model': 'product.template', | ||||
|  |             'views': [(self.env.ref('product_warranty_management_odoo.' | ||||
|  |                                     'product_template_view_tree').id, 'tree'), | ||||
|  |                       (self.env.ref('product_warranty_management_odoo.' | ||||
|  |                                     'product_template_view_form').id, 'form')], | ||||
|  |             'domain': domain | ||||
|  |         } | ||||
| @ -0,0 +1,60 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from odoo import fields, models | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class WarrantyClaim(models.Model): | ||||
|  |     """ Warranty claim class to add fields for warranty claim""" | ||||
|  |     _name = 'warranty.claim' | ||||
|  |     _rec_name = "sale_order_id" | ||||
|  |     _description = 'Warranty Claim' | ||||
|  | 
 | ||||
|  |     customer_id = fields.Many2one('res.partner', | ||||
|  |                                   string='Customer Name', | ||||
|  |                                   help="Customer selection", | ||||
|  |                                   required=True) | ||||
|  |     sale_order_id = fields.Many2one('sale.order', | ||||
|  |                                     help="To select the sale order", | ||||
|  |                                     string='Sale Order') | ||||
|  |     product_id = fields.Many2one('product.product', | ||||
|  |                                  string='Product', | ||||
|  |                                  help="To select the product", | ||||
|  |                                  required=True) | ||||
|  |     partner_id = fields.Many2one('res.users', string='User', | ||||
|  |                                  help="To select the partner", | ||||
|  |                                  default=lambda self: self.env.user) | ||||
|  |     state = fields.Selection( | ||||
|  |         [('draft', 'Draft'), ('approved', 'Approved'), | ||||
|  |          ('rejected', 'Rejected')], default='draft', String="Status", | ||||
|  |         help="To select the state") | ||||
|  |     product_expiry_date = fields.Date( | ||||
|  |         string='Product Expiry Date', help="To get the product expiry date", | ||||
|  |         related='product_id.product_tmpl_id.warranty_expiry', | ||||
|  |         store=True, readonly=True) | ||||
|  | 
 | ||||
|  |     def change_status_approved(self): | ||||
|  |         """ Function to change the status of the claim to approved""" | ||||
|  |         self.state = 'approved' | ||||
|  | 
 | ||||
|  |     def change_status_rejected(self): | ||||
|  |         """ Function to change the status of the claim to rejected""" | ||||
|  |         self.state = 'rejected' | ||||
| 
 | 
| After Width: | Height: | Size: 3.6 KiB | 
| After Width: | Height: | Size: 310 B | 
| After Width: | Height: | Size: 1.3 KiB | 
| After Width: | Height: | Size: 1.4 KiB | 
| After Width: | Height: | Size: 576 B | 
| After Width: | Height: | Size: 733 B | 
| After Width: | Height: | Size: 911 B | 
| After Width: | Height: | Size: 1.1 KiB | 
| After Width: | Height: | Size: 1.2 KiB | 
| After Width: | Height: | Size: 673 B | 
| After Width: | Height: | Size: 878 B | 
| After Width: | Height: | Size: 653 B | 
| After Width: | Height: | Size: 905 B | 
| After Width: | Height: | Size: 839 B | 
| After Width: | Height: | Size: 427 B | 
| After Width: | Height: | Size: 627 B | 
| After Width: | Height: | Size: 1.2 KiB | 
| After Width: | Height: | Size: 988 B | 
| After Width: | Height: | Size: 1.2 KiB | 
| After Width: | Height: | Size: 1.5 KiB | 
| After Width: | Height: | Size: 1.1 KiB | 
| After Width: | Height: | Size: 1.9 KiB | 
| After Width: | Height: | Size: 1.1 KiB | 
| After Width: | Height: | Size: 2.1 KiB | 
| After Width: | Height: | Size: 4.4 KiB | 
| After Width: | Height: | Size: 589 B | 
| After Width: | Height: | Size: 3.4 KiB | 
| After Width: | Height: | Size: 1.7 KiB | 
| After Width: | Height: | Size: 2.3 KiB | 
| After Width: | Height: | Size: 967 B | 
| After Width: | Height: | Size: 1.6 KiB | 
| After Width: | Height: | Size: 3.8 KiB | 
| After Width: | Height: | Size: 5.0 KiB | 
| After Width: | Height: | Size: 82 KiB | 
| After Width: | Height: | Size: 18 KiB | 
| After Width: | Height: | Size: 17 KiB | 
| After Width: | Height: | Size: 92 KiB | 
| After Width: | Height: | Size: 82 KiB | 
| After Width: | Height: | Size: 16 KiB | 
| After Width: | Height: | Size: 106 KiB | 
| After Width: | Height: | Size: 85 KiB | 
| After Width: | Height: | Size: 129 KiB | 
| After Width: | Height: | Size: 107 KiB | 
| After Width: | Height: | Size: 132 KiB | 
| After Width: | Height: | Size: 51 KiB | 
| After Width: | Height: | Size: 57 KiB | 
| After Width: | Height: | Size: 111 KiB | 
| After Width: | Height: | Size: 341 KiB | 
| After Width: | Height: | Size: 70 KiB | 
| After Width: | Height: | Size: 59 KiB | 
| After Width: | Height: | Size: 272 KiB | 
| After Width: | Height: | Size: 95 KiB | 
| After Width: | Height: | Size: 19 KiB | 
| @ -0,0 +1,718 @@ | |||||
|  | <div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;"> | ||||
|  |     <!-- TITLE BAR --> | ||||
|  |     <div class="d-flex align-items-center justify-content-between" | ||||
|  |          style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;"> | ||||
|  |         <img src="assets/misc/cybrosys-logo.png" width="42" height="42" | ||||
|  |              style="width: 42px; height: 42px;"/> | ||||
|  |         <div> | ||||
|  |             <div | ||||
|  |                     style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" | ||||
|  |                     class="mr-2"> | ||||
|  |                 <i class="fa fa-check mr-1"></i>Community | ||||
|  |             </div> | ||||
|  |             <div | ||||
|  |                     style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" | ||||
|  |                     class="mr-2"> | ||||
|  |                 <i class="fa fa-check mr-1"></i>Enterprise | ||||
|  |             </div> | ||||
|  |             <div | ||||
|  |                     style="color: #017E84; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" | ||||
|  |                     class="mr-2"> | ||||
|  |                 <i class="fa fa-check mr-1"></i>Odoo.sh | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  |     <!-- END OF TITLE BAR --> | ||||
|  |     <div class="container"> | ||||
|  |         <div class="row"> | ||||
|  |             <div class="col-sm-12 col-md-12 col-lg-12"> | ||||
|  |                 <!-- APP HERO --> | ||||
|  |                 <h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;"> | ||||
|  |                     Warranty Management</h1> | ||||
|  |                 <p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;"> | ||||
|  |                     Detailed | ||||
|  |                     Warranty Management View.</p> | ||||
|  |                 <!-- END OF APP HERO --> | ||||
|  |                 <img src="assets/screenshots/hero.gif" class="img-responsive" | ||||
|  |                      style="width: 100%; margin-left: auto; margin-right: auto;"/> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </div> | ||||
|  | 
 | ||||
|  | <!-- NAVIGATION SECTION --> | ||||
|  | 
 | ||||
|  | <div class="d-flex align-items-center" | ||||
|  |      style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;"> | ||||
|  |     <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |         <img src="assets/misc/compass.png"/> | ||||
|  |     </div> | ||||
|  |     <br/><br/> | ||||
|  |     <h2 class="mt-2" | ||||
|  |         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | ||||
|  |         Explore This | ||||
|  |         Module</h2> | ||||
|  | </div> | ||||
|  | <div class="row my-4" style="font-family: 'Montserrat', sans-serif;"> | ||||
|  |     <div class="col-sm-12 col-md-6 my-3"> | ||||
|  |         <a href="#overview"> | ||||
|  |             <div class="d-flex justify-content-between align-items-center" | ||||
|  |                  style="background-color: #f5f5f5; padding: 30px; width: 100%;"> | ||||
|  |                 <div><br/><br/><br/><br/><br/><br/> | ||||
|  |                     <span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span> | ||||
|  |                     <span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33;  display: block;">Learn | ||||
|  |             more about this | ||||
|  |             module</span> | ||||
|  |                 </div> | ||||
|  |                 <img src="assets/misc/right-arrow.png" width="36" height="36"/> | ||||
|  |             </div> | ||||
|  |         </a> | ||||
|  |     </div> | ||||
|  |     <div class="col-sm-12 col-md-6 my-3"> | ||||
|  |         <a href="#features"> | ||||
|  |             <div class="d-flex justify-content-between align-items-center" | ||||
|  |                  style="background-color: #f5f5f5; padding: 30px; width: 100%;"> | ||||
|  |                 <div> | ||||
|  |                     <span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span> | ||||
|  |                     <span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33;  display: block;">View | ||||
|  |             features of this | ||||
|  |             module</span> | ||||
|  |                 </div> | ||||
|  |                 <img src="assets/misc/right-arrow.png" width="36" height="36"/> | ||||
|  |             </div> | ||||
|  |         </a> | ||||
|  |     </div> | ||||
|  |     <div class="col-sm-12 col-md-6 my-3"> | ||||
|  |         <a href="#screenshots"> | ||||
|  |             <div class="d-flex justify-content-between align-items-center" | ||||
|  |                  style="background-color: #f5f5f5; padding: 30px; width: 100%;"> | ||||
|  |                 <div> | ||||
|  |                     <span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span> | ||||
|  |                     <span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33;  display: block;">View | ||||
|  |             screenshots for this | ||||
|  |             module</span> | ||||
|  |                 </div> | ||||
|  |                 <img src="assets/misc/right-arrow.png" width="36" height="36"/> | ||||
|  |             </div> | ||||
|  |         </a> | ||||
|  |     </div> | ||||
|  | </div> | ||||
|  | <!-- END OF NAVIGATION SECTION --> | ||||
|  | 
 | ||||
|  | <!-- OVERVIEW SECTION --> | ||||
|  | <div class="d-flex align-items-center" | ||||
|  |      style="border-bottom: 2px solid #714B67; padding: 15px 0px;" | ||||
|  |      id="overview"> | ||||
|  |     <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |         <img src="assets/misc/pie-chart.png"/> | ||||
|  |     </div> | ||||
|  |     <h2 class="mt-2" | ||||
|  |         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | ||||
|  |         Overview | ||||
|  |     </h2> | ||||
|  | </div> | ||||
|  | <div class="row" | ||||
|  |      style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> | ||||
|  |     <div class="col-sm-12 py-4"> | ||||
|  |         This module manages product warranty policies & warranty claims and | ||||
|  |         allows users to declare warranty policies applicable to each product. | ||||
|  |         <br/> | ||||
|  |         Furthermore, Warranty policies can be applied by the warranty period. | ||||
|  |         Allow users to manage the process of warranty claims | ||||
|  |     </div> | ||||
|  | </div> | ||||
|  | <!-- END OF OVERVIEW SECTION --> | ||||
|  | 
 | ||||
|  | <!-- FEATURES SECTION --> | ||||
|  | <div class="d-flex align-items-center" | ||||
|  |      style="border-bottom: 2px solid #714B67; padding: 15px 0px;" | ||||
|  |      id="features"> | ||||
|  |     <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |         <img src="assets/misc/features.png"/> | ||||
|  |     </div> | ||||
|  |     <h2 class="mt-2" | ||||
|  |         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | ||||
|  |         Features | ||||
|  |     </h2> | ||||
|  | </div> | ||||
|  | <div class="row" | ||||
|  |      style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> | ||||
|  |     <div class="col-sm-12 col-md-6"> | ||||
|  |         <div class="d-flex align-items-center" | ||||
|  |              style="margin-top: 40px; margin-bottom: 40px"> | ||||
|  |             <img src="assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Dedicated Website | ||||
|  |                     Views | ||||
|  |                     for Users.</span> | ||||
|  |         </div> | ||||
|  |         <div class="d-flex align-items-center" | ||||
|  |              style="margin-top: 30px; margin-bottom: 30px"> | ||||
|  |             <img src="assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Users can Easily submit the warranty claims</span> | ||||
|  |         </div> | ||||
|  |         <div class="d-flex align-items-center" | ||||
|  |              style="margin-top: 30px; margin-bottom: 30px"> | ||||
|  |             <img src="assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                 Available in Odoo 16.0 Community and Enterprise.</span> | ||||
|  |         </div> | ||||
|  |         <div class="d-flex align-items-center" | ||||
|  |              style="margin-top: 30px; margin-bottom: 30px"> | ||||
|  |             <img src="assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Warranty  Menu in Website.</span> | ||||
|  |         </div> | ||||
|  |         <div class="d-flex align-items-center" | ||||
|  |              style="margin-top: 30px; margin-bottom: 30px"> | ||||
|  |             <img src="assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Warranty claim requests can be seen by admin </span> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  |     <div class="col-sm-12 col-md-6"> | ||||
|  | 
 | ||||
|  |         <div class="d-flex align-items-center" | ||||
|  |              style="margin-top: 30px; margin-bottom: 30px"> | ||||
|  |             <img src="assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Automatic calculation of warranty expiry</span> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </div> | ||||
|  | <!-- END OF FEATURES SECTION --> | ||||
|  | 
 | ||||
|  | <!-- SCREENSHOTS SECTION --> | ||||
|  | <div class="d-flex align-items-center" | ||||
|  |      style="border-bottom: 2px solid #714B67; padding: 15px 0px;" | ||||
|  |      id="screenshots"> | ||||
|  |     <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |         <img src="assets/misc/pictures.png"/> | ||||
|  |     </div> | ||||
|  |     <h2 class="mt-2" | ||||
|  |         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | ||||
|  |         Screenshots | ||||
|  |     </h2> | ||||
|  | </div> | ||||
|  | <div class="row"> | ||||
|  |     <div class="col-sm-12"> | ||||
|  | 
 | ||||
|  |         <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |             In the product form a warranty page is added, if the product has | ||||
|  |             warranty | ||||
|  |             available,then can be added the duration in the field | ||||
|  |         </h3> | ||||
|  |         <div style="display: block; margin: 30px auto;"> | ||||
|  |             <img src="assets/screenshots/1.png" class="img-thumbnail"> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div style="display: block; margin: 30px auto;"> | ||||
|  |             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                 If we add the warranty enabled product in a sale order line | ||||
|  |                 then a | ||||
|  |                 warranty smart button will be shown on confirmation | ||||
|  |             </h3> | ||||
|  | 
 | ||||
|  |             <img src="assets/screenshots/2.png" class="img-thumbnail"> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div style="display: block; margin: 30px auto;"> | ||||
|  |             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                 Warranty details on clicking the smart tab | ||||
|  |             </h3> | ||||
|  |             <img src="assets/screenshots/3.png" class="img-thumbnail"> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div style="display: block; margin: 30px auto;"> | ||||
|  |             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                 Warranty detail form view,The expiry date is automatically | ||||
|  |                 calculated. | ||||
|  |             </h3> | ||||
|  |             <img src="assets/screenshots/4.png" class="img-thumbnail"> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div style="display: block; margin: 30px auto;"> | ||||
|  |             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                 Warranty menu in website | ||||
|  |             </h3> | ||||
|  |             <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                 customer can submit their warranty claims through the | ||||
|  |                 website</p> | ||||
|  |             <img src="assets/screenshots/5.png" class="img-thumbnail"> | ||||
|  |             <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                 After Successful submission this page will be shown:</p> | ||||
|  |                         <img src="assets/screenshots/0.png" class="img-thumbnail"> | ||||
|  | 
 | ||||
|  | 
 | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div style="display: block; margin: 30px auto;"> | ||||
|  |             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                 Warranty claim request will be created on backend | ||||
|  |             </h3> | ||||
|  | 
 | ||||
|  |             <img src="assets/screenshots/7.png" | ||||
|  |                  class="img-thumbnail"> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div style="display: block; margin: 30px auto;"> | ||||
|  |              <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                 Warranty claim request will be shown like this: | ||||
|  |             </h3> | ||||
|  |             <img src="assets/screenshots/8.png" | ||||
|  |                  class="img-thumbnail"> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div style="display: block; margin: 30px auto;"> | ||||
|  |              <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                 Admin can Approve or Reject the request . | ||||
|  |             </h3> | ||||
|  |             <img src="assets/screenshots/9.png" | ||||
|  |                  class="img-thumbnail"> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div style="display: block; margin: 30px auto;"> | ||||
|  |             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                 Status of the warranty claim can be seen on the portal menu as | ||||
|  |                 "My Claims" | ||||
|  |             </h3> | ||||
|  |             <img src="assets/screenshots/10.png" | ||||
|  |                  class="img-thumbnail"> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div style="display: block; margin: 30px auto;"> | ||||
|  |             <img src="assets/screenshots/11.png" | ||||
|  |                  class="img-thumbnail"> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </div> | ||||
|  | <!-- END OF SCREENSHOTS SECTION --> | ||||
|  | 
 | ||||
|  | <!-- RELATED PRODUCTS --> | ||||
|  | <div class="row"> | ||||
|  |     <div class="col-sm-12 col-md-12-col-lg-2"> | ||||
|  |         <h2 style="font-weight: bold; color: #3D3D4E;">Related Modules</h2> | ||||
|  |         <p style="color: #777783;">Explore our related modules</p> | ||||
|  |         <hr/> | ||||
|  |     </div> | ||||
|  |     <div class="col-sm-12"> | ||||
|  |         <div id="demo1" class="row carousel slide" data-ride="carousel"> | ||||
|  |             <!-- The slideshow --> | ||||
|  |             <div class="carousel-inner" style="padding: 30px;"> | ||||
|  |                 <div class="carousel-item" style="min-height: 198.656px;"> | ||||
|  |                     <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" | ||||
|  |                          style="float:left"> | ||||
|  |                         <a href="https://apps.odoo.com/apps/modules/16.0/sale_discount_total/" | ||||
|  |                            target="_blank"> | ||||
|  |                             <div style="border-radius:10px"> | ||||
|  |                                 <img class="img img-responsive center-block" | ||||
|  |                                      style="border-radius: 0px;" | ||||
|  |                                      src="assets/modules/1.png"> | ||||
|  |                             </div> | ||||
|  |                         </a> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" | ||||
|  |                          style="float:left"> | ||||
|  |                         <a href="https://apps.odoo.com/apps/modules/16.0/subscription_package/" | ||||
|  |                            target="_blank"> | ||||
|  |                             <div style="border-radius:10px"> | ||||
|  |                                 <img class="img img-responsive center-block" | ||||
|  |                                      style="border-radius: 0px;" | ||||
|  |                                      src="assets/modules/2.png"> | ||||
|  |                             </div> | ||||
|  |                         </a> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" | ||||
|  |                          style="float:left"> | ||||
|  |                         <a href="https://apps.odoo.com/apps/modules/16.0/dynamic_product_fields/" | ||||
|  |                            target="_blank"> | ||||
|  |                             <div style="border-radius:10px"> | ||||
|  |                                 <img class="img img-responsive center-block" | ||||
|  |                                      style="border-radius: 0px;" | ||||
|  |                                      src="assets/modules/3.png"> | ||||
|  |                             </div> | ||||
|  |                         </a> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="carousel-item active" | ||||
|  |                      style="min-height: 198.656px;"> | ||||
|  |                     <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" | ||||
|  |                          style="float:left"> | ||||
|  |                         <a href="https://apps.odoo.com/apps/modules/16.0/export_stockinfo_xls/" | ||||
|  |                            target="_blank"> | ||||
|  |                             <div style="border-radius:10px"> | ||||
|  |                                 <img class="img img-responsive center-block" | ||||
|  |                                      style="border-radius: 0px;" | ||||
|  |                                      src="assets/modules/4.png"> | ||||
|  |                             </div> | ||||
|  |                         </a> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" | ||||
|  |                          style="float:left"> | ||||
|  |                         <a href="https://apps.odoo.com/apps/modules/16.0/sale_discount_total/" | ||||
|  |                            target="_blank"> | ||||
|  |                             <div style="border-radius:10px"> | ||||
|  |                                 <img class="img img-responsive center-block" | ||||
|  |                                      style="border-radius: 0px;" | ||||
|  |                                      src="assets/modules/5.png"> | ||||
|  |                             </div> | ||||
|  |                         </a> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" | ||||
|  |                          style="float:left"> | ||||
|  |                         <a href="https://apps.odoo.com/apps/modules/16.0/sale_invoice_due_date_reminder/" | ||||
|  |                            target="_blank"> | ||||
|  |                             <div style="border-radius:10px"> | ||||
|  |                                 <img class="img img-responsive center-block" | ||||
|  |                                      style="border-radius: 0px;" | ||||
|  |                                      src="assets/modules/6.png"> | ||||
|  |                             </div> | ||||
|  |                         </a> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |             <!-- Left and right controls --> | ||||
|  |             <a class="carousel-control-prev" href="#demo1" data-slide="prev" | ||||
|  |                style="width:35px; color:#000"> <span | ||||
|  |                     class="carousel-control-prev-icon"><i | ||||
|  |                     class="fa fa-chevron-left" | ||||
|  |                     style="font-size:24px"></i></span> | ||||
|  |             </a> <a class="carousel-control-next" href="#demo1" | ||||
|  |                     data-slide="next" style="width:35px; color:#000"> | ||||
|  |             <span class="carousel-control-next-icon"><i | ||||
|  |                     class="fa fa-chevron-right" | ||||
|  |                     style="font-size:24px"></i></span> | ||||
|  |         </a> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </div> | ||||
|  | <!-- END OF RELATED PRODUCTS --> | ||||
|  | 
 | ||||
|  | <!-- OUR SERVICES --> | ||||
|  | 
 | ||||
|  | <div class="d-flex align-items-center" | ||||
|  |      style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | ||||
|  |     <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |         <img src="assets/misc/star.png"/> | ||||
|  |     </div> | ||||
|  |     <h2 class="mt-2" | ||||
|  |         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | ||||
|  |         Our Services | ||||
|  |     </h2> | ||||
|  | </div> | ||||
|  | 
 | ||||
|  | <div class="container my-5"> | ||||
|  |     <div class="row"> | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/cogs.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Customization</h6> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/wrench.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Implementation</h6> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/lifebuoy.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Support</h6> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  | 
 | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/user.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Hire | ||||
|  |                 Odoo | ||||
|  |                 Developer</h6> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #54a0ff  !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/puzzle.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Integration</h6> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/update.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Migration</h6> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  | 
 | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/consultation.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Consultancy</h6> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/training.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Implementation</h6> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/license.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Licensing Consultancy</h6> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | 
 | ||||
|  | </div> | ||||
|  | 
 | ||||
|  | <!-- END OF OUR SERVICES --> | ||||
|  | 
 | ||||
|  | <!-- OUR INDUSTRIES --> | ||||
|  | 
 | ||||
|  | <div class="d-flex align-items-center" | ||||
|  |      style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | ||||
|  |     <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |         <img src="assets/misc/corporate.png"/> | ||||
|  |     </div> | ||||
|  |     <h2 class="mt-2" | ||||
|  |         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | ||||
|  |         Our | ||||
|  |         Industries | ||||
|  |     </h2> | ||||
|  | </div> | ||||
|  | 
 | ||||
|  | <div class="container my-5"> | ||||
|  |     <div class="row"> | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="assets/icons/trading-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" width="48px"> | ||||
|  |                 <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     Trading | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     Easily procure | ||||
|  |                     and | ||||
|  |                     sell your products</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="assets/icons/pos-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" width="48px"> | ||||
|  |                 <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     POS | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     Easy | ||||
|  |                     configuration | ||||
|  |                     and convivial experience</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="assets/icons/education-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" width="48px"> | ||||
|  |                 <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     Education | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     A platform for | ||||
|  |                     educational management</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="assets/icons/manufacturing-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" width="48px"> | ||||
|  |                 <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     Manufacturing | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     Plan, track and | ||||
|  |                     schedule your operations</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="assets/icons/ecom-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" width="48px"> | ||||
|  |                 <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     E-commerce & Website | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     Mobile | ||||
|  |                     friendly, | ||||
|  |                     awe-inspiring product pages</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="assets/icons/service-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" width="48px"> | ||||
|  |                 <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     Service Management | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     Keep track of | ||||
|  |                     services and invoice</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="assets/icons/restaurant-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" width="48px"> | ||||
|  |                 <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     Restaurant | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     Run your bar or | ||||
|  |                     restaurant methodically</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="assets/icons/hotel-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" width="48px"> | ||||
|  |                 <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     Hotel Management | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     An | ||||
|  |                     all-inclusive | ||||
|  |                     hotel management application</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </div> | ||||
|  | 
 | ||||
|  | <!-- END OF OUR INDUSTRIES --> | ||||
|  | 
 | ||||
|  | <!-- SUPPORT --> | ||||
|  | <div class="d-flex align-items-center" | ||||
|  |      style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | ||||
|  |     <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |         <img src="assets/misc/customer-support.png"/> | ||||
|  |     </div> | ||||
|  |     <h2 class="mt-2" | ||||
|  |         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | ||||
|  |         Support | ||||
|  |     </h2> | ||||
|  | </div> | ||||
|  | <div class="container mt-5"> | ||||
|  |     <div class="row"> | ||||
|  |         <div class="col-sm-12 col-md-6"> | ||||
|  |             <div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> | ||||
|  |                 <div class="mr-4 d-flex justify-content-center align-items-center" | ||||
|  |                      style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> | ||||
|  |                     <img src="assets/misc/support.png" height="48" width="48" | ||||
|  |                          style="width: 42px; height: 42px;"/> | ||||
|  |                 </div> | ||||
|  |                 <div> | ||||
|  |                     <h4>Need Help?</h4> | ||||
|  |                     <p style="line-height: 100%;">Got questions or need help? | ||||
|  |                         Get in touch.</p> | ||||
|  |                     <a href="mailto:odoo@cybrosys.com"> | ||||
|  |                         <p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> | ||||
|  |                             odoo@cybrosys.com</p> | ||||
|  |                     </a> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="col-sm-12 col-md-6"> | ||||
|  |             <div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> | ||||
|  |                 <div class="mr-4 d-flex justify-content-center align-items-center" | ||||
|  |                      style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> | ||||
|  |                     <img src="assets/misc/whatsapp.png" height="52" width="52" | ||||
|  |                          style="width: 52px; height: 52px;"/> | ||||
|  |                 </div> | ||||
|  |                 <div> | ||||
|  |                     <h4>WhatsApp</h4> | ||||
|  |                     <p style="line-height: 100%;">Say hi to us on WhatsApp!</p> | ||||
|  |                     <a href="https://api.whatsapp.com/send?phone=918606827707"> | ||||
|  |                         <p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> | ||||
|  |                             +91 86068 | ||||
|  |                             27707</p> | ||||
|  |                     </a> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  |     <div class="row"> | ||||
|  |         <div class="col-sm-12 my-5 d-flex justify-content-center align-items-center"> | ||||
|  |             <img src="assets/misc/logo.png" width="144" height="31" | ||||
|  |                  style="width:144px; height: 31px; margin-top: 40px;"/> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </div> | ||||
|  | <!-- END OF SUPPORT --> | ||||
| @ -0,0 +1,42 @@ | |||||
|  | /* Style the labels */ | ||||
|  | .error-message{ | ||||
|  | color:red; | ||||
|  | font:20px; | ||||
|  | } | ||||
|  | /* Style the labels */ | ||||
|  | .o_form_label { | ||||
|  |     width: 300px; /* Adjust label width as needed */ | ||||
|  |     text-align: left; | ||||
|  |     display: inline-block; | ||||
|  |     /* Add spacing between label and input */ | ||||
|  | } | ||||
|  | 
 | ||||
|  | /* Style the input elements */ | ||||
|  | .o_row .o_form_input { | ||||
|  |     display: inline-block; | ||||
|  |     width:600px; | ||||
|  |     /* Add spacing between input and next label */ | ||||
|  | } | ||||
|  | 
 | ||||
|  | /* Style the form buttons */ | ||||
|  | .button { | ||||
|  |     background-color: #007bff; | ||||
|  |     color: #fff; | ||||
|  |     border: none; | ||||
|  |     padding: 10px 20px; | ||||
|  |     cursor: pointer; | ||||
|  |     border-radius: 5px; | ||||
|  | } | ||||
|  | 
 | ||||
|  | /* Style the button on hover */ | ||||
|  | .button:hover { | ||||
|  |     background-color: #0056b3; | ||||
|  | } | ||||
|  | 
 | ||||
|  | /* Style the select dropdowns */ | ||||
|  | select { | ||||
|  |     width: 100%; | ||||
|  |     padding: 5px; | ||||
|  |     border: 1px solid #ccc; | ||||
|  |     border-radius: 3px; | ||||
|  | } | ||||
| @ -0,0 +1,133 @@ | |||||
|  | /**@odoo-module*/ | ||||
|  | var publicWidget = require('web.public.widget'); | ||||
|  | import rpc from 'web.rpc'; | ||||
|  | publicWidget.registry.WarrantyClaim = publicWidget.Widget.extend({ | ||||
|  |     selector: '.container', | ||||
|  |     events: { | ||||
|  |         'click #customer_id': '_onClickCustomer', | ||||
|  |         'click #sale_order_id': '_onClickSaleOrder', | ||||
|  |         'submit #form_submit': '_onSubmit' | ||||
|  |     }, | ||||
|  |     _onClickCustomer: function (ev) { | ||||
|  |     //    To show the sale order of the selected customer only
 | ||||
|  |         ev.preventDefault(); | ||||
|  |         var selectedCustomerId = this.$('#customer_id').val(); | ||||
|  |          var $saleOrderDropdown = this.$('#sale_order_id'); | ||||
|  |         var $productDropdown = this.$('#products_id'); | ||||
|  |         $saleOrderDropdown.empty().append('<option value="">Select Sale Order</option>').prop('disabled', true); | ||||
|  |         $productDropdown.empty().append('<option value="">Select Product</option>').prop('disabled', true); | ||||
|  |         if (selectedCustomerId) { | ||||
|  |             rpc.query({ | ||||
|  |                 model: 'sale.order', | ||||
|  |                 method: 'search_read', | ||||
|  |                 args: [ | ||||
|  |                     [['partner_id', '=', parseInt(selectedCustomerId)]],  // Apply domain condition
 | ||||
|  |                     ['name'], | ||||
|  |                 ], | ||||
|  |             }).then(function (result) { | ||||
|  |                if (result.length > 0) { | ||||
|  |                 $saleOrderDropdown.prop('disabled', false); | ||||
|  |                 $.each(result, function (i, saleOrder) { | ||||
|  |                     $saleOrderDropdown.append($('<option>', { | ||||
|  |                         value: saleOrder.id, | ||||
|  |                         text: saleOrder.name, | ||||
|  |                     })); | ||||
|  |                 }); | ||||
|  |                 $productDropdown.prop('disabled', false); | ||||
|  |             } else { | ||||
|  |                 $productDropdown.prop('disabled', true); | ||||
|  |             } | ||||
|  |         }); | ||||
|  |     } | ||||
|  | }, | ||||
|  |     _onClickSaleOrder: function (ev) { | ||||
|  |         ev.preventDefault(); | ||||
|  |         var selectedSaleOrderId = $('#sale_order_id').val(); | ||||
|  |         var $productDropdown = this.$('#products_id'); | ||||
|  |         $productDropdown.empty().append('<option value="">Select Product</option>').prop('disabled', true); | ||||
|  |         if (selectedSaleOrderId) { | ||||
|  |             rpc.query({ | ||||
|  |                 model: 'sale.order.line', | ||||
|  |                 method: 'search_read', | ||||
|  |                 args: [ | ||||
|  |                     [['order_id', '=', parseInt(selectedSaleOrderId)]], | ||||
|  |                     ['product_id'], | ||||
|  |                 ], | ||||
|  |             }).then(function (result) { | ||||
|  |                 var $productDropdown = $('#products_id'); | ||||
|  |                 $productDropdown.prop('disabled', false); | ||||
|  |                 $productDropdown.empty(); | ||||
|  |                 $.each(result, function (i, saleOrderLine) { | ||||
|  |                     $productDropdown.append($('<option>', { | ||||
|  |                         value: saleOrderLine.product_id[0], | ||||
|  |                         text: saleOrderLine.product_id[1], | ||||
|  |                     })); | ||||
|  |                 }); | ||||
|  |             }); | ||||
|  |         } | ||||
|  |     }, | ||||
|  |     _onSubmit: function (ev) { | ||||
|  |         ev.preventDefault(); | ||||
|  |         // Get the selected sale order ID, customer ID, and product ID
 | ||||
|  |         var selectedSaleOrderId = $('#sale_order_id').val(); | ||||
|  |         var selectedCustomerId = $('#customer_id').val(); | ||||
|  |         var selectedProductId = $('#products_id').val(); | ||||
|  |         var errorMessageElement = $('#error_message'); | ||||
|  |         if (selectedSaleOrderId && selectedCustomerId && selectedProductId) { | ||||
|  |             rpc.query({ | ||||
|  |                 model: 'warranty.claim', | ||||
|  |                 method: 'search_count', | ||||
|  |                 args: [ | ||||
|  |                     [['sale_order_id', '=', parseInt(selectedSaleOrderId)]], | ||||
|  |                 ], | ||||
|  |             }).then(function (count) { | ||||
|  |                 if (count > 0) { | ||||
|  |                     errorMessageElement.text("A warranty claim for this sale order already exists."); | ||||
|  |                     setTimeout(function () { | ||||
|  |                         errorMessageElement.text(""); | ||||
|  |                     }, 10000); | ||||
|  |                 } else { | ||||
|  |                     errorMessageElement.text(""); | ||||
|  |                     rpc.query({ | ||||
|  |                         model: 'sale.order', | ||||
|  |                         method: 'read', | ||||
|  |                         args: [[parseInt(selectedSaleOrderId)], ['is_warranty_check']], | ||||
|  |                     }).then(function (saleOrderData) { | ||||
|  |                         if (saleOrderData && saleOrderData[0] && saleOrderData[0].is_warranty_check === true) { | ||||
|  |                             rpc.query({ | ||||
|  |                                 model: 'product.product', | ||||
|  |                                 method: 'read', | ||||
|  |                                 args: [[parseInt(selectedProductId)], ['is_warranty_available']], | ||||
|  |                             }).then(function (productData) { | ||||
|  |                                 if (productData && productData[0] && productData[0].is_warranty_available === true) { | ||||
|  |                                     rpc.query({ | ||||
|  |                                         model: 'warranty.claim', | ||||
|  |                                         method: 'create', | ||||
|  |                                         args: [{ | ||||
|  |                                             'sale_order_id': parseInt(selectedSaleOrderId), | ||||
|  |                                             'customer_id': parseInt(selectedCustomerId), | ||||
|  |                                             'product_id': parseInt(selectedProductId), | ||||
|  |                                         }], | ||||
|  |                                     }).then(function (result) { | ||||
|  |                                         window.location.href = '/warranty/claim/submit'; | ||||
|  |                                     }); | ||||
|  |                                 } else { | ||||
|  |                                     errorMessageElement.text("Selected product does not have warranty available."); | ||||
|  |                                     setTimeout(function () { | ||||
|  |                                         errorMessageElement.text(""); | ||||
|  |                                     }, 10000); | ||||
|  |                                 } | ||||
|  |                             }); | ||||
|  |                         } else { | ||||
|  |                             errorMessageElement.text("Selected sale order does not have warranty available."); | ||||
|  |                             setTimeout(function () { | ||||
|  |                                 errorMessageElement.text(""); | ||||
|  |                             }, 10000); | ||||
|  |                         } | ||||
|  |                     }); | ||||
|  |                 } | ||||
|  |             }); | ||||
|  |         } | ||||
|  |     } | ||||
|  | }); | ||||
|  | return publicWidget.registry.WarrantyClaim; | ||||
| @ -0,0 +1,65 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <!--    Inherited template to add portal menu for my claims--> | ||||
|  |     <template id="portal_my_home_claim" name="My Claims" | ||||
|  |               customize_show="True" inherit_id="portal.portal_my_home"> | ||||
|  |         <xpath expr="//div[hasclass('o_portal_docs')]" position="inside"> | ||||
|  |             <t t-call="portal.portal_docs_entry"> | ||||
|  |                 <t t-set="title">My Claims</t> | ||||
|  |                 <t t-set="url" | ||||
|  |                    t-value="'/my/claims'"/> | ||||
|  |                 <t t-set="placeholder_count" t-value="'claim_count'"/> | ||||
|  |             </t> | ||||
|  |         </xpath> | ||||
|  |     </template> | ||||
|  |     <!-- Template for adding the table of claim data records in the portal   --> | ||||
|  |     <template id="portal_warranty_claims" name="claims"> | ||||
|  |         <t t-call="portal.portal_layout"> | ||||
|  |             <t t-call="portal.portal_searchbar"> | ||||
|  |                 <t t-set="page_name">claim_count</t> | ||||
|  |                 <t t-set="title"/> | ||||
|  |             </t> | ||||
|  |             <t t-call="portal.portal_table"> | ||||
|  |                 <thead> | ||||
|  |                     <tr class="active"> | ||||
|  |                         <th class="text-muted">Customer</th> | ||||
|  |                         <th class="text-muted">Sale Order</th> | ||||
|  |                         <th class="text-muted">Product</th> | ||||
|  |                         <th class="text-muted">Status</th> | ||||
|  |                     </tr> | ||||
|  |                 </thead> | ||||
|  |                 <t t-foreach="claim_data" t-as="value"> | ||||
|  |                     <tr> | ||||
|  |                         <td class="text-muted"> | ||||
|  |                             <span t-esc="value['customer_id']"/> | ||||
|  |                         </td> | ||||
|  |                         <td class="text-muted"> | ||||
|  |                             <span t-esc="value['sale_order_id']"/> | ||||
|  |                         </td> | ||||
|  |                         <td class="text-muted"> | ||||
|  |                             <span t-esc="value['product_id']"/> | ||||
|  |                         </td> | ||||
|  |                         <td class="text-muted"> | ||||
|  |                             <span t-esc="value['status']"/> | ||||
|  |                         </td> | ||||
|  |                     </tr> | ||||
|  |                 </t> | ||||
|  |             </t> | ||||
|  |         </t> | ||||
|  |     </template> | ||||
|  |     <!--    Template to add bread crumbs--> | ||||
|  |     <template id="portal_my_home_menu_claims" | ||||
|  |               name="Portal layout: claims menu entries" | ||||
|  |               inherit_id="portal.portal_breadcrumbs" priority="20"> | ||||
|  |         <xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside"> | ||||
|  |             <t t-set="variable" t-value="1"/> | ||||
|  |             <t t-if="variable == 1"> | ||||
|  |                 <li> | ||||
|  |                     <a t-attf-href="/my/claims?{{ keep_query() }}">/ Warranty | ||||
|  |                         Claims | ||||
|  |                     </a> | ||||
|  |                 </li> | ||||
|  |             </t> | ||||
|  |         </xpath> | ||||
|  |     </template> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,56 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <!--This XML configuration modifies the product.template form view to | ||||
|  |     include warranty management fields.--> | ||||
|  |     <record id="product_template_form_view" model="ir.ui.view"> | ||||
|  |         <field name="name">product.template.view.form.inherit.product.warranty.management.odoo</field> | ||||
|  |         <field name="model">product.template</field> | ||||
|  |         <field name="inherit_id" ref="product.product_template_form_view"/> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <xpath expr="//page[@name='sales']" position="after"> | ||||
|  |             <page string="Warranty"> | ||||
|  |                 <group> | ||||
|  |                     <group> | ||||
|  |                         <field name="is_warranty_available" widget="bool_badge"/> | ||||
|  |                         <field name="warranty_duration" | ||||
|  |                         attrs="{'invisible': [('is_warranty_available', '=', False)]}"/> | ||||
|  |                     </group> | ||||
|  |                 </group> | ||||
|  |             </page> | ||||
|  |             </xpath> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |      <record id="product_template_view_tree" model="ir.ui.view"> | ||||
|  |         <field name="name">product.template.view.tree.inherit.product.warranty.management.odoo</field> | ||||
|  |         <field name="model">product.template</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <tree> | ||||
|  |                 <field name="name" string="Product"/> | ||||
|  |                 <field name="warranty_duration"/> | ||||
|  |             </tree> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |     <record id="product_template_view_form" model="ir.ui.view"> | ||||
|  |         <field name="name">product.template.view.form</field> | ||||
|  |         <field name="model">product.template</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <form> | ||||
|  |                 <sheet> | ||||
|  |                 <group> | ||||
|  |                 <field name="name" string="Product:"/> | ||||
|  |                 <field name="warranty_duration"/> | ||||
|  |                 <field name="warranty_expiry"/> | ||||
|  |                 </group> | ||||
|  |                 </sheet> | ||||
|  |             </form> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |         <record id="product_template_action" model="ir.actions.act_window"> | ||||
|  |         <field name="name">Warranty Details</field> | ||||
|  |         <field name="res_model">product.template</field> | ||||
|  |         <field name="view_mode">tree,form</field> | ||||
|  |          <field name="view_ids" eval="[(5, 0, 0), | ||||
|  |             (0, 0, {'view_mode': 'tree', 'view_id': ref('product_template_view_tree')}), | ||||
|  |             (0, 0, {'view_mode': 'form', 'view_id': ref('product_template_view_form')})]"/> | ||||
|  |     </record> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,23 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <!-- Inherit the Sale Order form view --> | ||||
|  |     <record id="view_order_form" model="ir.ui.view"> | ||||
|  |         <field name="name">sale.order.view.form.inherit.product.warranty.management.odoo</field> | ||||
|  |         <field name="model">sale.order</field> | ||||
|  |         <field name="inherit_id" ref="sale.view_order_form"/> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <!-- Extend the Sale Order form view by adding a smart tab --> | ||||
|  |             <xpath expr="//div[@name='button_box']/button[last()]" | ||||
|  |                    position="after"> | ||||
|  |                 <field name="is_warranty_check" invisible="1"/> | ||||
|  |                 <button name="action_open_smart_tab" | ||||
|  |                         type="object" | ||||
|  |                         class="oe_stat_button" | ||||
|  |                         icon="fa-clock-o" | ||||
|  |                         string="Warranty" | ||||
|  |                         attrs="{'invisible': [('is_warranty_check', '!=', True)]}"> | ||||
|  |                 </button> | ||||
|  |             </xpath> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,51 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |      <!--This XML configuration for the warranty.claim action--> | ||||
|  |       <record id="warranty_claim_action" model="ir.actions.act_window"> | ||||
|  |         <field name="name">Warranty claim request</field> | ||||
|  |         <field name="res_model">warranty.claim</field> | ||||
|  |         <field name="view_mode">tree,form</field> | ||||
|  |     </record> | ||||
|  |     <menuitem | ||||
|  |             id="menu_sale_order_warranty_claim" | ||||
|  |             name="Warranty Claim Request" | ||||
|  |             parent="sale.sale_order_menu" | ||||
|  |             action="warranty_claim_action" | ||||
|  |             sequence="99" | ||||
|  |         /> | ||||
|  | <!--  This XML configuration for the warranty.claim form view--> | ||||
|  |     <record id="view_warranty_claim_form" model="ir.ui.view"> | ||||
|  |         <field name="name">warranty.claim.view.form</field> | ||||
|  |         <field name="model">warranty.claim</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <form string="Warranty Claim"> | ||||
|  |                  <header> | ||||
|  |                     <field name="state" widget="statusbar" statusbar_visible="draft,approved,rejected"/> | ||||
|  |                      <button name="change_status_approved" string="Approve" type="object" class="oe_highlight" states="draft,rejected"/> | ||||
|  |                      <button name="change_status_rejected" string="Reject" type="object" class="oe_highlight" states="draft,approved"/> | ||||
|  |                 </header> | ||||
|  |                 <sheet> | ||||
|  |                 <group> | ||||
|  |                     <field name="customer_id"/> | ||||
|  |                     <field name="sale_order_id"/> | ||||
|  |                     <field name="product_id"/> | ||||
|  |                     <field name="product_expiry_date"/> | ||||
|  |                 </group> | ||||
|  |                 </sheet> | ||||
|  |             </form> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  | <!--  This XML configuration for the warranty.claim tree view--> | ||||
|  |      <record id="view_warranty_claim_tree" model="ir.ui.view"> | ||||
|  |         <field name="name">warranty.claim.view.tree</field> | ||||
|  |         <field name="model">warranty.claim</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <tree string="Warranty Claims"> | ||||
|  |                 <field name="customer_id"/> | ||||
|  |                 <field name="sale_order_id"/> | ||||
|  |                 <field name="product_id"/> | ||||
|  |                 <field name="product_expiry_date"/> | ||||
|  |             </tree> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,152 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <!-- Template for the Warranty Claim page --> | ||||
|  |     <template id="warranty_claim_page" name="Warranty Claim"> | ||||
|  |         <t t-call="website.layout"> | ||||
|  |             <div id="wrap" class="warranty-claim-widget" align="center"> | ||||
|  |                 <div class="container"> | ||||
|  |                     <div class="col-md-9 mt-5" | ||||
|  |                          style="background-color: lightblue; padding: 20px; border-radius: 10px;"> | ||||
|  |                         <h2 class="head" | ||||
|  |                             style="color: black; font-size: 26px; font-weight: bold;"> | ||||
|  |                             Warranty Claim Request | ||||
|  |                         </h2> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-12 mt-5 mb-5 mb-md-0" t-ref="body"> | ||||
|  |                         <div class="form"> | ||||
|  |                             <form action="/warranty/claim/submit" | ||||
|  |                                   id="form_submit"> | ||||
|  |                                 <!-- Customer Selection --> | ||||
|  |                                 <div> | ||||
|  |                                     <div class="o_row"> | ||||
|  |                                         <label class="o_form_label" | ||||
|  |                                                for="customer_id">Name Of | ||||
|  |                                             Customer: * | ||||
|  |                                         </label> | ||||
|  |                                         <div class="o_form_input"> | ||||
|  |                                             <select id="customer_id" | ||||
|  |                                                     name="customer_id" | ||||
|  |                                                     required="true"> | ||||
|  |                                                 <option value="">Select | ||||
|  |                                                     Customer | ||||
|  |                                                 </option> | ||||
|  |                                                 <t t-foreach='customers' | ||||
|  |                                                    t-as="customer"> | ||||
|  |                                                     <option t-esc='customer.name' | ||||
|  |                                                             t-att-value='customer.id'/> | ||||
|  |                                                 </t> | ||||
|  |                                             </select> | ||||
|  |                                         </div> | ||||
|  |                                     </div> | ||||
|  |                                     <br/> | ||||
|  |                                     <!-- Sale Order Selection --> | ||||
|  |                                     <div class="o_row"> | ||||
|  |                                         <label class="o_form_label" | ||||
|  |                                                for="sale_order_id">Select Sale | ||||
|  |                                             Order: * | ||||
|  |                                         </label> | ||||
|  |                                         <div class="o_form_input"> | ||||
|  |                                             <select id="sale_order_id" | ||||
|  |                                                     name="sale_order_id" | ||||
|  |                                                     required="true" | ||||
|  |                                                     disabled="1"> | ||||
|  |                                                 <option value="">Select Sale | ||||
|  |                                                     Order | ||||
|  |                                                 </option> | ||||
|  |                                                 <t t-foreach='sale_orders' | ||||
|  |                                                    t-as="sale_order"> | ||||
|  |                                                     <option t-esc='sale_order.name' | ||||
|  |                                                             t-att-value='sale_order.id'/> | ||||
|  |                                                 </t> | ||||
|  |                                             </select> | ||||
|  |                                         </div> | ||||
|  |                                     </div> | ||||
|  |                                     <br/> | ||||
|  |                                     <!-- Product Selection --> | ||||
|  |                                     <div class="o_row"> | ||||
|  |                                         <label class="o_form_label" | ||||
|  |                                                for="products_id">Select | ||||
|  |                                             Product: * | ||||
|  |                                         </label> | ||||
|  |                                         <div class="o_form_input"> | ||||
|  |                                             <select id="products_id" | ||||
|  |                                                     name="products_id" | ||||
|  |                                                     required="true" | ||||
|  |                                                     disabled="1"> | ||||
|  |                                                 <option value="">Select | ||||
|  |                                                     Product | ||||
|  |                                                 </option> | ||||
|  |                                                 <t t-foreach='products' | ||||
|  |                                                    t-as="product"> | ||||
|  |                                                     <option t-esc='product.name' | ||||
|  |                                                             t-att-value='product.id'/> | ||||
|  |                                                 </t> | ||||
|  |                                             </select> | ||||
|  |                                         </div> | ||||
|  |                                     </div> | ||||
|  |                                     <br/> | ||||
|  |                                     <!--description--> | ||||
|  |                                     <div class="o_row"> | ||||
|  |                                         <label class="o_form_label" | ||||
|  |                                                for="additional_field"> | ||||
|  |                                             Description: | ||||
|  |                                         </label> | ||||
|  |                                         <div class="o_form_input"> | ||||
|  |                                             <input type="text" | ||||
|  |                                                    id="additional_field" | ||||
|  |                                                    name="additional_field" | ||||
|  |                                                    style="width:600px;; height:80pt;"/> | ||||
|  |                                         </div> | ||||
|  |                                     </div> | ||||
|  |                                     <br/> | ||||
|  |                                     <button type="submit" | ||||
|  |                                             class="btn btn-primary btn-lg s_website_form_send"> | ||||
|  |                                         Submit | ||||
|  |                                     </button> | ||||
|  |                                     <br/> | ||||
|  |                                     <br/> | ||||
|  |                                     <br/> | ||||
|  |                                     <div id="error_message" | ||||
|  |                                          class="error-message"/> | ||||
|  |                                     <br/> | ||||
|  |                                     <br/> | ||||
|  |                                 </div> | ||||
|  |                             </form> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |         </t> | ||||
|  |     </template> | ||||
|  |     <template id="claim_thanks_view"> | ||||
|  |         <t t-call="website.layout"> | ||||
|  |             <div id="wrap" class="oe_structure oe_empty"> | ||||
|  |                 <section class="s_website_form" data-vcss="001" | ||||
|  |                          data-snippet="s_website_form"> | ||||
|  |                     <div class="container"> | ||||
|  |                         <center> | ||||
|  |                             <br/> | ||||
|  |                             <br/> | ||||
|  |                             <div class="col-lg-7 col-xl-6 me-lg-auto"> | ||||
|  |                                 <span class="d-block fa fa-4x fa-thumbs-up mx-auto rounded-circle bg-primary"/> | ||||
|  |                                 <br/> | ||||
|  |                                 <h1 class="text-center">Success!!!!</h1> | ||||
|  |                                 <div class="pb16 pt16 s_hr" data-snippet="s_hr" | ||||
|  |                                      data-name="Separator"> | ||||
|  |                                     <hr class="mx-auto border-top w-50 border-dark text-center"/> | ||||
|  |                                 </div> | ||||
|  |                                 <h5 class="text-center"> | ||||
|  |                                     <span class="fa fa-check-circle"/> | ||||
|  |                                     <span> | ||||
|  |                                         Claim Request is Created | ||||
|  |                                         <b>Successfully</b> | ||||
|  |                                     </span> | ||||
|  |                                 </h5> | ||||
|  |                             </div> | ||||
|  |                         </center> | ||||
|  |                     </div> | ||||
|  |                 </section> | ||||
|  |             </div> | ||||
|  |         </t> | ||||
|  |     </template> | ||||
|  | </odoo> | ||||