| @ -0,0 +1,46 @@ | |||
| .. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg | |||
|     :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html | |||
|     :alt: License: AGPL-3 | |||
| 
 | |||
| Delivery Slot | |||
| ============= | |||
| This module helps you to choose different delivery slot for each product. | |||
| 
 | |||
| Configuration | |||
| ============= | |||
| * No additional configurations needed | |||
| 
 | |||
| Company | |||
| ------- | |||
| * `Cybrosys Techno Solutions <https://cybrosys.com/>`__ | |||
| 
 | |||
| License | |||
| ------- | |||
| Gnu Affero General Public License, Version 3 (AGPL v3). | |||
| (https://www.gnu.org/licenses/agpl-3.0-standalone.html) | |||
| 
 | |||
| Credits | |||
| ------- | |||
| * Developer : (V17) Manasa T 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) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | |||
| #    Author: Manasa T P (odoo@cybrosys.com) | |||
| # | |||
| #    You can modify it under the terms of the GNU AFFERO | |||
| #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | |||
| # | |||
| #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | |||
| #    (AGPL v3) along with this program. | |||
| #    If not, see <http://www.gnu.org/licenses/>. | |||
| # | |||
| ############################################################################# | |||
| from . import controllers | |||
| from . import models | |||
| @ -0,0 +1,58 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | |||
| #    Author: Manasa T P (odoo@cybrosys.com) | |||
| # | |||
| #    You can modify it under the terms of the GNU AFFERO | |||
| #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | |||
| # | |||
| #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | |||
| #    (AGPL v3) along with this program. | |||
| #    If not, see <http://www.gnu.org/licenses/>. | |||
| # | |||
| ############################################################################# | |||
| { | |||
|     'name': 'Delivery Slot', | |||
|     'version': '17.0.1.0.0', | |||
|     'category': 'Sales', | |||
|     'summary': "Time slot selection for deliveries", | |||
|     'description': """This module helps to choose a different delivery date  | |||
|     and time for each product in the order line. Multiple deliveries and  | |||
|     corresponding delivery slots are created for each line in the sale order, | |||
|     based on the chosen date and slot.""", | |||
|     'author': 'Cybrosys Techno Solutions', | |||
|     'company': 'Cybrosys Techno Solutions', | |||
|     'maintainer': 'Cybrosys Techno Solutions', | |||
|     'website': 'https://www.cybrosys.com', | |||
|     'depends': ['sale_management', 'stock', 'account', 'website_sale'], | |||
|     'data': [ | |||
|         'security/ir.model.access.csv', | |||
|         'data/slot_time_data.xml', | |||
|         'views/delivery_slot_views.xml', | |||
|         'views/res_config_settings_views.xml', | |||
|         'views/sale_order_views.xml', | |||
|         'views/slot_time_views.xml', | |||
|         'views/website_delivery_slot_templates.xml', | |||
|         'views/website_slot_time_templates.xml', | |||
|     ], | |||
|     'assets': { | |||
|         'web.assets_frontend': [ | |||
|             'delivery_slot/static/src/js/delivery_slot.js', | |||
|             'delivery_slot/static/src/js/slot_time.js', | |||
|             'delivery_slot/static/src/js/website_sale_utils.js', | |||
|         ], | |||
|     }, | |||
|     'images': ['static/description/banner.jpg'], | |||
|     'licence': 'AGPL-3', | |||
|     'installable': True, | |||
|     'auto_install': False, | |||
|     'application': False, | |||
| } | |||
| @ -0,0 +1,22 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | |||
| #    Author:  Manasa T P (odoo@cybrosys.com) | |||
| # | |||
| #    You can modify it under the terms of the GNU AFFERO | |||
| #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | |||
| # | |||
| #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | |||
| #    (AGPL v3) along with this program. | |||
| #    If not, see <http://www.gnu.org/licenses/>. | |||
| # | |||
| ############################################################################# | |||
| from . import delivery_slot | |||
| @ -0,0 +1,104 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | |||
| #    Author:  Manasa T P (odoo@cybrosys.com) | |||
| # | |||
| #    You can modify it under the terms of the GNU AFFERO | |||
| #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | |||
| # | |||
| #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | |||
| #    (AGPL v3) along with this program. | |||
| #    If not, see <http://www.gnu.org/licenses/>. | |||
| # | |||
| ############################################################################# | |||
| from odoo import http | |||
| from odoo.http import request | |||
| from odoo.addons.website_sale.controllers.main import WebsiteSale | |||
| 
 | |||
| 
 | |||
| class WebsiteSale(WebsiteSale): | |||
|     """Extends the WebsiteSale controller to add delivery slot functionality. | |||
|     """ | |||
| 
 | |||
|     @http.route(['/shop/cart'], type='http', auth="public", website=True) | |||
|     def cart(self, **post): | |||
|         """ Adding extra field to choose delivery date and slot for each | |||
|         cart lines""" | |||
|         val = super().cart(**post) | |||
|         is_delivery_slot = request.env['ir.config_parameter'].sudo().get_param( | |||
|             'delivery_slot.enable_delivery_date') | |||
|         slots = request.env['slot.time'].search([]) | |||
|         slot_home = request.env['slot.time'].search([]).filtered( | |||
|             lambda l: l.slot_type == 'home') | |||
|         slot_office = request.env['slot.time'].search([]).filtered( | |||
|             lambda l: l.slot_type == 'office') | |||
|         val.qcontext.update({ | |||
|             'is_delivery_slot': is_delivery_slot, | |||
|             'slots': slots, | |||
|             'slot_home': slot_home, | |||
|             'slot_office': slot_office, | |||
|         }) | |||
|         return val | |||
| 
 | |||
|     @http.route(['/shop/cart/update_json'], type='json', auth="public", | |||
|                 methods=['POST'], website=True, csrf=False) | |||
|     def cart_update_json(self, **kw): | |||
|         """Passing delivery date and slot values""" | |||
|         val = super().cart_update_json(**kw) | |||
|         is_delivery_slot = request.env['ir.config_parameter'].sudo().get_param( | |||
|             'delivery_slot.enable_delivery_date') | |||
|         slots = request.env['slot.time'].search([]) | |||
|         slot_home = request.env['slot.time'].search([]).filtered( | |||
|             lambda l: l.slot_type == 'home') | |||
|         slot_office = request.env['slot.time'].search([]).filtered( | |||
|             lambda l: l.slot_type == 'office') | |||
|         val.update({ | |||
|             'is_delivery_slot': is_delivery_slot, | |||
|             'slots': slots, | |||
|             'slot_home': slot_home, | |||
|             'slot_office': slot_office, | |||
|         }) | |||
|         return val | |||
| 
 | |||
|     @http.route(['/shop/cart/get_option'], type='json', auth="public", | |||
|                 website=True) | |||
|     def get_option(self, **kw): | |||
|         """ Called when changing the slot timing ie office hours or home hours | |||
|         returns the option chosen""" | |||
|         option = kw.get('selected_option') | |||
|         slot_filtered = request.env['slot.time'].search([]).filtered( | |||
|             lambda l: l.slot_type == option) | |||
|         options = [[slot.id, slot.name] for slot in slot_filtered] | |||
|         return options | |||
| 
 | |||
|     @http.route(['/shop/cart/set_delivery_date'], type='json', auth="public", | |||
|                 website=True) | |||
|     def set_delivery_date(self, **kwargs): | |||
|         """Sets the delivery date for each order line of sale order created""" | |||
|         order = request.website.sale_get_order() | |||
|         date = kwargs.get('delivery_date') | |||
|         line_id = int(kwargs.get('line_id')) | |||
|         for line in order.order_line: | |||
|             if line.id == line_id: | |||
|                 if date: | |||
|                     line.delivery_date = date | |||
| 
 | |||
|     @http.route(['/shop/cart/set_delivery_slot'], type='json', auth="public", | |||
|                 website=True) | |||
|     def set_delivery_slot(self, **kwargs): | |||
|         """Sets the delivery slots for each order line of sale order created""" | |||
|         order = request.website.sale_get_order() | |||
|         slot_id = int(kwargs.get('delivery_slot')) | |||
|         line_id = int(kwargs.get('line_id')) | |||
|         for line in order.order_line: | |||
|             if line.id == line_id: | |||
|                 if slot_id: | |||
|                     line.slot_id = request.env['slot.time'].browse(slot_id) | |||
| @ -0,0 +1,40 @@ | |||
| <?xml version="1.0" encoding="UTF-8" ?> | |||
| <odoo> | |||
|     <data noupdate="1"> | |||
|          <!-- Slot Time record 1 --> | |||
|         <record id="record_1" model="slot.time"> | |||
|             <field name="name">6AM TO 6PM</field> | |||
|             <field name="slot_type">home</field> | |||
|             <field name="time_from">6</field> | |||
|             <field name="time_to">18</field> | |||
|         </record> | |||
|          <!-- Slot Time record 2 --> | |||
|         <record id="record_2" model="slot.time"> | |||
|             <field name="name">9AM TO 5PM</field> | |||
|             <field name="slot_type">office</field> | |||
|             <field name="time_from">9</field> | |||
|             <field name="time_to">17</field> | |||
|         </record> | |||
|          <!-- Slot Time record 3 --> | |||
|         <record id="record_3" model="slot.time"> | |||
|             <field name="name">10AM TO 6PM</field> | |||
|             <field name="slot_type">office</field> | |||
|             <field name="time_from">10</field> | |||
|             <field name="time_to">18</field> | |||
|         </record> | |||
|          <!-- Slot Time record 4 --> | |||
|         <record id="record_4" model="slot.time"> | |||
|             <field name="name">2PM TO 5PM</field> | |||
|             <field name="slot_type">office</field> | |||
|             <field name="time_from">2</field> | |||
|             <field name="time_to">17</field> | |||
|         </record> | |||
|          <!-- Slot Time record 5 --> | |||
|         <record id="record_5" model="slot.time"> | |||
|             <field name="name">7AM TO 10PM</field> | |||
|             <field name="slot_type">home</field> | |||
|             <field name="time_from">7</field> | |||
|             <field name="time_to">22</field> | |||
|         </record> | |||
|     </data> | |||
| </odoo> | |||
| @ -0,0 +1,6 @@ | |||
| ## Module <delivery_slot> | |||
| 
 | |||
| #### 26.03.2025 | |||
| #### Version 17.0.1.0.0 | |||
| ##### ADD | |||
| - Initial Commit for Delivery Slot | |||
| @ -0,0 +1,26 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | |||
| #    Author:  Manasa T P (odoo@cybrosys.com) | |||
| # | |||
| #    You can modify it under the terms of the GNU AFFERO | |||
| #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | |||
| # | |||
| #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | |||
| #    (AGPL v3) along with this program. | |||
| #    If not, see <http://www.gnu.org/licenses/>. | |||
| # | |||
| ############################################################################# | |||
| from . import delivery_slot | |||
| from . import res_config_settings | |||
| from . import sale_order | |||
| from . import slot_time | |||
| from . import stock_move | |||
| @ -0,0 +1,99 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | |||
| #    Author:  Manasa T P (odoo@cybrosys.com) | |||
| # | |||
| #    You can modify it under the terms of the GNU AFFERO | |||
| #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | |||
| # | |||
| #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | |||
| #    (AGPL v3) along with this program. | |||
| #    If not, see <http://www.gnu.org/licenses/>. | |||
| # | |||
| ############################################################################# | |||
| from odoo import api, fields, models | |||
| 
 | |||
| 
 | |||
| class DeliverySlot(models.Model): | |||
|     """ Delivery slot model""" | |||
|     _name = 'delivery.slot' | |||
|     _description = 'Delivery slot' | |||
|     _rec_name = 'delivery_date' | |||
| 
 | |||
|     delivery_date = fields.Date( | |||
|         string='Delivery Date', default=fields.Date.today(), | |||
|         help="Choose a delivery date") | |||
|     slot_id = fields.Many2one('slot.time', string="slot", | |||
|                               help="Choose Delivery slot") | |||
|     delivery_ids = fields.One2many( | |||
|         'sale.order', 'delivery_slot_id', string="Delivery", | |||
|         compute="_compute_sale_ids", help="Related Deliveries") | |||
|     delivery_limit = fields.Integer(string="Delivery Limit", default=100, | |||
|                                     help="Limit of this delivery slot") | |||
|     total_delivery = fields.Integer( | |||
|         string="Total No of Deliveries", compute='_compute_total_delivery', | |||
|         help="Current deliveries in this slot") | |||
|     remaining_slots = fields.Integer( | |||
|         string="Available No of Deliveries", compute='_compute_remaining_slots' | |||
|         , help="Remaining no of deliveries in this slot") | |||
|     active = fields.Boolean( | |||
|         string='Active', default=True, help="Active or not") | |||
| 
 | |||
|     @api.depends('delivery_ids') | |||
|     def _compute_total_delivery(self): | |||
|         """ Update the total deliveries of the delivery slot""" | |||
|         for rec in self: | |||
|             rec.total_delivery = len(rec.delivery_ids or []) | |||
| 
 | |||
|     @api.depends('total_delivery', 'delivery_limit') | |||
|     def _compute_remaining_slots(self): | |||
|         """Calculate the remaining slots for each delivery slot and deactivate | |||
|          the slot if it is full""" | |||
|         self.remaining_slots = self.delivery_limit - self.total_delivery | |||
|         if self.remaining_slots <= 0: | |||
|             self.active = False | |||
| 
 | |||
|     @api.model_create_multi | |||
|     def create(self, vals): | |||
|         """Override create method to update delivery_ids""" | |||
|         delivery_slot = super(DeliverySlot, self).create(vals) | |||
|         delivery_slot.update_delivery_ids() | |||
|         return delivery_slot | |||
| 
 | |||
|     def write(self, vals): | |||
|         """Override write method to update delivery_ids""" | |||
|         if 'delivery_ids' not in vals: | |||
|             res = super(DeliverySlot, self).write(vals) | |||
|             self.update_delivery_ids() | |||
|             return res | |||
|         else: | |||
|             return super(DeliverySlot, self).write(vals) | |||
| 
 | |||
|     def update_delivery_ids(self): | |||
|         """Update the delivery_ids field based on related sale orders""" | |||
|         sale_orders = self.env['sale.order'].search( | |||
|             [('slot_per_product', '=', True)]) | |||
|         delivery_orders = sale_orders.filtered(lambda order: any( | |||
|             line.slot_id == self.slot_id and line.delivery_date == | |||
|             self.delivery_date | |||
|             for line in order.order_line)) | |||
|         self.delivery_ids = delivery_orders | |||
| 
 | |||
|     def _compute_sale_ids(self): | |||
|         """Computing the related sale orders of each delivery slot""" | |||
|         for rec in self: | |||
|             sale_orders = self.env['sale.order'].search( | |||
|                 [('slot_per_product', '=', True)]) | |||
|             delivery_orders = sale_orders.filtered(lambda order: any( | |||
|                 line.slot_id == rec.slot_id and line.delivery_date == | |||
|                 rec.delivery_date | |||
|                 for line in order.order_line)) | |||
|             rec.delivery_ids = delivery_orders | |||
| @ -0,0 +1,31 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | |||
| #    Author:  Manasa T P (odoo@cybrosys.com) | |||
| # | |||
| #    You can modify it under the terms of the GNU AFFERO | |||
| #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | |||
| # | |||
| #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | |||
| #    (AGPL v3) along with this program. | |||
| #    If not, see <http://www.gnu.org/licenses/>. | |||
| # | |||
| ############################################################################# | |||
| from odoo import fields, models | |||
| 
 | |||
| 
 | |||
| class ResConfigSettings(models.TransientModel): | |||
|     """ Inhering to add a field to enable delivery slot""" | |||
|     _inherit = 'res.config.settings' | |||
| 
 | |||
|     enable_delivery_date = fields.Boolean( | |||
|         string='Delivery Slot', config_parameter= | |||
|         'delivery_slot.enable_delivery_date', help="Enable delivery slot") | |||
| @ -0,0 +1,147 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | |||
| #    Author:  Manasa T P (odoo@cybrosys.com) | |||
| # | |||
| #    You can modify it under the terms of the GNU AFFERO | |||
| #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | |||
| # | |||
| #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | |||
| #    (AGPL v3) along with this program. | |||
| #    If not, see <http://www.gnu.org/licenses/>. | |||
| # | |||
| ############################################################################# | |||
| from datetime import timedelta | |||
| from odoo import fields, models | |||
| from odoo.addons.sale_stock.models.sale_order_line import SaleOrderLine | |||
| 
 | |||
| 
 | |||
| class SaleOrder(models.Model): | |||
|     """Inheriting sale order to add boolean field to enable delivery slot""" | |||
|     _inherit = 'sale.order' | |||
| 
 | |||
|     slot_per_product = fields.Boolean( | |||
|         string="Delivery Slot per Product", | |||
|         default=lambda self: self.env['ir.config_parameter'].sudo().get_param( | |||
|             'delivery_slot.enable_delivery_date'), | |||
|         help="Enable delivery slot feature") | |||
|     delivery_slot_id = fields.Many2one('delivery.slot', string='Delivery Slot', | |||
|                                        help="Delivery slot") | |||
|     slot_count = fields.Integer( | |||
|         string='Slot Count', compute='_compute_delivery_slot_count', | |||
|         help="Total no of delivery slot related to this sale order") | |||
| 
 | |||
|     def action_confirm(self): | |||
|         """Confirm the order and update delivery slot information. | |||
|             If `slot_per_product` is enabled, for each order line, the | |||
|             corresponding delivery slot is searched in the system. | |||
|             If found, the total delivery count is incremented. If not found, | |||
|             a new delivery slot is created with a delivery count of 1. | |||
|             :return: The result of the super method `action_confirm()`.""" | |||
|         if self.slot_per_product: | |||
|             for line in self.order_line: | |||
|                 delivery_slot = self.env['delivery.slot'].search( | |||
|                     [('delivery_date', '=', line.delivery_date), | |||
|                      ('slot_id', '=', line.slot_id.id), | |||
|                      ('active', '=', True)]) | |||
|                 if delivery_slot: | |||
|                     delivery_slot.total_delivery += 1 | |||
|                 else: | |||
|                     if line.slot_id: | |||
|                         if line.delivery_date: | |||
|                             self.env['delivery.slot'].create({ | |||
|                                 'delivery_date': line.delivery_date, | |||
|                                 'slot_id': line.slot_id.id, | |||
|                                 'total_delivery': 1, | |||
|                             }) | |||
| 
 | |||
|         return super().action_confirm() | |||
| 
 | |||
|     def _compute_delivery_slot_count(self): | |||
|         """Returns total number of delivery slots per record""" | |||
|         for record in self: | |||
|             if record.slot_per_product: | |||
|                 recs = { | |||
|                     slot_record.id | |||
|                     for line in record.order_line | |||
|                     if line.delivery_date | |||
|                     for slot_record in self.env['delivery.slot'].search([ | |||
|                         ('delivery_date', '=', line.delivery_date), | |||
|                         ('slot_id', '=', line.slot_id.id), | |||
|                         ('active', '=', True)], limit=1) | |||
|                 } | |||
|                 record.slot_count = len(recs) | |||
|             else: | |||
|                 record.slot_count = 0 | |||
| 
 | |||
|     def action_view_delivery_slot(self): | |||
|         """Returns all delivery slot related to the sale order""" | |||
|         rec = [ | |||
|             slot_record.id | |||
|             for record in self | |||
|             if record.slot_per_product | |||
|             for line in record.order_line | |||
|             for slot_record in self.env['delivery.slot'].search([ | |||
|                 ('delivery_date', '=', line.delivery_date or self.date_order), | |||
|                 ('slot_id', '=', line.slot_id.id), | |||
|                 ('active', '=', True)], limit=1) | |||
|         ] | |||
|         return { | |||
|             'type': 'ir.actions.act_window', | |||
|             'name': 'Delivery Slots', | |||
|             'view_mode': 'tree,form', | |||
|             'res_model': 'delivery.slot', | |||
|             'domain': [('id', 'in', rec)], | |||
|             'context': "{'create': False}" | |||
|         } | |||
| 
 | |||
| 
 | |||
| class SaleOrderLine(models.Model): | |||
|     """Inheriting sale order line to add slot fields""" | |||
|     _inherit = 'sale.order.line' | |||
| 
 | |||
|     delivery_date = fields.Date(string="Delivery Date", help="Delivery date") | |||
|     slot_id = fields.Many2one('slot.time', string="Time Slot", | |||
|                               help="Delivery time") | |||
|     delivery_slot_id = fields.Many2one( | |||
|         'delivery.slot', string='Delivery Slot', help="Related Delivery Slot") | |||
| 
 | |||
|     def _prepare_procurement_values(self, group_id=False): | |||
|         """ Prepare specific key for moves or other components that will be | |||
|         created from a stock rule coming from a sale order line. This method | |||
|         could be overridden in order to add other custom key that could | |||
|         be used in move/po creation. | |||
|         """ | |||
|         date_deadline = self.delivery_date or ( | |||
|                 self.order_id.date_order + timedelta( | |||
|             days=self.customer_lead or 0.0)) | |||
|         date_planned = date_deadline - timedelta( | |||
|             days=self.order_id.company_id.security_lead) | |||
|         values = { | |||
|             'group_id': group_id, | |||
|             'sale_line_id': self.id, | |||
|             'date_planned': date_planned, | |||
|             'date_deadline': date_deadline, | |||
|             'route_ids': self.route_id, | |||
|             'warehouse_id': self.order_id.warehouse_id or False, | |||
|             'product_description_variants': self.with_context( | |||
|                 lang=self.order_id.partner_id.lang). | |||
|             _get_sale_order_line_multiline_description_variants(), | |||
|             'company_id': self.order_id.company_id, | |||
|             'product_packaging_id': self.product_packaging_id, | |||
|             'sequence': self.sequence, | |||
|         } | |||
|         if self.order_id.slot_per_product: | |||
|             values.update({"slot_per_product": 'True'}) | |||
|             if self.slot_id: | |||
|                 values.update({'slot_time_id': self.slot_id.id}) | |||
|         return values | |||
|     SaleOrderLine._prepare_procurement_values = _prepare_procurement_values | |||
| @ -0,0 +1,61 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | |||
| #    Author:  Manasa T P (odoo@cybrosys.com) | |||
| # | |||
| #    You can modify it under the terms of the GNU AFFERO | |||
| #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | |||
| # | |||
| #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | |||
| #    (AGPL v3) along with this program. | |||
| #    If not, see <http://www.gnu.org/licenses/>. | |||
| # | |||
| ############################################################################# | |||
| from odoo import fields, models | |||
| 
 | |||
| 
 | |||
| class SlotTime(models.Model): | |||
|     """Slot time model""" | |||
|     _name = 'slot.time' | |||
|     _description = 'Delivery time' | |||
| 
 | |||
|     name = fields.Char(string='Slot', help="Slot name") | |||
|     slot_type = fields.Selection([ | |||
|         ('home', 'Home Hours'), ('office', 'Office Hours')], | |||
|         string="Slot type", help="Slot will be shown based on this slot type") | |||
|     time_from = fields.Selection([ | |||
|         ('0', '12:00 AM'), ('1', '1:00 AM'), | |||
|         ('2', '2:00 AM'), ('3', '3:00 AM'), | |||
|         ('4', '4:00 AM'), ('5', '5:00 AM'), | |||
|         ('6', '6:00 AM'), ('7', '7:00 AM'), | |||
|         ('8', '8:00 AM'), ('9', '9:00 AM'), | |||
|         ('10', '10:00 AM'), ('11', '11:00 AM'), | |||
|         ('12', '12:00 PM'), ('13', '1:00 PM'), | |||
|         ('14', '2:00 PM'), ('15', '3:00 PM'), | |||
|         ('16', '4:00 PM'), ('17', '5:00 PM'), | |||
|         ('18', '6:00 PM'), ('19', '7:00 PM'), | |||
|         ('20', '8:00 PM'), ('21', '9:00 PM'), | |||
|         ('22', '10:00 PM'), ('23', '11:00 PM') | |||
|     ], string='Time From', help="From time") | |||
|     time_to = fields.Selection([ | |||
|         ('0', '12:00 AM'), ('1', '1:00 AM'), | |||
|         ('2', '2:00 AM'), ('3', '3:00 AM'), | |||
|         ('4', '4:00 AM'), ('5', '5:00 AM'), | |||
|         ('6', '6:00 AM'), ('7', '7:00 AM'), | |||
|         ('8', '8:00 AM'), ('9', '9:00 AM'), | |||
|         ('10', '10:00 AM'), ('11', '11:00 AM'), | |||
|         ('12', '12:00 PM'), ('13', '1:00 PM'), | |||
|         ('14', '2:00 PM'), ('15', '3:00 PM'), | |||
|         ('16', '4:00 PM'), ('17', '5:00 PM'), | |||
|         ('18', '6:00 PM'), ('19', '7:00 PM'), | |||
|         ('20', '8:00 PM'), ('21', '9:00 PM'), | |||
|         ('22', '10:00 PM'), ('23', '11:00 PM')], | |||
|         string='Time To', help="To time") | |||
| @ -0,0 +1,81 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | |||
| #    Author:  Manasa T P (odoo@cybrosys.com) | |||
| # | |||
| #    You can modify it under the terms of the GNU AFFERO | |||
| #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | |||
| # | |||
| #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | |||
| #    (AGPL v3) along with this program. | |||
| #    If not, see <http://www.gnu.org/licenses/>. | |||
| # | |||
| ############################################################################# | |||
| from odoo import models | |||
| from odoo.tools import float_compare | |||
| from odoo.tools.misc import groupby | |||
| from odoo.addons.stock.models.stock_move import StockMove | |||
| 
 | |||
| 
 | |||
| class StockMoves(models.Model): | |||
|     """Inheriting the stock move model""" | |||
|     _inherit = 'stock.move' | |||
| 
 | |||
|     def _assign_picking(self): | |||
|         """ Try to assign the moves to an existing picking that has not been | |||
|         reserved yet and has the same procurement group, locations, and picking | |||
|         type (moves should already have them identical). Otherwise, create a | |||
|         new picking to assign them to. """ | |||
|         picking_obj = self.env['stock.picking'] | |||
|         grouped_moves = groupby(self, | |||
|                                 key=lambda m: m._key_assign_picking()) | |||
|         for group, moves in grouped_moves: | |||
|             moves = self.env['stock.move'].concat(*moves) | |||
|             # Could pass the arguments contained in group, but they are the | |||
|             # same for each move that's why moves[0] is acceptable | |||
|             picking = moves[0]._search_picking_for_assignation() | |||
|             if picking: | |||
|                 # If a picking is found, we'll append `move` to its move list | |||
|                 # and thus its `partner_id` and `ref` field will refer to | |||
|                 # multiple records. | |||
|                 # In this case, we chose to wipe them. | |||
|                 vals = {} | |||
|                 if any(picking.partner_id.id != m.partner_id.id for m in | |||
|                        moves): | |||
|                     vals['partner_id'] = False | |||
|                 if any(picking.origin != m.origin for m in moves): | |||
|                     vals['origin'] = False | |||
|                 if vals: | |||
|                     picking.write(vals) | |||
|             else: | |||
|                 # Don't create picking for negative moves since they will be | |||
|                 # reversed and assigned to another picking | |||
|                 moves = moves.filtered(lambda m: float_compare( | |||
|                     m.product_uom_qty, 0.0, precision_rounding= | |||
|                     m.product_uom.rounding) >= 0) | |||
|                 if not moves: | |||
|                     continue | |||
|                 pick_values = moves._get_new_picking_values() | |||
|                 sale_order = self.env['sale.order'].search([ | |||
|                     ('name', '=', pick_values['origin'])]) | |||
|                 if sale_order.slot_per_product: | |||
|                     for move in moves: | |||
|                         new_picking = picking_obj.create( | |||
|                             move._get_new_picking_values()) | |||
|                         move.write({'picking_id': new_picking.id}) | |||
|                         move._assign_picking_post_process(new=new_picking) | |||
|                 else: | |||
|                     new_picking = picking_obj.create( | |||
|                         moves._get_new_picking_values()) | |||
|                     moves.write({'picking_id': new_picking.id}) | |||
|                     moves._assign_picking_post_process(new=new_picking) | |||
|         return True | |||
|     StockMove._assign_picking = _assign_picking | |||
| 
 | 
| 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: 3.4 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: 80 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: 3.2 KiB | 
| After Width: | Height: | Size: 589 B | 
| After Width: | Height: | Size: 3.4 KiB | 
| After Width: | Height: | Size: 565 B | 
| After Width: | Height: | Size: 1.7 KiB | 
| After Width: | Height: | Size: 2.3 KiB | 
| After Width: | Height: | Size: 967 B | 
| After Width: | Height: | Size: 26 KiB | 
| After Width: | Height: | Size: 1.6 KiB | 
| After Width: | Height: | Size: 43 KiB | 
| After Width: | Height: | Size: 1.4 KiB | 
| After Width: | Height: | Size: 3.8 KiB | 
| After Width: | Height: | Size: 4.0 KiB | 
| After Width: | Height: | Size: 38 KiB | 
| After Width: | Height: | Size: 5.0 KiB | 
| After Width: | Height: | Size: 4.3 KiB | 
| After Width: | Height: | Size: 32 KiB | 
| After Width: | Height: | Size: 34 KiB | 
| After Width: | Height: | Size: 48 KiB | 
| After Width: | Height: | Size: 45 KiB | 
| After Width: | Height: | Size: 33 KiB | 
| After Width: | Height: | Size: 34 KiB | 
| After Width: | Height: | Size: 216 KiB | 
| After Width: | Height: | Size: 60 KiB | 
| After Width: | Height: | Size: 80 KiB | 
| After Width: | Height: | Size: 104 KiB | 
| After Width: | Height: | Size: 86 KiB | 
| After Width: | Height: | Size: 88 KiB | 
| After Width: | Height: | Size: 71 KiB | 
| After Width: | Height: | Size: 73 KiB | 
| After Width: | Height: | Size: 16 KiB | 
| @ -0,0 +1,818 @@ | |||
| <!DOCTYPE html> | |||
| <html lang="en"> | |||
| <head> | |||
|     <meta charset="UTF-8"> | |||
|     <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |||
|     <title>Odoo App 3 Index</title> | |||
|     <!-- Bootstrap CSS --> | |||
|     <link rel="stylesheet" | |||
|           href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" | |||
|           integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" | |||
|           crossorigin="anonymous"> | |||
|     <link rel="stylesheet" | |||
|           href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"> | |||
|     <link rel="preconnect" href="https://fonts.googleapis.com"> | |||
|     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |||
|     <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" | |||
|           rel="stylesheet"> | |||
| </head> | |||
| <body> | |||
| <section> | |||
|     <div class="container" | |||
|          style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;"> | |||
|         <div class="row"> | |||
|             <div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center" | |||
|                  style="border-bottom:1px solid rgba(0, 0, 0, 0.22)"> | |||
|                 <div class="my-3"> | |||
|                     <img src="assets/misc/Cybrosys R.png" | |||
|                          style="width:auto !important; height:40px !important"> | |||
|                 </div> | |||
|                 <div class="my-3 d-flex align-items-center"> | |||
|                     <div class="text-center" | |||
|                          style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> | |||
|                         Community | |||
|                     </div> | |||
|                     <div class="text-center" | |||
|                          style="background-color:#875A7B !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important;min-width: 120px !important;"> | |||
|                         Enterprise | |||
|                     </div> | |||
|                     <div class="text-center" | |||
|                          style="background-color:#7C7BAD !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> | |||
|                         Odoo.sh | |||
|                     </div> | |||
|                 </div> | |||
|             </div> | |||
|         </div> | |||
|         <div class="row"> | |||
|             <div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column" | |||
|                  style="margin: 80px 0px !important;"> | |||
|                 <h1 style="font-size: 2.8rem;font-weight: 700; color: | |||
|                     #1A202C;"> | |||
|                     Delivery Slot</h1> | |||
|                 <p class="my-3 mb-4" | |||
|                    style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;"> | |||
|                     A Module For Adding Delivery Slot For Each Product | |||
|                 </p> | |||
|                 <div style="width: 80%; margin-top: 3rem;"> | |||
|                     <img src="assets/screenshots/hero.gif" | |||
|                          class="img-responsive" width="100%" height="auto"> | |||
|                 </div> | |||
|             </div> | |||
|         </div> | |||
|         <div class="container mt-5 mb-5"> | |||
|             <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> | |||
|                 <p class="m-0" | |||
|                    style="font-weight: 600; font-size: 24px; color:#714b67 !important"> | |||
|                     Key Highlights | |||
|                 </p> | |||
|             </div> | |||
|             <div class="row py-4"> | |||
|                 <div class="col-md-6 col-sm-12 p-3"> | |||
|                     <div class="d-flex   h-100" style="padding: 30px;border-radius: 12px; | |||
|                                     background: #FFF; | |||
|                                     box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> | |||
|                         <div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; | |||
|                                     display: flex; justify-content: center; align-items: center; | |||
|                                     margin-right: 10px; flex-shrink: 0;"> | |||
|                             <i class="fa-solid fa-star  " | |||
|                                style="color: #fff;font-size:14px;"></i> | |||
|                         </div> | |||
|                         <div> | |||
|                             <p style="color: #1A202C;font-weight: 600; | |||
|                                       font-size: 1.2rem; margin-bottom: 2px;"> | |||
|                                 Community & Enterprise Support.</p> | |||
|                             <p class="m-0" style="color:#718096"> | |||
|                             </p> | |||
|                         </div> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-6 col-sm-12 p-3"> | |||
|                     <div class="d-flex   h-100" style="padding: 30px;border-radius: 12px; | |||
|                                     background: #FFF; | |||
|                                     box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> | |||
|                         <div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; | |||
|                                     display: flex; justify-content: center; align-items: center; | |||
|                                     margin-right: 10px; flex-shrink: 0;"> | |||
|                             <i class="fa-solid fa-star  " | |||
|                                style="color: #fff;font-size:14px;"></i> | |||
|                         </div> | |||
|                         <div> | |||
|                             <p style="color: #1A202C;font-weight: 600; | |||
|                                       font-size: 1.2rem; margin-bottom: 2px;"> | |||
|                                 Option to Enable/Disable Delivery Slot</p> | |||
|                             <p class="m-0" style="color:#718096"> | |||
|                             </p> | |||
|                         </div> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-6 col-sm-12 p-3"> | |||
|                     <div class="d-flex   h-100" style="padding: 30px;border-radius: 12px; | |||
|                                     background: #FFF; | |||
|                                     box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> | |||
|                         <div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; | |||
|                                     display: flex; justify-content: center; align-items: center; | |||
|                                     margin-right: 10px; flex-shrink: 0;"> | |||
|                             <i class="fa-solid fa-star  " | |||
|                                style="color: #fff;font-size:14px;"></i> | |||
|                         </div> | |||
|                         <div> | |||
|                             <p style="color: #1A202C;font-weight: 600; | |||
|                                       font-size: 1.2rem; margin-bottom: 2px;"> | |||
|                                 Multiple deliveries are Created</p> | |||
|                             <p class="m-0" style="color:#718096"> | |||
|                             </p> | |||
|                         </div> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-6 col-sm-12 p-3"> | |||
|                     <div class="d-flex   h-100" style="padding: 30px;border-radius: 12px; | |||
|                                     background: #FFF; | |||
|                                     box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> | |||
|                         <div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; | |||
|                                     display: flex; justify-content: center; align-items: center; | |||
|                                     margin-right: 10px; flex-shrink: 0; "> | |||
|                             <i class="fa-solid fa-star  " | |||
|                                style="color: #fff;font-size:14px;"></i> | |||
|                         </div> | |||
|                         <div> | |||
|                             <p style="color: #1A202C;font-weight: 600; | |||
|                                       font-size: 1.2rem; margin-bottom: 2px;"> | |||
|                                 Set Delivery Date and Delivery Slot For Each | |||
|                                 Product.</p> | |||
|                             <p class="m-0" style="color:#718096"> | |||
|                             </p> | |||
|                         </div> | |||
|                     </div> | |||
|                 </div> | |||
|             </div> | |||
|         </div> | |||
|         <div class="container rounded"> | |||
|             <ul class="nav nav-tabs d-flex" | |||
|                 style="width: fit-content;margin: 0 auto;gap: 1rem;"> | |||
|                 <li class="col text-center py-2 text-nowrap " | |||
|                     style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> | |||
|                     <a | |||
|                             class="active show" data-toggle="tab" href="#tab1" | |||
|                             style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;"> | |||
|                         <i class="fa-regular fa-image  pr-2" | |||
|                            style="color: #fff;"></i> | |||
|                         Screenshots</a></li> | |||
|                 <li class="col text-center py-2 text-nowrap " | |||
|                     style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> | |||
|                     <a | |||
|                             data-toggle="tab" href="#tab2" | |||
|                             style="color: #fff;font-weight: 500;  text-decoration: none;"><i | |||
|                             class="fa-solid fa-star  pr-2" | |||
|                             style="color: #fff;"></i>Features</a></li> | |||
|                 <li class="col text-center py-2 text-nowrap " | |||
|                     style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> | |||
|                     <a | |||
|                             data-toggle="tab" href="#tab3" | |||
|                             style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i | |||
|                             class="fa-solid fa-book-open  pr-2" | |||
|                             style="color: #fff;"></i>Released Notes</a></li> | |||
|             </ul> | |||
|             <div class="tab-content" | |||
|                  style="background-color: rgba(121, 113, 119, 0.04);"> | |||
|                 <div id="tab1" class="tab-pane fade in active show"> | |||
|                     <div class="col-lg-12 py-2" | |||
|                          style="padding: 1rem 4rem !important;"> | |||
|                         <div | |||
|                                 style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | |||
|                             <div class="row justify-content-center p-3 w-100 m-0"> | |||
|                                 <img src="assets/screenshots/image6.png" | |||
|                                      class="img-responsive" width="100%" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                             <div class="px-3"> | |||
|                                 <h4 class="mt-2" | |||
|                                     style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | |||
|                                     Enable Delivery Slot</h4> | |||
|                                 <h6> | |||
|                                     Enable 'Delivery Slot' feature in website | |||
|                                     configuration settings, then we can add | |||
|                                     delivery slot for each product from the | |||
|                                     cart. | |||
|                                 </h6> | |||
|                             </div> | |||
|                         </div> | |||
|                     </div> | |||
|                     <div class="col-lg-12 py-2" | |||
|                          style="padding: 1rem 4rem !important;"> | |||
|                         <div | |||
|                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | |||
|                             <div class="row justify-content-center p-3 w-100 m-0"> | |||
|                                 <img src="assets/screenshots/image1.png" | |||
|                                      class="img-responsive" width="100%" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                             <div class="px-3"> | |||
|                                 <h4 class="mt-2" | |||
|                                     style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | |||
|                                     Configure Slot Time and Delivery Slot</h4> | |||
|                                 <h6> | |||
|                                     Navigate to Sales → Configuration → Slot | |||
|                                     Timing to create time slots. Delivery slots | |||
|                                     can also be configured, though they | |||
|                                     will be automatically generated upon | |||
|                                     confirming a sale order if the 'Delivery | |||
|                                     Slot' feature is enabled. | |||
|                                 </h6> | |||
|                             </div> | |||
|                         </div> | |||
|                     </div> | |||
|                     <div class="col-lg-12 py-2" | |||
|                          style="padding: 1rem 4rem !important;"> | |||
|                         <div | |||
|                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | |||
|                             <div class="row justify-content-center p-3 w-100 m-0"> | |||
|                                 <img src="assets/screenshots/image2.png" | |||
|                                      class="img-responsive" width="100%" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                             <div class="px-3"> | |||
|                                 <h4 class="mt-2" | |||
|                                     style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | |||
|                                     Choose Delivery Date And Delivery Slot | |||
|                                 </h4><h6> | |||
|                                 When the Delivery Slot feature is enabled, we | |||
|                                 can add a delivery date and delivery slot for | |||
|                                 each cart line. It is mandatory to provide both | |||
|                                 delivery date and slot to create separate | |||
|                                 delivery slot for each product. We have the | |||
|                                 option to choose both office hours and home | |||
|                                 hours. | |||
| 
 | |||
| 
 | |||
|                             </h6> | |||
|                             </div> | |||
|                         </div> | |||
|                     </div> | |||
|                     <div class="col-lg-12 py-2" | |||
|                          style="padding: 1rem 4rem !important;"> | |||
|                         <div | |||
|                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | |||
|                             <div class="row justify-content-center p-3 w-100 m-0"> | |||
|                                 <img src="assets/screenshots/image3.png" | |||
|                                      class="img-responsive" width="100%" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                             <div class="px-3"> | |||
|                                 <h4 class="mt-2" | |||
|                                     style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | |||
|                                     Multiple Deliveries | |||
|                                 </h4><h6> | |||
|                                 After the payment, a sale order is created with | |||
|                                 multiple deliveries, and we can see the | |||
|                                 corresponding delivery slots. | |||
|                             </h6> | |||
|                             </div> | |||
|                         </div> | |||
|                     </div> | |||
|                     <div class="col-lg-12 py-2" | |||
|                          style="padding: 1rem 4rem !important;"> | |||
|                         <div | |||
|                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | |||
|                             <div class="row justify-content-center p-3 w-100 m-0"> | |||
|                                 <img src="assets/screenshots/image4.png" | |||
|                                      class="img-responsive" width="100%" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                              <div class="px-3"> | |||
|                                 <h4 class="mt-2" | |||
|                                     style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | |||
|                                     Create Sale Order | |||
|                                 </h4><h6> | |||
|                                  When creating a sale order from the backend, | |||
|                                     we have the option to enable the delivery | |||
|                                     slot per product. Then, we can choose the | |||
|                                     delivery date and slot for each product from | |||
|                                     the order line. Both delivery date and slot | |||
|                                     should be added to the orderline for which | |||
|                                     we want to create separate delivery slot. | |||
|                             </h6> | |||
|                             </div> | |||
|                         </div> | |||
|                     </div> | |||
|                     <div class="col-lg-12 py-2" | |||
|                          style="padding: 1rem 4rem !important;"> | |||
|                         <div | |||
|                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | |||
|                             <div class="row justify-content-center p-3 w-100 m-0"> | |||
|                                 <img src="assets/screenshots/image5.png" | |||
|                                      class="img-responsive" width="100%" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                              <div class="px-3"> | |||
|                                 <h4 class="mt-2" | |||
|                                     style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | |||
|                                     Confirm Sale Order | |||
|                                 </h4><h6> | |||
|                                 Upon confirming the sale order, multiple | |||
|                                     deliveries are created based on the selected | |||
|                                     delivery date and slot. | |||
|                             </h6> | |||
|                             </div> | |||
|                         </div> | |||
|                     </div> | |||
|                     <div class="col-lg-12 py-2" | |||
|                          style="padding: 1rem 4rem !important;"> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div id="tab2" class="tab-pane fade"> | |||
|                     <div class="col-mg-12" style="padding: 1rem 4rem;"> | |||
|                         <ul style="list-style: none; padding: 1rem 0;font-weight: 500;"> | |||
|                             <li class="py-3" | |||
|                                 style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | |||
|                                     <span style="margin-right: 12px;"><img | |||
|                                             src="assets/misc/star (1) 2.svg" | |||
|                                             alt="" | |||
|                                             width="16px"></span> | |||
|                                 Limited number of Deliveries In Each Slots. | |||
|                             </li> | |||
|                             <li class="py-3" | |||
|                                 style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | |||
|                                     <span style="margin-right: 12px;"><img | |||
|                                             src="assets/misc/star (1) 2.svg" | |||
|                                             alt="" | |||
|                                             width="16px"></span> | |||
|                                 Multiple deliveries are Created. | |||
|                             </li> | |||
|                             <li class="py-3" | |||
|                                 style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | |||
|                                     <span style="margin-right: 12px;"><img | |||
|                                             src="assets/misc/star (1) 2.svg" | |||
|                                             alt="" | |||
|                                             width="16px"></span> | |||
|                                 Set Delivery Date and Delivery Slot For Each | |||
|                                 Product. | |||
| 
 | |||
|                             </li> | |||
|                             <li class="py-3" | |||
|                                 style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | |||
|                                     <span style="margin-right: 12px;"><img | |||
|                                             src="assets/misc/star (1) 2.svg" | |||
|                                             alt="" | |||
|                                             width="16px"></span> | |||
|                                 Available in Odoo 17.0 Community and Enterprise. | |||
|                             </li> | |||
|                         </ul> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div id="tab3" class="tab-pane fade"> | |||
|                     <div class="col-mg-12 active" style="padding: 1rem 4rem;"> | |||
|                         <div class="py-3" | |||
|                              style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | |||
|                             <div class="d-flex mb-3" | |||
|                                  style="font-size: 0.8rem; font-weight: 500;"><span>Version | |||
|                                         17.0.1.0.0</span><span | |||
|                                     class="px-2">|</span><span | |||
|                                     style="color: #714B67;font-weight: 600;">Released on:17th October 2024</span> | |||
|                             </div> | |||
|                             <p class="m-0" | |||
|                                style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> | |||
|                                 Initial Commit for Delivery Slot.</p> | |||
|                         </div> | |||
|                     </div> | |||
|                 </div> | |||
|             </div> | |||
|         </div> | |||
|         <div class="container mt-5"> | |||
|             <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> | |||
|                 <p class="m-0" | |||
|                    style="font-weight: 600; font-size: 24px; color:#000 !important"> | |||
|                     Related Products</p> | |||
|             </div> | |||
|         </div> | |||
|         <div id="myCarousel" class="carousel slide py-3" data-ride="carousel"> | |||
|             <div class="carousel-inner"> | |||
|                 <div class="carousel-item active"> | |||
|                     <div class="row p-4"> | |||
|                         <div class="col"> | |||
|                             <div class="p-3"> | |||
|                                 <a href="https://apps.odoo.com/apps/modules/17.0/invoice_format_editor/" | |||
|                                    style="color: #000; text-decoration: none;"> | |||
|                                     <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | |||
|                                         <div style="width: 300px; "> | |||
|                                             <img src="assets/modules/m1.png" | |||
|                                                  alt="" width="100%" | |||
|                                                  height="auto"> | |||
| 
 | |||
|                                         </div> | |||
|                                         <p class="text-center pt-2 text-black font-weight-bold"> | |||
|                                             Invoice Format Editor</p> | |||
|                                     </div> | |||
|                                 </a> | |||
|                             </div> | |||
|                         </div> | |||
|                         <div class="col"> | |||
|                             <div class="p-3"> | |||
|                                 <a href="https://apps.odoo.com/apps/modules/17.0/inventory_barcode_scanning/" | |||
|                                    style="color: #000; text-decoration: none;"> | |||
|                                     <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | |||
|                                         <div style="width: 300px; "> | |||
|                                             <img src="assets/modules/m2.png" | |||
|                                                  alt="" width="100%" | |||
|                                                  height="auto"> | |||
| 
 | |||
|                                         </div> | |||
|                                         <p class="text-center pt-2 text-black font-weight-bold"> | |||
|                                             Barcode scanning in Inventory</p> | |||
|                                     </div> | |||
|                                 </a> | |||
|                             </div> | |||
|                         </div> | |||
|                         <div class="col"> | |||
|                             <div class="p-3"> | |||
|                                 <a href="https://apps.odoo.com/apps/modules/17.0/whatsapp_redirect/" | |||
|                                    style="color: #000; text-decoration: none;"> | |||
|                                     <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | |||
|                                         <div style="width: 300px; "> | |||
|                                             <img src="assets/modules/m3.png" | |||
|                                                  alt="" width="100%" | |||
|                                                  height="auto"> | |||
| 
 | |||
|                                         </div> | |||
|                                         <p class="text-center pt-2 text-black font-weight-bold"> | |||
|                                             Send Whatsapp Message</p> | |||
|                                     </div> | |||
|                                 </a> | |||
|                             </div> | |||
|                         </div> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="carousel-item"> | |||
|                     <div class="row p-4"> | |||
|                         <div class="col"> | |||
|                             <div class="p-3"> | |||
|                                 <a href="https://apps.odoo.com/apps/modules/17.0/base_account_budget/" | |||
|                                    style="color: #000; text-decoration: none;"> | |||
|                                     <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | |||
|                                         <div style="width: 300px; "> | |||
|                                             <img src="assets/modules/m4.png" | |||
|                                                  alt="" width="100%" | |||
|                                                  height="auto"> | |||
| 
 | |||
|                                         </div> | |||
|                                         <p class="text-center pt-2 text-black font-weight-bold"> | |||
|                                             Budget Management</p> | |||
|                                     </div> | |||
|                                 </a> | |||
|                             </div> | |||
|                         </div> | |||
|                         <div class="col"> | |||
|                             <div class="p-3"> | |||
|                                 <a href="https://apps.odoo.com/apps/modules/17.0/product_barcode/" | |||
|                                    style="color: #000; text-decoration: none;"> | |||
|                                     <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | |||
|                                         <div style="width: 300px;"> | |||
|                                             <img src="assets/modules/m5.png" | |||
|                                                  alt="" width="100%" | |||
|                                                  height="auto"> | |||
| 
 | |||
|                                         </div> | |||
|                                         <p class="text-center pt-2 text-black font-weight-bold"> | |||
|                                             Product Barcode Generator</p> | |||
|                                     </div> | |||
|                                 </a> | |||
|                             </div> | |||
|                         </div> | |||
|                         <div class="col"> | |||
|                             <div class="p-3"> | |||
|                                 <a href="https://apps.odoo.com/apps/modules/17.0/export_stockinfo_xls/" | |||
|                                    style="color: #000; text-decoration: none;"> | |||
|                                     <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | |||
|                                         <div style="width: 300px;"> | |||
|                                             <img src="assets/modules/m6.png" | |||
|                                                  alt="" width="100%" | |||
|                                                  height="auto"> | |||
|                                         </div> | |||
|                                         <p class="text-center pt-2 text-black font-weight-bold"> | |||
|                                             Export Product Stock in Excel</p> | |||
|                                     </div> | |||
|                                 </a> | |||
|                             </div> | |||
|                         </div> | |||
|                     </div> | |||
|                 </div> | |||
|             </div> | |||
|             <a class="carousel-control-prev" href="#myCarousel" | |||
|                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="#myCarousel" | |||
|                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 class="container mt-5"> | |||
|             <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> | |||
|                 <p class="m-0" | |||
|                    style="font-weight: 600; font-size: 24px; color:#000 !important"> | |||
|                     Our Services</p> | |||
|             </div> | |||
|         </div> | |||
|         <div class="container my-5"> | |||
|             <div class="row py-3"> | |||
|                 <div class="col-md-4 col-sm-6 px-4 py-4"> | |||
|                     <div | |||
|                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | |||
|                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | |||
|                             <div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px;    width: 68px; | |||
|                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | |||
|                                 <img src="assets/icons/cogs.png" | |||
|                                      alt="service-icon" width="38px" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                         </div> | |||
|                         <p style="margin-top: 20px; font-weight: bold;">Odoo | |||
|                             Customization</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-4 col-sm-6 px-4 py-4"> | |||
|                     <div | |||
|                             style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | |||
|                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | |||
|                             <div style="background-color:#DBC711; border-radius: 50%; padding: 15px;    width: 68px; | |||
|                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | |||
|                                 <img src="assets/icons/wrench.png" | |||
|                                      alt="service-icon" width="38px" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                         </div> | |||
|                         <p style="margin-top: 20px; font-weight: bold;">Odoo | |||
|                             Implementation</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-4 col-sm-6 px-4 py-4"> | |||
|                     <div | |||
|                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> | |||
|                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | |||
|                             <div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px;    width: 68px; | |||
|                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | |||
|                                 <img src="assets/icons/lifebuoy.png" | |||
|                                      alt="service-icon" width="38px" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                         </div> | |||
|                         <p style="margin-top: 20px; font-weight: bold;">Odoo | |||
|                             Support</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-4 col-sm-6 px-4 py-4"> | |||
|                     <div | |||
|                             style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> | |||
|                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | |||
|                             <div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px;    width: 68px; | |||
|                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | |||
|                                 <img src="assets/icons/user.png" | |||
|                                      alt="service-icon" width="38px" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                         </div> | |||
|                         <p style="margin-top: 20px; font-weight: bold;">Hire | |||
|                             Odoo Developer</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-4 col-sm-6 px-4 py-4"> | |||
|                     <div | |||
|                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> | |||
| 
 | |||
|                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | |||
|                             <div style="background-color:#54A0FF; border-radius: 50%; padding: 15px;    width: 68px; | |||
|                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | |||
|                                 <img src="assets/icons/puzzle.png" | |||
|                                      alt="service-icon" width="38px" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                         </div> | |||
|                         <p style="margin-top: 20px; font-weight: bold;">Odoo | |||
|                             Integration</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-4 col-sm-6 px-4 py-4"> | |||
|                     <div | |||
|                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | |||
|                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | |||
|                             <div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px;    width: 68px; | |||
|                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | |||
|                                 <img src="assets/icons/update.png" | |||
|                                      alt="service-icon" width="38px" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                         </div> | |||
|                         <p style="margin-top: 20px; font-weight: bold;">Odoo | |||
|                             Migration</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-4 col-sm-6 px-4 py-4"> | |||
|                     <div | |||
|                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | |||
|                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | |||
|                             <div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px;    width: 68px; | |||
|                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | |||
|                                 <img src="assets/icons/consultation.png" | |||
|                                      alt="service-icon" width="38px" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                         </div> | |||
|                         <p style="margin-top: 20px; font-weight: bold;">Odoo | |||
|                             Consultancy</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-4 col-sm-6 px-4 py-4"> | |||
|                     <div | |||
|                             style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;"> | |||
|                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | |||
|                             <div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px;    width: 68px; | |||
|                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | |||
|                                 <img src="assets/icons/training.png" | |||
|                                      alt="service-icon" width="38px" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                         </div> | |||
|                         <p style="margin-top: 20px; font-weight: bold;">Odoo | |||
|                             Implementation</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-4 col-sm-6 px-4 py-4"> | |||
|                     <div | |||
|                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | |||
|                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | |||
|                             <div style="background-color:#E6BE26; border-radius: 50%; padding: 15px;    width: 68px; | |||
|                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | |||
|                                 <img src="assets/icons/license.png" | |||
|                                      alt="service-icon" width="38px" | |||
|                                      height="auto"> | |||
|                             </div> | |||
|                         </div> | |||
|                         <p style="margin-top: 20px; font-weight: bold;">Odoo | |||
|                             Licensing Consultancy</p> | |||
|                     </div> | |||
|                 </div> | |||
|             </div> | |||
|         </div> | |||
|         <div class="container mt-5"> | |||
|             <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> | |||
|                 <p class="m-0" | |||
|                    style="font-weight: 600; font-size: 24px; color:#000 !important"> | |||
|                     Our Industries</p> | |||
| 
 | |||
|             </div> | |||
|         </div> | |||
|         <div class="container"> | |||
|             <div class="row my-5 py-4"> | |||
|                 <div class="col-md-3 col-sm-6 p-0"> | |||
|                     <div class="d-flex flex-column h-100 " | |||
|                          style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid  rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);"> | |||
|                         <img src="assets/icons/trading-black.png" width="42px" | |||
|                              height="auto" alt=""> | |||
|                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | |||
|                            font-size: 1.2rem; margin-bottom: 2px;">Trading</p> | |||
|                         <p>Easily procure and sell your products</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-3 col-sm-6  p-0"> | |||
|                     <div class="d-flex flex-column h-100" | |||
|                          style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid  rgb(209, 209, 209); padding: 30px;"> | |||
|                         <img src="assets/icons/pos-black.png" width="42px" | |||
|                              height="auto" alt=""> | |||
|                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | |||
|                             font-size: 1.2rem; margin-bottom: 2px;">POS</p> | |||
|                         <p>Easy configuration and convivial experience</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-3 col-sm-6  p-0"> | |||
|                     <div class="d-flex flex-column h-100" | |||
|                          style="border-right: 1px solid  rgb(209, 209, 209);border-bottom: 1px solid   rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px  rgba(228, 227, 227, 0.373)"> | |||
|                         <img src="assets/icons/education-black.png" width="42px" | |||
|                              height="auto" alt=""> | |||
|                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | |||
|                             font-size: 1.2rem; margin-bottom: 2px;"> | |||
|                             Education</p> | |||
|                         <p>A platform for educational management</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-3 col-sm-6  p-0"> | |||
|                     <div class="d-flex flex-column h-100" | |||
|                          style="border-bottom: 1px solid  rgb(209, 209, 209); padding: 30px; "> | |||
|                         <img src="assets/icons/manufacturing-black.png" | |||
|                              width="42px" height="auto" alt=""> | |||
|                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | |||
|                             font-size: 1.2rem; margin-bottom: 2px;"> | |||
|                             Manufacturing</p> | |||
|                         <p>Plan, track and schedule your operations</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-3 col-sm-6 p-0"> | |||
|                     <div class="d-flex flex-column h-100" | |||
|                          style="border-right: 1px solid  rgb(209, 209, 209); padding: 30px;"> | |||
|                         <img src="assets/icons/ecom-black.png" width="42px" | |||
|                              height="auto" alt=""> | |||
|                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | |||
|                             font-size: 1.2rem; margin-bottom: 2px;">E-commerce & | |||
|                             Website</p> | |||
|                         <p>Mobile friendly, awe-inspiring product pages</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-3 col-sm-6   p-0"> | |||
|                     <div class="d-flex flex-column h-100" | |||
|                          style="border-right: 1px solid  rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px  rgba(228, 227, 227, 0.373);"> | |||
|                         <img src="assets/icons/service-black.png" width="42px" | |||
|                              height="auto" alt=""> | |||
|                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | |||
|                             font-size: 1.2rem; margin-bottom: 2px;">Service | |||
|                             Management</p> | |||
|                         <p>Keep track of services and invoice</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-3 col-sm-6    p-0"> | |||
|                     <div class="d-flex flex-column h-100" | |||
|                          style="border-right: 1px solid  rgb(209, 209, 209); padding: 30px; "> | |||
|                         <img src="assets/icons/restaurant-black.png" | |||
|                              width="42px" height="auto" alt=""> | |||
|                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | |||
|                             font-size: 1.2rem; margin-bottom: 2px;"> | |||
|                             Restaurant</p> | |||
|                         <p>Run your bar or restaurant methodically</p> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-3 col-sm-6   p-0"> | |||
|                     <div class="d-flex flex-column h-100" | |||
|                          style=" padding: 30px;box-shadow: -5px 0 10px  rgba(228, 227, 227, 0.373);"> | |||
|                         <img src="assets/icons/hotel-black.png" width="42px" | |||
|                              height="auto" alt=""> | |||
|                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | |||
|                             font-size: 1.2rem; margin-bottom: 2px;">Hotel | |||
|                             Management</p> | |||
|                         <p>An all-inclusive hotel management application</p> | |||
|                     </div> | |||
|                 </div> | |||
|             </div> | |||
|         </div> | |||
|         <div class="container mt-5"> | |||
|             <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> | |||
|                 <p class="m-0" | |||
|                    style="font-weight: 600; font-size: 24px; color:#000 !important"> | |||
|                     Support</p> | |||
|             </div> | |||
|         </div> | |||
|         <div class="container my-5"> | |||
|             <div class="row" style="background-color: #FFFAFE;"> | |||
|                 <div class="col-md-6 pb-4  d-flex align-items-center justify-content-center" | |||
|                      style="border-right: 1px solid #D9D9D9;"> | |||
|                     <div style="padding: 30px;"> | |||
|                         <div class="d-flex align-items-center"> | |||
|                             <img src="assets/misc/support (1) 1.svg" alt="" | |||
|                                  width="60px" style="margin-right: 12px;"> | |||
|                             <div style="padding: 0px 8px;"> | |||
|                                     <span | |||
|                                             style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need | |||
|                                         Help?</span> | |||
|                                 <p class="m-0" style="color:#718096;">Got | |||
|                                     questions or need help? Get in touch.</p> | |||
|                                 <div style="font-weight: 400;"><span><img | |||
|                                         src="assets/misc/support-email.svg" | |||
|                                         alt="" | |||
|                                         width="18px" | |||
|                                         style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com | |||
|                                 </div> | |||
|                             </div> | |||
|                         </div> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"> | |||
|                     <div style="padding: 30px;"> | |||
|                         <div class="d-flex align-items-center"> | |||
|                             <img src="assets/misc/whatsapp 1.svg" alt="" | |||
|                                  width="60px" style="margin-right: 12px;"> | |||
|                             <div> | |||
|                                 <span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span> | |||
|                                 <p class="m-0" style="color:#718096;">Say hi to | |||
|                                     us on WhatsApp!</p> | |||
|                                 <div style="font-weight: 400; font-size: 16px;"><span><img | |||
|                                         src="assets/misc/phone.svg" | |||
|                                         alt="" width="14px" | |||
|                                         style="filter: invert(1); margin-right: 0.8rem;"></span>+91 | |||
|                                     99456767686 | |||
|                                 </div> | |||
|                             </div> | |||
|                         </div> | |||
|                     </div> | |||
|                 </div> | |||
|             </div> | |||
|         </div> | |||
|     </div> | |||
| </section> | |||
| <!-- Optional JavaScript --> | |||
| <!-- jQuery first, then Popper.js, then Bootstrap JS --> | |||
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |||
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> | |||
| </body> | |||
| </html> | |||
| @ -0,0 +1,32 @@ | |||
| /** @odoo-module */ | |||
| import publicWidget from '@web/legacy/js/public/public_widget'; | |||
| import { jsonrpc } from "@web/core/network/rpc_service"; | |||
|     publicWidget.registry.websiteDeliverySlot = publicWidget.Widget.extend({ | |||
|         selector: '.delivery_slot_div', | |||
|         events: { | |||
|             'change #slot_id': '_onDateChange', | |||
|             'change #date': '_onDateChange', | |||
|         }, | |||
|         /** | |||
|          * Handles the change event of the date or slot selection. | |||
|          * @param {Event} ev - The change event. | |||
|          */ | |||
|         _onDateChange: function(ev) { | |||
|             if (ev.currentTarget.id == 'date') { | |||
|                 var delivery_date = ev.currentTarget.value | |||
|                 var line_id = $(ev.currentTarget).attr('data-line-id') | |||
|                 jsonrpc('/shop/cart/set_delivery_date',{ | |||
|                     'delivery_date': delivery_date, | |||
|                     'line_id': line_id | |||
|                 }); | |||
|             } | |||
|             else if (ev.currentTarget.id == 'slot_id') { | |||
|                 var delivery_slot = ev.currentTarget.value | |||
|                 var line_id = $(ev.currentTarget).attr('data-line-id') | |||
|                 jsonrpc('/shop/cart/set_delivery_slot',{ | |||
|                     'delivery_slot': delivery_slot, | |||
|                     'line_id': line_id | |||
|                 }); | |||
|             } | |||
|         }, | |||
|     }); | |||
| @ -0,0 +1,32 @@ | |||
| /** @odoo-module */ | |||
| import publicWidget from '@web/legacy/js/public/public_widget'; | |||
| import { jsonrpc } from "@web/core/network/rpc_service"; | |||
|     /** | |||
|      * Widget that handles the slot time selection on the cart line. | |||
|      */ | |||
|     publicWidget.registry.websiteSlotTimeHours = publicWidget.Widget.extend({ | |||
|         selector: '.slot-time-div', | |||
|         events: { | |||
|             'change input[type="radio"][name="slot_hour"]': '_onSlotTime', | |||
|         }, | |||
|         _onSlotTime: function(ev) { | |||
|             var selected_option = $("input[type='radio'][name='slot_hour']:checked").val() | |||
|             jsonrpc('/shop/cart/get_option',{ | |||
|                     'selected_option': selected_option, | |||
|                 }) | |||
|                 .then(function(result) { | |||
|                     const selects = document.querySelectorAll('select'); | |||
|                     const input = document.querySelector('input'); | |||
|                     selects.forEach((select) => { | |||
|                         const options = Array.from(select.options); | |||
|                         options.forEach((option) => { | |||
|                             option.remove(); | |||
|                         }); | |||
|                         result.forEach((item) => { | |||
|                             let newOption = new Option(item[1], item[0]); | |||
|                             select.add(newOption, undefined); | |||
|                         }); | |||
|                     }); | |||
|                 }); | |||
|         }, | |||
|     }); | |||
| @ -0,0 +1,23 @@ | |||
| /** @odoo-module */ | |||
| import publicWidget from '@web/legacy/js/public/public_widget'; | |||
| import utils from "@website_sale/js/website_sale_utils"; | |||
|     /** | |||
|      * Custom implementation of the updateCartNavBar function. | |||
|      * | |||
|      * @param {Object} data - The data to update the cart navbar. | |||
|      */ | |||
|     utils.updateCartNavBar = function (data) { | |||
|         $(".my_cart_quantity") | |||
|         .parents('li.o_wsale_my_cart').removeClass('d-none').end() | |||
|         .addClass('o_mycart_zoom_animation').delay(300) | |||
|         .queue(function () { | |||
|             $(this) | |||
|                 .toggleClass('fa fa-warning', !data.cart_quantity) | |||
|                 .attr('title', data.warning) | |||
|                 .text(data.cart_quantity || '') | |||
|                 .removeClass('o_mycart_zoom_animation') | |||
|                 .dequeue(); | |||
|         }); | |||
|     $(".js_cart_summary").replaceWith(data['website_sale.short_cart_summary']); | |||
|     }; | |||
|     return utils; | |||
| @ -0,0 +1,52 @@ | |||
| <?xml version="1.0" encoding="UTF-8" ?> | |||
| <odoo> | |||
|     <!-- View for the delivery slot tree --> | |||
|     <record id="delivery_slot_view_tree" model="ir.ui.view"> | |||
|         <field name="name">delivery.slot.view.tree</field> | |||
|         <field name="model">delivery.slot</field> | |||
|         <field name="arch" type="xml"> | |||
|             <tree> | |||
|                 <field name="delivery_date"/> | |||
|                 <field name="slot_id"/> | |||
|             </tree> | |||
|         </field> | |||
|     </record> | |||
|     <!-- View for the delivery slot form --> | |||
|     <record id="delivery_slot_view_form" model="ir.ui.view"> | |||
|         <field name="name">delivery.slot.view.form</field> | |||
|         <field name="model">delivery.slot</field> | |||
|         <field name="arch" type="xml"> | |||
|             <form> | |||
|                 <sheet> | |||
|                     <group> | |||
|                         <field name="delivery_date"/> | |||
|                         <field name="slot_id"/> | |||
|                         <field name="active"/> | |||
|                         <field name="delivery_limit"/> | |||
|                         <field name="total_delivery"/> | |||
|                         <field name="remaining_slots"/> | |||
|                         <field name="delivery_ids"> | |||
|                             <tree create="false"> | |||
|                                 <field name="name" | |||
|                                        string="Order Reference"/> | |||
|                                 <field name="company_id" invisible="1"/> | |||
|                                 <field name="partner_id" | |||
|                                        string="Customer"/> | |||
|                             </tree> | |||
|                         </field> | |||
|                     </group> | |||
|                 </sheet> | |||
|             </form> | |||
|         </field> | |||
|     </record> | |||
|     <!-- Action for the delivery slot --> | |||
|     <record id="delivery_slot_action" model="ir.actions.act_window"> | |||
|         <field name="name">Delivery Slot</field> | |||
|         <field name="res_model">delivery.slot</field> | |||
|         <field name="view_mode">tree,form</field> | |||
|     </record> | |||
|     <!-- Menu item for the delivery slot --> | |||
|     <menuitem id="delivery_slot_menu" name="Delivery Slot" | |||
|               action="delivery_slot_action" | |||
|               parent="sale.menu_sale_config" sequence="14"/> | |||
| </odoo> | |||
| @ -0,0 +1,22 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <odoo> | |||
|     <!-- inheriting the res.config.setting form view --> | |||
|     <record id="res_config_settings_view_form" model="ir.ui.view"> | |||
|         <field name="name"> | |||
|             res.config.settings.view.form.inherit.delivery.slot | |||
|         </field> | |||
|         <field name="model">res.config.settings</field> | |||
|         <field name="priority" eval="90"/> | |||
|         <field name="inherit_id" ref="website.res_config_settings_view_form"/> | |||
|         <field name="arch" type="xml"> | |||
|             <xpath expr="//block[@id='website_info_settings']" position="inside"> | |||
|                 <!-- Adding a new setting for the delivery slot feature --> | |||
|                 <setting id="enable_delivery_date" | |||
|                          title="Delivery Slot" | |||
|                          help="Enable delivery date Feature"> | |||
|                     <field name="enable_delivery_date"/> | |||
|                 </setting> | |||
|             </xpath> | |||
|         </field> | |||
|     </record> | |||
| </odoo> | |||
| @ -0,0 +1,34 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
| <odoo> | |||
|     <!--  inheriting the sale order form view  --> | |||
|     <record id="view_order_form" model="ir.ui.view"> | |||
|         <field name="name">sale.order.view.form.inherit.delivery.slot</field> | |||
|         <field name="inherit_id" ref="sale.view_order_form"/> | |||
|         <field name="model">sale.order</field> | |||
|         <field name="arch" type="xml"> | |||
|             <!-- Adding a new field for Delivery Slot Per Product --> | |||
|             <field name="sale_order_template_id" position="after"> | |||
|                 <field name="slot_per_product" | |||
|                        string="Delivery Slot Per Product"/> | |||
|             </field> | |||
|             <div name="button_box" position="inside"> | |||
|                 <!-- Adding a button to view Delivery Slots --> | |||
|                 <button class="oe_stat_button" type="object" | |||
|                         name="action_view_delivery_slot" | |||
|                         icon="fa-clock-o" | |||
|                         invisible = "slot_count == 0"> | |||
|                     <field string="Delivery Slots" name="slot_count" | |||
|                            widget="statinfo"/> | |||
|                 </button> | |||
|             </div> | |||
|             <xpath expr="//field[@name='order_line']/tree/field[@name='price_unit']" | |||
|                    position="before"> | |||
|                 <!-- Adding fields for Delivery Date and Delivery Slot --> | |||
|                 <field name="delivery_date" | |||
|                        column_invisible="parent.slot_per_product == False"/> | |||
|                 <field name="slot_id" | |||
|                        column_invisible = "parent.slot_per_product == False"/> | |||
|             </xpath> | |||
|         </field> | |||
|     </record> | |||
| </odoo> | |||
| @ -0,0 +1,43 @@ | |||
| <?xml version="1.0" encoding="UTF-8" ?> | |||
| <odoo> | |||
|     <!-- View for the slot time tree --> | |||
|     <record id="slot_time_view_tree" model="ir.ui.view"> | |||
|         <field name="name">slot.time.view.tree</field> | |||
|         <field name="model">slot.time</field> | |||
|         <field name="arch" type="xml"> | |||
|             <tree> | |||
|                 <field name="name"/> | |||
|                 <field name="slot_type"/> | |||
|                 <field name="time_from"/> | |||
|                 <field name="time_to"/> | |||
|             </tree> | |||
|         </field> | |||
|     </record> | |||
|     <!-- View for the slot time form --> | |||
|     <record id="slot_time_view_form" model="ir.ui.view"> | |||
|         <field name="name">slot.time.view.form</field> | |||
|         <field name="model">slot.time</field> | |||
|         <field name="arch" type="xml"> | |||
|             <form> | |||
|                 <sheet> | |||
|                     <group> | |||
|                         <field name="name"/> | |||
|                         <field name="slot_type"/> | |||
|                         <field name="time_from"/> | |||
|                         <field name="time_to"/> | |||
|                     </group> | |||
|                 </sheet> | |||
|             </form> | |||
|         </field> | |||
|     </record> | |||
|     <!-- Action for the slot time --> | |||
|     <record id="slot_time_action" model="ir.actions.act_window"> | |||
|         <field name="name">Slots</field> | |||
|         <field name="res_model">slot.time</field> | |||
|         <field name="view_mode">tree,form</field> | |||
|     </record> | |||
|      <!-- Menu item for the slot time --> | |||
|     <menuitem id="slot_sub_menu" name="Slot Timing" | |||
|               action="slot_time_action" | |||
|               parent="sale.menu_sale_config" sequence="13"/> | |||
| </odoo> | |||
| @ -0,0 +1,61 @@ | |||
| <?xml version="1.0" encoding="UTF-8" ?> | |||
| <odoo> | |||
|     <template id="website_delivery_slot" inherit_id="website_sale.cart_lines"> | |||
|         <xpath expr="//button[hasclass('js_delete_product')]" position="after"> | |||
|             <!-- Checking if delivery slot is enabled --> | |||
|             <t t-set="delivery_slot" | |||
|                t-value="request.env['ir.config_parameter'].sudo().get_param('delivery_slot.enable_delivery_date')"/> | |||
|             <t t-if="delivery_slot"> | |||
|                 <div class="delivery_slot_div"> | |||
|                     <div class="form-group col-12 s_website_form_field s_website_form_required" | |||
|                          data-type="char" data-name="Field" id="date_div"> | |||
|                         <div class="row s_col_no_resize s_col_no_bgcolor"> | |||
|                             <label class="col-form-label col-sm-auto s_website_form_label" | |||
|                                    style="width: 200px" | |||
|                                    for="date"> | |||
|                                 <span class="s_website_form_label_content"> | |||
|                                     Delivery Date | |||
|                                 </span> | |||
|                             </label> | |||
|                             <div class="col-sm"> | |||
|                                 <input id="date" | |||
|                                        type="date" | |||
|                                        class="form-control link-style" | |||
|                                        placeholder="Delivery Date" | |||
|                                        name="date" required="1" | |||
|                                        t-att-data-line-id="line.id" | |||
|                                        t-att-data-product-id="line.product_id.id"/> | |||
|                             </div> | |||
|                         </div> | |||
|                     </div> | |||
|                     <div class="form-group col-12 s_website_form_field s_website_form_required" | |||
|                          data-type="char" data-name="Field" id="divs"> | |||
|                         <div class="row s_col_no_resize s_col_no_bgcolor"> | |||
|                             <label class="col-form-label col-sm-auto s_website_form_label" | |||
|                                    style="width: 200px" | |||
|                                    for="search"> | |||
|                                 <span class="s_website_form_label_content"> | |||
|                                     Delivery Slot | |||
|                                 </span> | |||
|                             </label> | |||
|                             <div class="col-sm"> | |||
|                                 <select name="slot_id" id="slot_id" | |||
|                                         class="form-control link-style" | |||
|                                         t-att-data-line-id="line.id" | |||
|                                         t-att-data-product-id="line.product_id.id"> | |||
|                                     <option value=""> </option> | |||
|                                     <t t-foreach="slots" t-as="slot"> | |||
|                                         <option t-att-value="slot.id"> | |||
|                                             <t t-esc="slot.name" | |||
|                                                t-att-value="slot.id"/> | |||
|                                         </option> | |||
|                                     </t> | |||
|                                 </select> | |||
|                             </div> | |||
|                         </div> | |||
|                     </div> | |||
|                 </div> | |||
|             </t> | |||
|         </xpath> | |||
|     </template> | |||
| </odoo> | |||
| @ -0,0 +1,32 @@ | |||
| <?xml version="1.0" encoding="UTF-8" ?> | |||
| <odoo> | |||
|     <template id="website_slot_time" inherit_id="website_sale.cart"> | |||
|         <!-- Inserting delivery slot selection before the cart lines table --> | |||
|         <xpath expr="//t[@t-call='website_sale.cart_lines']" position="before"> | |||
|             <!-- Checking if delivery slot is enabled --> | |||
|             <t t-set="delivery_slot" | |||
|                t-value="request.env['ir.config_parameter'].sudo().get_param('delivery_slot.enable_delivery_date')"/> | |||
|             <t t-if="delivery_slot"> | |||
|                 <div class="slot-time-div"> | |||
|                     <div class="form-group col-12"> | |||
|                         <span class="s_website_form_label_content"> | |||
|                             <b>Choose A Delivery Time</b> | |||
|                             <br/> | |||
|                         </span> | |||
|                         <div class="col-sm" id="hour_value"> | |||
|                             <input type="radio" id="home" name="slot_hour" | |||
|                                    value="home"/> | |||
|                             <label for="html">Home Hours</label> | |||
|                         </div> | |||
|                         <div class="col-sm"> | |||
|                             <input type="radio" id="office" name="slot_hour" | |||
|                                    value="office"/> | |||
|                             <label for="css">Office Hours</label> | |||
|                         </div> | |||
|                         <br/> | |||
|                     </div> | |||
|                 </div> | |||
|             </t> | |||
|         </xpath> | |||
|     </template> | |||
| </odoo> | |||