| @ -0,0 +1,47 @@ | |||
| .. 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 | |||
| 
 | |||
| Website Pre Booking | |||
| =================== | |||
| This module will help you to managing prebooking management in website. | |||
| 
 | |||
| Configuration | |||
| ============= | |||
| * No additional configurations needed | |||
| 
 | |||
| Company | |||
| ------- | |||
| * `Cybrosys Techno Solutions <https://cybrosys.com/>`__ | |||
| 
 | |||
| License | |||
| ------- | |||
| Affero General Public License v3.0 (AGPL v3) | |||
| (https://www.odoo.com/documentation/15.0/legal/licenses.html) | |||
| 
 | |||
| Credits | |||
| ------- | |||
| Developer: (V15) Vishnu P, Contact: odoo@cybrosys.com | |||
| 
 | |||
| 
 | |||
| Contacts | |||
| -------- | |||
| * Mail Contact : odoo@cybrosys.com | |||
| * Website : https://cybrosys.com | |||
| 
 | |||
| Bug Tracker | |||
| ----------- | |||
| Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. | |||
| 
 | |||
| Maintainer | |||
| ========== | |||
| .. image:: https://cybrosys.com/images/logo.png | |||
|    :target: https://cybrosys.com | |||
| 
 | |||
| This module is maintained by Cybrosys Technologies. | |||
| 
 | |||
| For support and more information, please visit `Our Website <https://cybrosys.com/>`__ | |||
| 
 | |||
| Further information | |||
| =================== | |||
| HTML Description: `<static/description/index.html>`__ | |||
| @ -0,0 +1,23 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | |||
| #    Author: Vishnu P(<https://www.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,55 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | |||
| #    Author: Vishnu P(<https://www.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': 'Website Pre Booking', | |||
|     'version': '15.0.1.0.0', | |||
|     'category': 'Website', | |||
|     'summary': 'Allows pre booking option for website', | |||
|     'description': """This module will help you to managing prebooking of | |||
|      product management in website""", | |||
|     'author': 'Cybrosys Techno Solutions', | |||
|     'company': 'Cybrosys Techno Solutions', | |||
|     'maintainer': 'Cybrosys Techno Solutions', | |||
|     'website': "https://www.cybrosys.com", | |||
|     'depends': ['portal', 'website_sale'], | |||
|     'data': [ | |||
|         'security/ir.model.access.csv', | |||
|         'data/ir_sequence_data.xml', | |||
|         'views/portal_views.xml', | |||
|         'views/website_prebook_views.xml', | |||
|         'views/website_sale_inherit.xml', | |||
|         'views/prebook_details_template.xml', | |||
|         'views/pre_booking_template.xml', | |||
|         'views/product_template_views.xml', | |||
|     ], | |||
|     'assets': { | |||
|         'web.assets_frontend': [ | |||
|             '/website_pre_booking/static/src/css/prebooking.css', | |||
|             '/website_pre_booking/static/src/js/pre_booking.js' | |||
|         ], | |||
|     }, | |||
|     'images': ['static/description/banner.jpg'], | |||
|     'license': 'AGPL-3', | |||
|     'installable': True, | |||
|     'auto_install': False, | |||
|     'application': False, | |||
| } | |||
| @ -0,0 +1,23 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | |||
| #    Author: Vishnu P(<https://www.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 pre_booking_portal | |||
| from . import website_pre_booking | |||
| @ -0,0 +1,47 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | |||
| #    Author: Vishnu P(<https://www.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.portal.controllers import portal | |||
| 
 | |||
| 
 | |||
| class CustomerPortal(portal.CustomerPortal): | |||
|     """Used to manage a customer portal""" | |||
|     def _prepare_home_portal_values(self, counters): | |||
|         """Super the function to add new button in the home portal""" | |||
|         values = super()._prepare_home_portal_values(counters) | |||
|         if 'pre_bookings_count' in counters: | |||
|             current_user = request.env['res.users'].sudo().browse( | |||
|                 request.env.uid) | |||
|             pre_bookings_count = request.env['website.prebook'].search_count([('partner_id', '=', current_user.partner_id.id)]) | |||
|             values['pre_bookings_count'] = pre_bookings_count | |||
|         return values | |||
| 
 | |||
|     @http.route(['/my/pre_bookings'], type='http', auth="user", website=True) | |||
|     def portal_my_pre_bookings(self, **kwargs): | |||
|         """Function to view the logined user pre bookings in the account.""" | |||
|         current_user = request.env['res.users'].sudo().browse(request.env.uid) | |||
|         pre_booking = request.env['website.prebook'].sudo().search( | |||
|             [('partner_id', '=', current_user.partner_id.id)]) | |||
|         return request.render("website_pre_booking.portal_my_pre_bookings", | |||
|                               {'pre_bookings': pre_booking, | |||
|                                'page_name': 'pre_booking'}) | |||
| @ -0,0 +1,118 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | |||
| #    Author: Vishnu P(<https://www.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, http, _ | |||
| from odoo.http import request | |||
| 
 | |||
| 
 | |||
| class CustomerPortal(http.Controller): | |||
|     """Used to manage a customer portal""" | |||
| 
 | |||
|     @http.route(['/my/prebook_request/<model("product.template"):product>'], | |||
|                 type='http', auth="public", website=True) | |||
|     def portal_my_employee_request(self, product, **kwargs): | |||
|         """Pre-book button to pre-book the product""" | |||
|         vals = { | |||
|             'product': product.id, | |||
|         } | |||
|         current_user = request.env['res.users'].sudo().browse( | |||
|             request.session.uid) | |||
|         partner = current_user.partner_id | |||
|         product_qty = int(kwargs.get('prod_qty')) | |||
|         if request.session.uid: | |||
| 
 | |||
|             pre_booking = request.env['website.prebook'].sudo().create({ | |||
|                 'partner_id': partner.id, | |||
|                 'booking_date': fields.datetime.today(), | |||
|                 'product_id': product.id, | |||
|                 'quantity': product_qty, | |||
|                 'website_id': request.website.id, | |||
|             }) | |||
|             if pre_booking: | |||
|                 max_quantity = product.pre_max_quantity | |||
|                 product.sudo().write({'pre_max_quantity': int(max_quantity - product_qty)}) | |||
| 
 | |||
|             return request.render("website_pre_booking.pre_booking_done", | |||
|                                   {'ref': pre_booking.reference}) | |||
|         else: | |||
|             return request.render("website_pre_booking.prebook_address", vals) | |||
| 
 | |||
|     @http.route(['/prebook/address'], type='http', methods=['GET', 'POST'], | |||
|                 auth="public", website=True, sitemap=False) | |||
|     def pre_address(self, **kw): | |||
|         """If not login, create a new user""" | |||
|         product = request.env['product.template'].sudo().browse( | |||
|             int(kw.get('product'))) | |||
|         partner = request.env['res.partner'].sudo().create({ | |||
|             'name': kw.get('name'), | |||
|             'email': kw.get('email'), | |||
|             'phone': kw.get('phone'), | |||
|         }) | |||
|         pre_booking = request.env['website.prebook'].sudo().create({ | |||
|             'partner_id': partner.id, | |||
|             'booking_date': fields.datetime.today(), | |||
|             'product_id': product.id}) | |||
|         if pre_booking: | |||
|             max_quantity = product.pre_max_quantity | |||
|             product.pre_max_quantity = max_quantity - 1 | |||
|         return request.render("website_pre_booking.pre_booking_done", | |||
|                               {'ref': pre_booking.reference}) | |||
| 
 | |||
|     @http.route('/track/prebooking', website=True, auth='user', csrf=False) | |||
|     def submit_booking(self, **kwargs): | |||
|         """For tracking the specific pre-orders using refernce code""" | |||
|         bookings = request.env['website.prebook'].sudo().search( | |||
|             [('reference', '=', kwargs.get('reference'))]) | |||
|         if bookings and bookings.sale_id: | |||
|             if bookings.sale_id.state == 'draft': | |||
|                 state = 'Quotation' | |||
|             elif bookings.sale_id.state == 'sent': | |||
|                 state = 'Quotation Sent' | |||
|             elif bookings.sale_id.state == 'sale': | |||
|                 state = 'Sales Order' | |||
|             elif bookings.sale_id.state == 'done': | |||
|                 state = 'Locked' | |||
|             elif bookings.sale_id.state == 'cancel': | |||
|                 state = 'Cancelled' | |||
|             vals = { | |||
|                 'reference': bookings.reference, | |||
|                 'product': bookings.product_id.name, | |||
|                 'status': state if bookings.sale_id else bookings.state, | |||
|                 'date': bookings.booking_date, | |||
|             } | |||
|             return request.render("website_pre_booking.my_booking_template", | |||
|                                   vals) | |||
|         else: | |||
|             return request.render("website_pre_booking.my_booking_template", | |||
|                                   {'vals': True}) | |||
| 
 | |||
|     @http.route(['/my/prebookings', '/my/prebookings/page/<int:page>'], | |||
|                 type='http', auth="user", website=True) | |||
|     def my_prebookings(self): | |||
|         """Can track the pre bookings from the website""" | |||
|         value = [] | |||
|         values = {'value': value} | |||
|         return request.render("website_pre_booking.my_booking_template", values) | |||
| 
 | |||
|     @http.route(['/sale/fail'], type='http', auth="user", website=True) | |||
|     def my_prebookings_fail(self): | |||
|         """Can track the pre bookings from the website""" | |||
|         return request.render("website_pre_booking.pre_booking_failed") | |||
| @ -0,0 +1,13 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <odoo> | |||
|     <data> | |||
|         <!-- Sequences for prebooking --> | |||
|         <record id="seq_booking" model="ir.sequence"> | |||
|             <field name="name">Pre Booking</field> | |||
|             <field name="code">prebook.sequence</field> | |||
|             <field name="prefix">PB</field> | |||
|             <field name="padding">4</field> | |||
|             <field name="company_id" eval="False"/> | |||
|         </record> | |||
|     </data> | |||
| </odoo> | |||
| @ -0,0 +1,6 @@ | |||
| ## Module <website_pre_booking> | |||
| 
 | |||
| #### 25.10.2024 | |||
| #### Version 15.0.1.0.0 | |||
| ##### ADD | |||
| - Initial commit for Website Pre Booking | |||
| @ -0,0 +1,23 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | |||
| #    Author: Vishnu P(<https://www.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 product_template | |||
| from . import website_prebook | |||
| @ -0,0 +1,35 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | |||
| #    Author: Vishnu P(<https://www.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 ProductTemplate(models.Model): | |||
|     """ Class for inheriting product.template model to adding new fields""" | |||
|     _inherit = 'product.template' | |||
| 
 | |||
|     pre_book = fields.Boolean(string='Pre Booking Available', | |||
|                               help='Enabling this field to identify the prebook') | |||
|     from_date = fields.Date(string='From Date', | |||
|                             help='Prebook available from date') | |||
|     to_date = fields.Date(string='To Date',help='Prebook available to date') | |||
|     pre_max_quantity = fields.Integer(string="Pre Book Maximum Quantity", | |||
|                                       help='Maximum quantity to pre book') | |||
| @ -0,0 +1,86 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ############################################################################# | |||
| # | |||
| #    Cybrosys Technologies Pvt. Ltd. | |||
| # | |||
| #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | |||
| #    Author: Vishnu P(<https://www.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 WebsitePrebook(models.Model): | |||
|     """ Class for defining website. Prebook model""" | |||
|     _name = 'website.prebook' | |||
|     _rec_name = 'reference' | |||
| 
 | |||
|     partner_id = fields.Many2one('res.partner', string="Customer", | |||
|                                  help="Add the customer name") | |||
|     booking_date = fields.Date('Booking Date', help="Pre booking date") | |||
|     product_id = fields.Many2one('product.template', string="Product", | |||
|                                  help="Add the product") | |||
|     state = fields.Selection([ | |||
|         ('draft', 'Draft'), | |||
|         ('confirm', 'Confirmed'), | |||
|     ], string='Status', default='draft', help="state of pre-booking" | |||
|     ) | |||
|     website_id = fields.Many2one( | |||
|         "website", | |||
|         string="Website", | |||
|         ondelete="restrict", | |||
|         index=True, | |||
|         readonly=True, help="name of the website" | |||
|     ) | |||
|     reference = fields.Char(string='Reference', required=True, copy=False, | |||
|                             readonly=True, | |||
|                             default=lambda self: _('New')) | |||
|     sale_id = fields.Many2one('sale.order', string='Sale order', | |||
|                               help="sale order") | |||
|     quantity = fields.Integer(string='Quantity') | |||
| 
 | |||
|     @api.model | |||
|     def create(self, vals): | |||
|         """Supering create function for creating sequence""" | |||
|         if vals.get('reference', _('New')) == _('New'): | |||
|             vals['reference'] = self.env['ir.sequence'].next_by_code('prebook.sequence') or _('New') | |||
|         return super(WebsitePrebook, self).create(vals) | |||
| 
 | |||
|     def action_confirm(self): | |||
|         """Sale order creation while confirming the button""" | |||
|         sale_order = self.env['sale.order'].create({ | |||
|             'partner_id': self.partner_id.id, | |||
|             'website_id': self.website_id.id, | |||
|             'order_line': [(0, 0, { | |||
|                 'product_template_id': self.product_id.id, | |||
|                 'product_id': self.product_id.product_variant_id.id, | |||
|                 'name': self.product_id.product_variant_id.name, | |||
|                 'product_uom_qty': self.quantity, | |||
|             })], | |||
|         }) | |||
|         self.sale_id = sale_order.id | |||
|         self.state = 'confirm' | |||
| 
 | |||
|     def action_view_sale_order(self): | |||
|         """Smart button view function""" | |||
|         return { | |||
|             'name': 'Sale Order', | |||
|             'view_mode': 'form', | |||
|             'view_type': 'form', | |||
|             'view_id': self.env.ref('sale.view_order_form').id, | |||
|             'res_id': self.sale_id.id, | |||
|             'res_model': 'sale.order', | |||
|             'type': 'ir.actions.act_window', | |||
|         } | |||
| 
 | 
| After Width: | Height: | Size: 3.6 KiB | 
| After Width: | Height: | Size: 310 B | 
| After Width: | Height: | Size: 1.3 KiB | 
| After Width: | Height: | Size: 1.4 KiB | 
| After Width: | Height: | Size: 576 B | 
| After Width: | Height: | Size: 733 B | 
| After Width: | Height: | Size: 911 B | 
| After Width: | Height: | Size: 1.1 KiB | 
| After Width: | Height: | Size: 1.2 KiB | 
| After Width: | Height: | Size: 673 B | 
| After Width: | Height: | Size: 878 B | 
| After Width: | Height: | Size: 653 B | 
| After Width: | Height: | Size: 905 B | 
| After Width: | Height: | Size: 839 B | 
| After Width: | Height: | Size: 427 B | 
| After Width: | Height: | Size: 627 B | 
| After Width: | Height: | Size: 1.2 KiB | 
| After Width: | Height: | Size: 988 B | 
| After Width: | Height: | Size: 1.2 KiB | 
| After Width: | Height: | Size: 1.5 KiB | 
| After Width: | Height: | Size: 1.1 KiB | 
| After Width: | Height: | Size: 1.9 KiB | 
| After Width: | Height: | Size: 1.1 KiB | 
| After Width: | Height: | Size: 2.1 KiB | 
| After Width: | Height: | Size: 4.4 KiB | 
| After Width: | Height: | Size: 589 B | 
| After Width: | Height: | Size: 3.4 KiB | 
| After Width: | Height: | Size: 1.7 KiB | 
| After Width: | Height: | Size: 2.3 KiB | 
| After Width: | Height: | Size: 967 B | 
| After Width: | Height: | Size: 1.6 KiB | 
| After Width: | Height: | Size: 3.8 KiB | 
| After Width: | Height: | Size: 5.0 KiB | 
| After Width: | Height: | Size: 50 KiB | 
| After Width: | Height: | Size: 47 KiB | 
| After Width: | Height: | Size: 48 KiB | 
| After Width: | Height: | Size: 49 KiB | 
| After Width: | Height: | Size: 50 KiB | 
| After Width: | Height: | Size: 48 KiB | 
| After Width: | Height: | Size: 85 KiB | 
| After Width: | Height: | Size: 114 KiB | 
| After Width: | Height: | Size: 94 KiB | 
| After Width: | Height: | Size: 121 KiB | 
| After Width: | Height: | Size: 107 KiB | 
| After Width: | Height: | Size: 108 KiB | 
| After Width: | Height: | Size: 58 KiB | 
| After Width: | Height: | Size: 85 KiB | 
| After Width: | Height: | Size: 114 KiB | 
| After Width: | Height: | Size: 94 KiB | 
| After Width: | Height: | Size: 121 KiB | 
| After Width: | Height: | Size: 107 KiB | 
| After Width: | Height: | Size: 108 KiB | 
| After Width: | Height: | Size: 58 KiB | 
| After Width: | Height: | Size: 216 KiB | 
| After Width: | Height: | Size: 114 KiB | 
| After Width: | Height: | Size: 99 KiB | 
| After Width: | Height: | Size: 170 KiB | 
| After Width: | Height: | Size: 111 KiB | 
| After Width: | Height: | Size: 50 KiB | 
| After Width: | Height: | Size: 113 KiB | 
| After Width: | Height: | Size: 132 KiB | 
| After Width: | Height: | Size: 81 KiB | 
| After Width: | Height: | Size: 11 KiB | 
| @ -0,0 +1,630 @@ | |||
| <div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;"> | |||
|     <!-- TITLE BAR --> | |||
|     <div class="d-flex align-items-center justify-content-between" | |||
|          style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;"> | |||
|         <img src="assets/misc/cybrosys-logo.png" width="42" height="42" | |||
|              style="width: 42px; height: 42px;"/> | |||
|         <div> | |||
|             <div | |||
|                     style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" | |||
|                     class="mr-2"> | |||
|                 <i class="fa fa-check mr-1"></i>Community | |||
|             </div> | |||
|             <div | |||
|                     style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" | |||
|                     class="mr-2"> | |||
|                 <i class="fa fa-check mr-1"></i>Enterprise | |||
|             </div> | |||
|             <div | |||
|                     style="color: #017E84; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" | |||
|                     class="mr-2"> | |||
|                 <i class="fa fa-check mr-1"></i>Odoo.sh | |||
|             </div> | |||
|         </div> | |||
|     </div> | |||
|     <!-- END OF TITLE BAR --> | |||
|     <div class="container"> | |||
|         <div class="row"> | |||
|             <div class="col-sm-12 col-md-12 col-lg-12"> | |||
|                 <!-- APP HERO --> | |||
|                 <h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;"> | |||
|                     Website Pre Booking</h1> | |||
|                 <p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;"> | |||
|                     This module helps to pre-book the products in website.</p> | |||
|                 <!-- END OF APP HERO --> | |||
|                 <img src="assets/screenshots/hero.gif" class="img-responsive" | |||
|                      style="width: 100%; margin-left: auto; margin-right: auto;"/> | |||
|             </div> | |||
|         </div> | |||
|     </div> | |||
| </div> | |||
| <!-- NAVIGATION SECTION --> | |||
| <div class="d-flex align-items-center" | |||
|      style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;"> | |||
|     <div class="d-flex justify-content-center align-items-center mr-2" | |||
|          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | |||
|         <img src="assets/misc/compass.png"/> | |||
|     </div> | |||
|     <h2 class="mt-2" | |||
|         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | |||
|         Explore This | |||
|         Module</h2> | |||
| </div> | |||
| <div class="row my-4" style="font-family: 'Montserrat', sans-serif;"> | |||
|     <div class="col-sm-12 col-md-6 my-3"> | |||
|         <a href="#overview"> | |||
|             <div class="d-flex justify-content-between align-items-center" | |||
|                  style="background-color: #f5f5f5; padding: 30px; width: 100%;"> | |||
|                 <div> | |||
|                     <span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span> | |||
|                     <span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33;  display: block;">Learn | |||
|             more about this | |||
|             module</span> | |||
|                 </div> | |||
|                 <img src="assets/misc/right-arrow.png" width="36" height="36"/> | |||
|             </div> | |||
|         </a> | |||
|     </div> | |||
|     <div class="col-sm-12 col-md-6 my-3"> | |||
|         <a href="#features"> | |||
|             <div class="d-flex justify-content-between align-items-center" | |||
|                  style="background-color: #f5f5f5; padding: 30px; width: 100%;"> | |||
|                 <div> | |||
|                     <span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span> | |||
|                     <span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33;  display: block;">View | |||
|             features of this | |||
|             module</span> | |||
|                 </div> | |||
|                 <img src="assets/misc/right-arrow.png" width="36" height="36"/> | |||
|             </div> | |||
|         </a> | |||
|     </div> | |||
|     <div class="col-sm-12 col-md-6 my-3"> | |||
|         <a href="#screenshots"> | |||
|             <div class="d-flex justify-content-between align-items-center" | |||
|                  style="background-color: #f5f5f5; padding: 30px; width: 100%;"> | |||
|                 <div> | |||
|                     <span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span> | |||
|                     <span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33;  display: block;">View | |||
|             screenshots for this | |||
|             module</span> | |||
|                 </div> | |||
|                 <img src="assets/misc/right-arrow.png" width="36" height="36"/> | |||
|             </div> | |||
|         </a> | |||
|     </div> | |||
| </div> | |||
| <!-- END OF NAVIGATION SECTION --> | |||
| <!-- OVERVIEW SECTION --> | |||
| <div class="d-flex align-items-center" | |||
|      style="border-bottom: 2px solid #714B67; padding: 15px 0px;" | |||
|      id="overview"> | |||
|     <div class="d-flex justify-content-center align-items-center mr-2" | |||
|          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | |||
|         <img src="assets/misc/pie-chart.png"/> | |||
|     </div> | |||
|     <h2 class="mt-2" | |||
|         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | |||
|         Overview | |||
|     </h2> | |||
| </div> | |||
| <div class="row" | |||
|      style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> | |||
|     <div class="col-sm-12 py-4"> | |||
|         This module helps to pre-book the products in website. | |||
|     </div> | |||
| </div> | |||
| <!-- END OF OVERVIEW SECTION --> | |||
| <!-- FEATURES SECTION --> | |||
| <div class="d-flex align-items-center" | |||
|      style="border-bottom: 2px solid #714B67; padding: 15px 0px;" | |||
|      id="features"> | |||
|     <div class="d-flex justify-content-center align-items-center mr-2" | |||
|          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | |||
|         <img src="assets/misc/features.png"/> | |||
|     </div> | |||
|     <h2 class="mt-2" | |||
|         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | |||
|         Features | |||
|     </h2> | |||
| </div> | |||
| <div class="row" | |||
|      style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> | |||
|     <div class="col-sm-12 col-md-6"> | |||
|         <div class="d-flex align-items-center" | |||
|              style="margin-top: 30px; margin-bottom: 30px"> | |||
|             <img src="assets/misc/check-box.png" class="mr-2"/> | |||
|             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Manage the pre-booking orders in the website.</span> | |||
|         </div> | |||
|          <div class="d-flex align-items-center" | |||
|             style="margin-top: 30px; margin-bottom: 30px"> | |||
|             <img src="assets/misc/check-box.png" class="mr-2"/> | |||
|             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Track your Pre-bookings.</span> | |||
|          </div> | |||
|     </div> | |||
| </div> | |||
| <!-- END OF FEATURES SECTION --> | |||
| <!-- SCREENSHOTS SECTION --> | |||
| <div class="d-flex align-items-center" | |||
|      style="border-bottom: 2px solid #714B67; padding: 15px 0px;" | |||
|      id="screenshots"> | |||
|     <div class="d-flex justify-content-center align-items-center mr-2" | |||
|          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | |||
|         <img src="assets/misc/pictures.png"/> | |||
|     </div> | |||
|     <h2 class="mt-2" | |||
|         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | |||
|         Screenshots | |||
|     </h2> | |||
| </div> | |||
| <div class="row"> | |||
|     <div class="col-sm-12"> | |||
|         <div style="display: block; margin: 30px auto;"> | |||
|             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | |||
|                Enable option from Product form page. | |||
|             </h3> | |||
|             <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | |||
|             </p> | |||
|             <img src="assets/screenshots/1.png" | |||
|                  class="img-thumbnail"> | |||
|         </div> | |||
|         <div style="display: block; margin: 30px auto;"> | |||
|             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | |||
|                Option for pre-booking</h3> | |||
|             <img src="assets/screenshots/2.png" | |||
|                  class="img-thumbnail"> | |||
|         </div> | |||
|         <div style="display: block; margin: 30px auto;"> | |||
|             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | |||
|                 Success message .</h3> | |||
|             <img src="assets/screenshots/3.png" | |||
|                  class="img-thumbnail"> | |||
|         </div> | |||
|         <div style="display: block; margin: 30px auto;"> | |||
|             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | |||
|                 User can view the details in customer portal. | |||
|             </h3> | |||
|             <img src="assets/screenshots/4.png" | |||
|                  class="img-thumbnail"> | |||
|         </div> | |||
|         <div style="display: block; margin: 30px auto;"> | |||
|             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | |||
|                Pre Booking Orders Portal View. | |||
|             </h3> | |||
|             <img src="assets/screenshots/5.png" | |||
|                  class="img-thumbnail"> | |||
|         </div> | |||
| 
 | |||
|          <div style="display: block; margin: 30px auto;"> | |||
|             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | |||
|                Pre Booking Orders Portal View. | |||
|             </h3> | |||
|             <img src="assets/screenshots/6.png" | |||
|                  class="img-thumbnail"> | |||
|         </div> | |||
| 
 | |||
|         <div style="display: block; margin: 30px auto;"> | |||
|             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | |||
|               Pre Booked order. | |||
|             </h3> | |||
|             <img src="assets/screenshots/7.png" | |||
|                  class="img-thumbnail"> | |||
|         </div> | |||
|     </div> | |||
| </div> | |||
| <!-- END OF SCREENSHOTS SECTION --> | |||
| <!-- RELATED PRODUCTS --> | |||
| <!--<div class="row">--> | |||
|     <div class="d-flex align-items-center" | |||
|          style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | |||
|         <div class="d-flex justify-content-center align-items-center mr-2" | |||
|              style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | |||
|             <img src="assets/misc/categories.png"/> | |||
|         </div> | |||
|         <h2 class="mt-2" | |||
|             style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | |||
|             Related Products | |||
|         </h2> | |||
|     </div> | |||
|     <div class="row"> | |||
|         <div class="col-sm-12"> | |||
|             <div id="demo1" class="row carousel slide" data-ride="carousel"> | |||
|                 <!-- The slideshow --> | |||
|                 <div class="carousel-inner" style="padding: 30px;"> | |||
|                     <div class="carousel-item" style="min-height: 198.656px;"> | |||
|                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" | |||
|                              style="float:left;"> | |||
|                             <a href="https://apps.odoo.com/apps/modules/15.0/odoo_website_helpdesk/" | |||
|                                target="_blank"> | |||
|                                 <div style="border-radius:10px"> | |||
|                                     <img class="img img-responsive center-block" | |||
|                                          style="border-radius: 0px;" | |||
|                                          src="assets/modules/odoo_website_helpdesk.png"> | |||
|                                 </div> | |||
|                             </a> | |||
|                         </div> | |||
|                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" | |||
|                              style="float:left"> | |||
|                             <a href="https://apps.odoo.com/apps/modules/15.0/odoo_website_helpdesk_dashboard/" | |||
|                                target="_blank"> | |||
|                                 <div style="border-radius:10px"> | |||
|                                     <img class="img img-responsive center-block" | |||
|                                          style="border-radius: 0px;" | |||
|                                          src="assets/modules/odoo_website_helpdesk_dashboard.png"> | |||
|                                 </div> | |||
|                             </a> | |||
|                         </div> | |||
|                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" | |||
|                              style="float:left"> | |||
|                             <a href="https://apps.odoo.com/apps/modules/15.0/product_visibility_website/" | |||
|                                target="_blank"> | |||
|                                 <div style="border-radius:10px"> | |||
|                                     <img class="img img-responsive center-block" | |||
|                                          style="border-radius: 0px;" | |||
|                                          src="assets/modules/product_visibility_website.png"> | |||
|                                 </div> | |||
|                             </a> | |||
|                         </div> | |||
|                     </div> | |||
|                     <div class="carousel-item active" | |||
|                          style="min-height: 198.656px;"> | |||
|                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" | |||
|                              style="float:left"> | |||
|                             <a href="https://apps.odoo.com/apps/modules/15.0/website_multi_product_return_management/" | |||
|                                target="_blank"> | |||
|                                 <div style="border-radius:10px"> | |||
|                                     <img class="img img-responsive center-block" | |||
|                                          style="border-radius: 0px;" | |||
|                                          src="assets/modules/website_multi_product_return_management.png"> | |||
|                                 </div> | |||
|                             </a> | |||
|                         </div> | |||
|                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" | |||
|                              style="float:left"> | |||
|                             <a href="https://apps.odoo.com/apps/modules/15.0/website_product_attachments/" | |||
|                                target="_blank"> | |||
|                                 <div style="border-radius:10px"> | |||
|                                     <img class="img img-responsive center-block" | |||
|                                          style="border-radius: 0px;" | |||
|                                          src="assets/modules/website_product_attachments.png"> | |||
|                                 </div> | |||
|                             </a> | |||
|                         </div> | |||
|                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" | |||
|                              style="float:left"> | |||
|                             <a href="https://apps.odoo.com/apps/modules/15.0/website_return_management/" | |||
|                                target="_blank"> | |||
|                                 <div style="border-radius:10px"> | |||
|                                     <img class="img img-responsive center-block" | |||
|                                          style="border-radius: 0px;" | |||
|                                          src="assets/modules/website_return_management.png"> | |||
|                                 </div> | |||
|                             </a> | |||
|                         </div> | |||
|                     </div> | |||
|                 </div> | |||
|                 <!-- Left and right controls --> | |||
|                 <a class="carousel-control-prev" href="#demo1" data-slide="prev" | |||
|                    style="width:35px; color:#000;"> <span | |||
|                         class="carousel-control-prev-icon"><i | |||
|                         class="fa fa-chevron-left" | |||
|                         style="font-size:24px"></i></span> | |||
|                 </a> | |||
|                 <a class="carousel-control-next" href="#demo1" | |||
|                         data-slide="next" style="width:35px; color:#000;"> | |||
|                     <span class="carousel-control-next-icon"><i | |||
|                             class="fa fa-chevron-right" | |||
|                             style="font-size:24px;"></i></span> | |||
|                 </a> | |||
|             </div> | |||
|         </div> | |||
|     </div> | |||
|     <!-- END OF RELATED PRODUCTS --> | |||
|     <!-- OUR SERVICES --> | |||
|     <div class="d-flex align-items-center" | |||
|          style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | |||
|         <div class="d-flex justify-content-center align-items-center mr-2" | |||
|              style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | |||
|             <img src="assets/misc/star.png"/> | |||
|         </div> | |||
|         <h2 class="mt-2" | |||
|             style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | |||
|             Our Services | |||
|         </h2> | |||
|     </div> | |||
|     <div class="container my-5"> | |||
|         <div class="row"> | |||
|             <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | |||
|                 <div class="d-flex justify-content-center align-items-center mx-3 my-3" | |||
|                      style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | |||
|                     <img src="assets/icons/cogs.png" class="img-responsive" | |||
|                          height="48px" width="48px"> | |||
|                 </div> | |||
|                 <h6 class="text-center" | |||
|                     style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | |||
|                     Odoo | |||
|                     Customization</h6> | |||
|             </div> | |||
|             <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | |||
|                 <div class="d-flex justify-content-center align-items-center mx-3 my-3" | |||
|                      style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;"> | |||
|                     <img src="assets/icons/wrench.png" class="img-responsive" | |||
|                          height="48px" width="48px"> | |||
|                 </div> | |||
|                 <h6 class="text-center" | |||
|                     style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | |||
|                     Odoo | |||
|                     Implementation</h6> | |||
|             </div> | |||
|             <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | |||
|                 <div class="d-flex justify-content-center align-items-center mx-3 my-3" | |||
|                      style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;"> | |||
|                     <img src="assets/icons/lifebuoy.png" class="img-responsive" | |||
|                          height="48px" width="48px"> | |||
|                 </div> | |||
|                 <h6 class="text-center" | |||
|                     style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | |||
|                     Odoo | |||
|                     Support</h6> | |||
|             </div> | |||
|             <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | |||
|                 <div class="d-flex justify-content-center align-items-center mx-3 my-3" | |||
|                      style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | |||
|                     <img src="assets/icons/user.png" class="img-responsive" | |||
|                          height="48px" width="48px"> | |||
|                 </div> | |||
|                 <h6 class="text-center" | |||
|                     style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | |||
|                     Hire | |||
|                     Odoo | |||
|                     Developer</h6> | |||
|             </div> | |||
|             <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | |||
|                 <div class="d-flex justify-content-center align-items-center mx-3 my-3" | |||
|                      style="background-color: #54a0ff  !important; border-radius: 15px !important; height: 80px; width: 80px;"> | |||
|                     <img src="assets/icons/puzzle.png" class="img-responsive" | |||
|                          height="48px" width="48px"> | |||
|                 </div> | |||
|                 <h6 class="text-center" | |||
|                     style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | |||
|                     Odoo | |||
|                     Integration</h6> | |||
|             </div> | |||
|             <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | |||
|                 <div class="d-flex justify-content-center align-items-center mx-3 my-3" | |||
|                      style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | |||
|                     <img src="assets/icons/update.png" class="img-responsive" | |||
|                          height="48px" width="48px"> | |||
|                 </div> | |||
|                 <h6 class="text-center" | |||
|                     style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | |||
|                     Odoo | |||
|                     Migration</h6> | |||
|             </div> | |||
|             <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | |||
|                 <div class="d-flex justify-content-center align-items-center mx-3 my-3" | |||
|                      style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | |||
|                     <img src="assets/icons/consultation.png" | |||
|                          class="img-responsive" | |||
|                          height="48px" width="48px"> | |||
|                 </div> | |||
|                 <h6 class="text-center" | |||
|                     style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | |||
|                     Odoo | |||
|                     Consultancy</h6> | |||
|             </div> | |||
|             <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | |||
|                 <div class="d-flex justify-content-center align-items-center mx-3 my-3" | |||
|                      style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | |||
|                     <img src="assets/icons/training.png" class="img-responsive" | |||
|                          height="48px" width="48px"> | |||
|                 </div> | |||
|                 <h6 class="text-center" | |||
|                     style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | |||
|                     Odoo | |||
|                     Implementation</h6> | |||
|             </div> | |||
|             <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | |||
|                 <div class="d-flex justify-content-center align-items-center mx-3 my-3" | |||
|                      style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | |||
|                     <img src="assets/icons/license.png" class="img-responsive" | |||
|                          height="48px" width="48px"> | |||
|                 </div> | |||
|                 <h6 class="text-center" | |||
|                     style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | |||
|                     Odoo | |||
|                     Licensing Consultancy</h6> | |||
|             </div> | |||
|         </div> | |||
|     </div> | |||
|     <!-- END OF OUR SERVICES --> | |||
|     <!-- OUR INDUSTRIES --> | |||
|     <div class="d-flex align-items-center" | |||
|          style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | |||
|         <div class="d-flex justify-content-center align-items-center mr-2" | |||
|              style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | |||
|             <img src="assets/misc/corporate.png"/> | |||
|         </div> | |||
|         <h2 class="mt-2" | |||
|             style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | |||
|             Our | |||
|             Industries | |||
|         </h2> | |||
|     </div> | |||
|     <div class="container my-5"> | |||
|         <div class="row"> | |||
|             <div class="col-lg-3"> | |||
|                 <div class="my-4 d-flex flex-column justify-content-center" | |||
|                      style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | |||
|                     <img src="assets/icons/trading-black.png" | |||
|                          class="img-responsive mb-3" height="48px" width="48px"> | |||
|                     <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | |||
|                         Trading | |||
|                     </h5> | |||
|                     <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | |||
|                         Easily procure | |||
|                         and | |||
|                         sell your products</p> | |||
|                 </div> | |||
|             </div> | |||
|             <div class="col-lg-3"> | |||
|                 <div class="my-4 d-flex flex-column justify-content-center" | |||
|                      style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | |||
|                     <img src="assets/icons/pos-black.png" | |||
|                          class="img-responsive mb-3" height="48px" width="48px"> | |||
|                     <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | |||
|                         POS | |||
|                     </h5> | |||
|                     <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | |||
|                         Easy | |||
|                         configuration | |||
|                         and convivial experience</p> | |||
|                 </div> | |||
|             </div> | |||
|             <div class="col-lg-3"> | |||
|                 <div class="my-4 d-flex flex-column justify-content-center" | |||
|                      style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | |||
|                     <img src="assets/icons/education-black.png" | |||
|                          class="img-responsive mb-3" height="48px" width="48px"> | |||
|                     <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | |||
|                         Education | |||
|                     </h5> | |||
|                     <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | |||
|                         A platform for | |||
|                         educational management</p> | |||
|                 </div> | |||
|             </div> | |||
|             <div class="col-lg-3"> | |||
|                 <div class="my-4 d-flex flex-column justify-content-center" | |||
|                      style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | |||
|                     <img src="assets/icons/manufacturing-black.png" | |||
|                          class="img-responsive mb-3" height="48px" width="48px"> | |||
|                     <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | |||
|                         Manufacturing | |||
|                     </h5> | |||
|                     <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | |||
|                         Plan, track and | |||
|                         schedule your operations</p> | |||
|                 </div> | |||
|             </div> | |||
|             <div class="col-lg-3"> | |||
|                 <div class="my-4 d-flex flex-column justify-content-center" | |||
|                      style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | |||
|                     <img src="assets/icons/ecom-black.png" | |||
|                          class="img-responsive mb-3" height="48px" width="48px"> | |||
|                     <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | |||
|                         E-commerce & Website | |||
|                     </h5> | |||
|                     <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | |||
|                         Mobile | |||
|                         friendly, | |||
|                         awe-inspiring product pages</p> | |||
|                 </div> | |||
|             </div> | |||
|             <div class="col-lg-3"> | |||
|                 <div class="my-4 d-flex flex-column justify-content-center" | |||
|                      style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | |||
|                     <img src="assets/icons/service-black.png" | |||
|                          class="img-responsive mb-3" height="48px" width="48px"> | |||
|                     <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | |||
|                         Service Management | |||
|                     </h5> | |||
|                     <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | |||
|                         Keep track of | |||
|                         services and invoice</p> | |||
|                 </div> | |||
|             </div> | |||
|             <div class="col-lg-3"> | |||
|                 <div class="my-4 d-flex flex-column justify-content-center" | |||
|                      style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | |||
|                     <img src="assets/icons/restaurant-black.png" | |||
|                          class="img-responsive mb-3" height="48px" width="48px"> | |||
|                     <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | |||
|                         Restaurant | |||
|                     </h5> | |||
|                     <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | |||
|                         Run your bar or | |||
|                         restaurant methodically</p> | |||
|                 </div> | |||
|             </div> | |||
|             <div class="col-lg-3"> | |||
|                 <div class="my-4 d-flex flex-column justify-content-center" | |||
|                      style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | |||
|                     <img src="assets/icons/hotel-black.png" | |||
|                          class="img-responsive mb-3" height="48px" width="48px"> | |||
|                     <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | |||
|                         Hotel Management | |||
|                     </h5> | |||
|                     <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | |||
|                         An | |||
|                         all-inclusive | |||
|                         hotel management application</p> | |||
|                 </div> | |||
|             </div> | |||
|         </div> | |||
|     </div> | |||
|     <!--END OF OUR INDUSTRIES --> | |||
|     <!-- SUPPORT --> | |||
|     <div class="d-flex align-items-center" | |||
|          style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | |||
|         <div class="d-flex justify-content-center align-items-center mr-2" | |||
|              style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | |||
|             <img src="assets/misc/customer-support.png"/> | |||
|         </div> | |||
|         <h2 class="mt-2" | |||
|             style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | |||
|             Support | |||
|         </h2> | |||
|     </div> | |||
|     <div class="container mt-5"> | |||
|         <div class="row"> | |||
|             <div class="col-sm-12 col-md-6"> | |||
|                 <div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> | |||
|                     <div class="mr-4 d-flex justify-content-center align-items-center" | |||
|                          style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> | |||
|                         <img src="assets/misc/support.png" height="48" | |||
|                              width="48" | |||
|                              style="width: 42px; height: 42px;"/> | |||
|                     </div> | |||
|                     <div> | |||
|                         <h4>Need Help?</h4> | |||
|                         <p style="line-height: 100%;">Got questions or need | |||
|                             help? | |||
|                             Get in touch.</p> | |||
|                         <a href="mailto:odoo@cybrosys.com"> | |||
|                             <p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> | |||
|                                 odoo@cybrosys.com</p> | |||
|                         </a> | |||
|                     </div> | |||
|                 </div> | |||
|             </div> | |||
|             <div class="col-sm-12 col-md-6"> | |||
|                 <div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> | |||
|                     <div class="mr-4 d-flex justify-content-center align-items-center" | |||
|                          style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> | |||
|                         <img src="assets/misc/whatsapp.png" height="52" | |||
|                              width="52" | |||
|                              style="width: 52px; height: 52px;"/> | |||
|                     </div> | |||
|                     <div> | |||
|                         <h4>WhatsApp</h4> | |||
|                         <p style="line-height: 100%;">Say hi to us on | |||
|                             WhatsApp!</p> | |||
|                         <a href="https://api.whatsapp.com/send?phone=918606827707"> | |||
|                             <p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> | |||
|                                 +91 86068 | |||
|                                 27707</p> | |||
|                         </a> | |||
|                     </div> | |||
|                 </div> | |||
|             </div> | |||
|         </div> | |||
|         <div class="row"> | |||
|             <div class="col-sm-12 my-5 d-flex justify-content-center align-items-center"> | |||
|                 <img src="assets/misc/logo.png" width="144" height="31" | |||
|                      style="width:144px; height: 31px; margin-top: 40px;"/> | |||
|             </div> | |||
|         </div> | |||
|     </div> | |||
| <!--</div>--> | |||
| <!-- END OF SUPPORT --> | |||
| @ -0,0 +1,223 @@ | |||
| 
 | |||
| /* CSS */ | |||
| .button-40 { | |||
|   background-color: #a31f2bbf; | |||
|   border: 1px solid transparent; | |||
|   box-sizing: border-box; | |||
|   color: #FFFFFF; | |||
|   cursor: pointer; | |||
|   flex: 0 0 auto; | |||
|   font-family: "Inter var",ui-sans-serif,system-ui,-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; | |||
|   font-size: 1.125rem; | |||
|   font-weight: 600; | |||
|   line-height: 1.5rem; | |||
|   padding: .75rem 1.2rem; | |||
|   text-align: center; | |||
|   text-decoration: none #6B7280 solid; | |||
|   text-decoration-thickness: auto; | |||
|   transition-duration: .2s; | |||
|   transition-property: background-color,border-color,color,fill,stroke; | |||
|   transition-timing-function: cubic-bezier(.4, 0, 0.2, 1); | |||
|   user-select: none; | |||
|   -webkit-user-select: none; | |||
|   touch-action: manipulation; | |||
|   width: auto; | |||
| } | |||
| 
 | |||
| .button-40:hover { | |||
|   background-color: #374151; | |||
| } | |||
| 
 | |||
| .button-40:focus { | |||
|   box-shadow: none; | |||
|   outline: 2px solid transparent; | |||
|   outline-offset: 2px; | |||
| } | |||
| 
 | |||
| @media (min-width: 768px) { | |||
|   .button-40 { | |||
|     padding: .75rem 1.5rem; | |||
|   } | |||
| } | |||
| 
 | |||
| 
 | |||
| 
 | |||
| .leaderboard { | |||
|   max-width: 490px; | |||
|   width: 100%; | |||
|   border-radius: 12px; | |||
| 
 | |||
|   header { | |||
|     --start: 15%; | |||
| 
 | |||
|     height: 130px; | |||
|     background-image: repeating-radial-gradient(circle at var(--start), transparent 0%, transparent 10%, rgba(54, 89, 219, .33) 10%, rgba(54, 89, 219, .33) 17%), linear-gradient(to right, #5b7cfa, #3659db); | |||
|     color: #fff; | |||
|     position: relative; | |||
|     border-radius: 12px 12px 0 0; | |||
|     overflow: hidden; | |||
| 
 | |||
|     .leaderboard__title { | |||
|       position: absolute; | |||
|       z-index: 2; | |||
|       top: 50%; | |||
|       right: calc(var(--start) * .75); | |||
|       transform: translateY(-50%); | |||
|       text-transform: uppercase; | |||
|       margin: 0; | |||
| 
 | |||
|       span { | |||
|         display: block; | |||
|       } | |||
| 
 | |||
|       &--top { | |||
|         font-size: 24px; | |||
|         font-weight: 700; | |||
|         letter-spacing: 6.5px; | |||
|       } | |||
| 
 | |||
|       &--bottom { | |||
|         font-size: 13px; | |||
|         font-weight: 500; | |||
|         letter-spacing: 3.55px; | |||
|         opacity: .65; | |||
|         transform: translateY(-2px); | |||
|       } | |||
|     } | |||
| 
 | |||
|     .leaderboard__icon { | |||
|       fill: #fff; | |||
|       opacity: .35; | |||
|       width: 50px; | |||
|       position: absolute; | |||
|       top: 50%; | |||
|       left: var(--start); | |||
|       transform: translate(-50%, -50%); | |||
|     } | |||
|   } | |||
| 
 | |||
|   &__profiles { | |||
|     background-color: #fff; | |||
|     border-radius: 0 0 12px 12px; | |||
|     padding: 15px 15px 20px; | |||
|     display: grid; | |||
|     row-gap: 8px; | |||
|   } | |||
| 
 | |||
|   &__profile { | |||
|     display: grid; | |||
|     grid-template-columns: 1fr 3fr 1fr; | |||
|     align-items: center; | |||
|     padding: 10px 30px 10px 10px; | |||
|     overflow: hidden; | |||
|     border-radius: 10px; | |||
|     box-shadow: 0 5px 7px -1px rgba(51, 51, 51, 0.23); | |||
|     cursor: pointer; | |||
|     transition: transform .25s cubic-bezier(.7,.98,.86,.98), box-shadow .25s cubic-bezier(.7,.98,.86,.98); | |||
|     background-color: #fff; | |||
| 
 | |||
|     &:hover { | |||
|       transform: scale(1.2); | |||
|       box-shadow: 0 9px 47px 11px rgba(51, 51, 51, 0.18); | |||
|     } | |||
|   } | |||
| 
 | |||
|   &__picture { | |||
|     max-width: 100%; | |||
|     width: 60px; | |||
|     border-radius: 50%; | |||
|     box-shadow: 0 0 0 10px #ebeef3, 0 0 0 22px #f3f4f6; | |||
|   } | |||
| 
 | |||
|   &__name { | |||
|     color: #979cb0; | |||
|     font-weight: 600; | |||
|     font-size: 20px; | |||
|     letter-spacing: 0.64px; | |||
|     margin-left: 12px; | |||
|   } | |||
| 
 | |||
|   &__value { | |||
|     color: #35d8ac; | |||
|     font-weight: 700; | |||
|     font-size: 34px; | |||
|     text-align: right; | |||
| 
 | |||
|     & > span { | |||
|       opacity: .8; | |||
|       font-weight: 600; | |||
|       font-size: 13px; | |||
|       margin-left: 3px; | |||
|     } | |||
|   } | |||
| } | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| // bare minimuu styles | |||
| 
 | |||
| body { | |||
|   margin: 0; | |||
|   background-color: #eaeaea; | |||
|   display: grid; | |||
|   height: 100vh; | |||
|   place-items: center; | |||
|   font-family: 'Source Sans Pro', sans-serif; | |||
| } | |||
| 
 | |||
| .leaderboard { | |||
|   box-shadow: 0 0 40px -10px rgba(0, 0, 0, .4); | |||
| } | |||
| 
 | |||
| .o_image { | |||
|     height:122px; | |||
|     width:81px; | |||
| } | |||
| 
 | |||
| body{ | |||
|   background: #f2f2f2; | |||
|   font-family: 'Open Sans', sans-serif; | |||
| } | |||
| 
 | |||
| .search { | |||
|   width: 100%; | |||
|   position: relative; | |||
|   display: flex; | |||
| } | |||
| 
 | |||
| .searchTerm { | |||
|   width: 100%; | |||
|   border: 3px solid #00B4CC; | |||
|   border-right: none; | |||
|   padding: 5px; | |||
|   height: 36px; | |||
|   border-radius: 5px 0 0 5px; | |||
|   outline: none; | |||
|   color: #000000; | |||
| } | |||
| 
 | |||
| .searchTerm:focus{ | |||
|   color: #000000; | |||
| } | |||
| 
 | |||
| .searchButton { | |||
|   width: 40px; | |||
|   height: 36px; | |||
|   border: 1px solid #00B4CC; | |||
|   background: #00B4CC; | |||
|   text-align: center; | |||
|   color: #fff; | |||
|   border-radius: 0 5px 5px 0; | |||
|   cursor: pointer; | |||
|   font-size: 20px; | |||
| } | |||
| 
 | |||
| /*Resize the wrap to see the search bar change!*/ | |||
| .wrap{ | |||
|   width: 19%; | |||
|   position: absolute; | |||
|   top: 30%; | |||
|   left: 50%; | |||
|   transform: translate(-50%, -50%); | |||
| } | |||
| @ -0,0 +1,25 @@ | |||
| /** @odoo-module **/ | |||
| 
 | |||
| import publicWidget from 'web.public.widget'; | |||
| 
 | |||
| publicWidget.registry.WebsiteSalePrebooking = publicWidget.Widget.extend({ | |||
|     selector: '#product_detail', | |||
|         events:{ | |||
|         'click .pre_booking': '_preBooking', | |||
|     }, | |||
| 
 | |||
| 
 | |||
|      _preBooking: function (ev) { | |||
|         let pre_max_qty = parseFloat($(ev.currentTarget).data('id')); | |||
|         let add_qty_value = parseFloat($('.quantity').val()); | |||
|         if (!isNaN(pre_max_qty) && !isNaN(add_qty_value)) { | |||
|             if (pre_max_qty >= add_qty_value) { | |||
|                 window.location = $(ev.currentTarget).val()+'&prod_qty='+add_qty_value | |||
|             } else { | |||
|                     window.location = '/sale/fail'; | |||
|             } | |||
|         } | |||
|    } | |||
| 
 | |||
| }); | |||
| 
 | |||
| @ -0,0 +1,56 @@ | |||
| <?xml version="1.0" encoding="utf-8" ?> | |||
| <odoo> | |||
|     <!-- Template for adding the pre bookings in the portal my home--> | |||
|     <template id="portal_my_home_pre_bookings" | |||
|               name="portal_my_home_inherit_website_pre_booking" | |||
|               inherit_id="portal.portal_my_home" customize_show="True" > | |||
|        <xpath expr="//div[hasclass('o_portal_docs')]" position="inside"> | |||
|            <t t-call="portal.portal_docs_entry"> | |||
|                 <t t-set="icon" t-value="'/sale/static/src/img/bag.svg'"/> | |||
|                <t t-set="title">Pre Booking</t> | |||
|                <t t-set="url" t-value="'/my/pre_bookings'"/> | |||
|                <t t-set="text">Pre-Booked Orders.</t> | |||
|                <t t-set="placeholder_count" t-value="'pre_bookings_count'"/> | |||
|            </t> | |||
|        </xpath> | |||
|     </template> | |||
| 
 | |||
|     <!-- Template for the breadcrumbs for the pre-booking--> | |||
|     <template id="portal_my_home_menu_pre_bookings" | |||
|               name="Portal layout : pre bookings menu entries" | |||
|           	inherit_id="portal.portal_breadcrumbs" priority="65"> | |||
|     	<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside"> | |||
|         	<li t-if="page_name == 'pre_booking'" | |||
|             	class="breadcrumb-item active"> | |||
|             	<span>Pre Booking</span> | |||
|         	</li> | |||
|     	</xpath> | |||
| 	</template> | |||
|     <!-- List of pre bookings to show in the portal table--> | |||
|     <template id="portal_my_pre_bookings" name="My Pre Bookings"> | |||
|         <t t-call="portal.portal_layout"> | |||
|             <t t-set="breadcrumbs_searchbar" t-value="True"/> | |||
|             <t t-call="portal.portal_searchbar"> | |||
|                 <t t-set="title">Pre Bookings</t> | |||
|             </t> | |||
|             <t t-if="pre_bookings" t-call="portal.portal_table"> | |||
|                 <thead> | |||
|                     <tr class="active"> | |||
|                         <th>Reference</th> | |||
|                         <th>Product</th> | |||
|                         <th>Booking Date</th> | |||
|                         <th>state</th> | |||
|                     </tr> | |||
|                 </thead> | |||
|                 <t t-foreach="pre_bookings" t-as="pre_booking"> | |||
|                     <tr> | |||
|                         <td><span t-field="pre_booking.reference"/></td> | |||
|                         <td><span t-field="pre_booking.product_id.name"/></td> | |||
|                         <td><span t-field="pre_booking.booking_date"/></td> | |||
|                         <td><span t-field="pre_booking.state"/></td> | |||
|                     </tr> | |||
|                 </t> | |||
|             </t> | |||
|         </t> | |||
|     </template> | |||
| </odoo> | |||
| @ -0,0 +1,136 @@ | |||
| <?xml version="1.0" encoding="utf-8" ?> | |||
| <odoo> | |||
| <!--    Template for the pre-book address--> | |||
|     <template id="prebook_address"> | |||
|         <t t-set="no_footer" t-value="1"/> | |||
|         <t t-call="website.layout"> | |||
|             <div id="wrap"> | |||
|                 <div class="container oe_website_sale py-2"> | |||
|                     <div class="row"> | |||
|                         <div class="col-12 col-xl order-xl-1 oe_cart"> | |||
|                             <div> | |||
|                                 <form action="/prebook/address" method="post" class="checkout_autoformat"> | |||
|                                     <div class="row"> | |||
|                                         <div t-attf-class="mb-3 #{'o_has_error' or ''} col-lg-12 div_name"> | |||
|                                             <label class="col-form-label" for="name">Name</label> | |||
|                                             <input type="text" name="name" | |||
|                                                    t-attf-class="form-control #{'is-invalid' or ''}" | |||
|                                                    t-att-value="'name'" required="required"/> | |||
|                                         </div> | |||
|                                         <div class="w-100"/> | |||
|                                         <div t-attf-class="mb-3 #{'o_has_error' or ''} col-lg-6" id="div_email"> | |||
|                                             <label t-attf-class="col-form-label #{'label-optional' or ''}" for="email"> | |||
|                                                 Email | |||
|                                             </label> | |||
|                                             <input type="email" name="email" | |||
|                                                    t-attf-class="form-control #{'is-invalid' or ''}" | |||
|                                                    t-att-value="'email'"/> | |||
|                                         </div> | |||
|                                         <div t-attf-class="mb-3 #{'o_has_error' or ''} col-lg-6" id="div_phone"> | |||
|                                             <label class="col-form-label" for="phone">Phone</label> | |||
|                                             <input type="tel" name="phone" | |||
|                                                    t-attf-class="form-control #{'is-invalid' or ''}" | |||
|                                                    t-att-value="'phone'"/> | |||
|                                         </div> | |||
| <!--                                        <t t-if="website._display_partner_b2b_fields()">--> | |||
|                                             <div class="w-100"/> | |||
|                                             <t t-set='vat_warning' t-value="'vat'"/> | |||
|                                             <t t-if="mode == ('new', 'billing') or (mode == ('edit', 'billing') and (can_edit_vat or 'vat' in checkout and checkout['vat']))"> | |||
|                                                 <div t-attf-class="mb-3 #{'o_has_error' or ''} col-lg-6 mb-0"> | |||
|                                                     <label class="col-form-label fw-normal label-optional" | |||
|                                                            for="company_name">Company Name | |||
|                                                     </label> | |||
|                                                     <input type="text" name="company_name" | |||
|                                                            t-attf-class="form-control #{'is-invalid' or ''}" | |||
|                                                            t-att-value="'commercial_company_name' or 'company_name'" | |||
|                                                            t-att-readonly="'1' if vat_warning else None"/> | |||
|                                                     <small t-if="vat_warning" | |||
|                                                            class="form-text text-muted d-block d-lg-none">Changing | |||
|                                                         company name is not allowed once document(s) have been issued | |||
|                                                         for your account. Please contact us directly for this operation. | |||
|                                                     </small> | |||
|                                                 </div> | |||
|                                                 <div t-attf-class="mb-3 #{'o_has_error' or ''} col-lg-6 div_vat mb-0"> | |||
|                                                     <label class="col-form-label fw-normal label-optional" for="vat">TIN | |||
|                                                         / VAT | |||
|                                                     </label> | |||
|                                                     <input type="text" name="vat" | |||
|                                                            t-attf-class="form-control #{'is-invalid' or ''}" | |||
|                                                            t-att-value="'vat'" | |||
|                                                            t-att-readonly="'1' if vat_warning else None"/> | |||
|                                                     <small t-if="vat_warning" | |||
|                                                            class="form-text text-muted d-block d-lg-none">Changing VAT | |||
|                                                         number is not allowed once document(s) have been issued for your | |||
|                                                         account. Please contact us directly for this operation. | |||
|                                                     </small> | |||
|                                                 </div> | |||
|                                                 <div t-if="vat_warning" class="col-12 d-none d-lg-block mb-1"> | |||
|                                                     <small class="form-text text-muted">Changing company name or VAT | |||
|                                                         number is not allowed once document(s) have been issued for your | |||
|                                                         account. Please contact us directly for this operation. | |||
|                                                     </small> | |||
|                                                 </div> | |||
|                                             </t> | |||
| <!--                                        </t>--> | |||
|                                         <div class="w-100"/> | |||
|                                     </div> | |||
|                                     <input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/> | |||
|                                     <input type="hidden" name="submitted" value="1"/> | |||
|                                     <input type="hidden" name="product" t-att-value="product"/> | |||
|                                     <input type="hidden" name="partner_id" t-att-value="partner_id or '0'"/> | |||
|                                     <input type="hidden" name="callback" t-att-value="callback"/> | |||
|                                     <input type="hidden" name="field_required" t-att-value="'phone,name'"/> | |||
|                                     <div class="d-flex justify-content-between"> | |||
|                                         <a role="button" | |||
|                                            t-att-href="mode == ('new', 'billing') and '/shop/cart' or '/shop/checkout'" | |||
|                                            class="btn btn-secondary mb32"> | |||
|                                             <i class="fa fa-chevron-left"/> | |||
|                                             <span>Back</span> | |||
|                                         </a> | |||
|                                         <a role="button" type="submit" href="#" | |||
|                                            class="btn btn-primary mb32 a-submit a-submit-disable a-submit-loading"> | |||
|                                             <span>Next</span> | |||
|                                             <i class="fa fa-chevron-right"/> | |||
|                                         </a> | |||
|                                     </div> | |||
|                                 </form> | |||
|                             </div> | |||
|                         </div> | |||
|                     </div> | |||
|                 </div> | |||
|             </div> | |||
|         </t> | |||
|     </template> | |||
| <!--    Template for the pre-book success page--> | |||
|     <template id="pre_booking_done"> | |||
|         <t t-call="website.layout"> | |||
|             <h2 style="text-align: center; margin-top: 140px; font-style: normal;"> | |||
|                 Prebooking (<t t-esc="ref"/>) successfully created...! | |||
|             </h2> | |||
|             <div class="text-center" style="padding-top:10mm; "> | |||
|                 <button class="button-40" style="background-color: #0f0c0dbf;"> | |||
|                     <a role="menuitem" t-attf-href="/shop" style="color: #f8f9fa;"> | |||
|                         Back | |||
|                     </a> | |||
|                 </button> | |||
|             </div> | |||
|         </t> | |||
|     </template> | |||
| 
 | |||
| <!--Template for pre-book fail--> | |||
| 
 | |||
|     <template id="pre_booking_failed"> | |||
|         <t t-call="website.layout"> | |||
|             <h2 style="text-align: center; margin-top: 140px; font-style: normal;"> | |||
|                 Sorry Your entry exceeds the maximum value. | |||
|             </h2> | |||
|             <div class="text-center" style="padding-top:10mm; "> | |||
|                 <button class="button-40" style="background-color: #0f0c0dbf;"> | |||
|                     <a role="menuitem" t-attf-href="/shop" style="color: #f8f9fa;"> | |||
|                         Back | |||
|                     </a> | |||
|                 </button> | |||
|             </div> | |||
|         </t> | |||
|     </template> | |||
| </odoo> | |||
| @ -0,0 +1,69 @@ | |||
| <?xml version="1.0" encoding="utf-8" ?> | |||
| <odoo> | |||
| <!--    Wb menu for the pre-booking--> | |||
|     <record id="menu_service" model="website.menu"> | |||
|         <field name="name">Track PreBookings</field> | |||
|         <field name="url">/my/prebookings</field> | |||
|         <field name="parent_id" ref="website.main_menu"/> | |||
|         <field name="sequence" type="int">31</field> | |||
|     </record> | |||
| <!--    Template for the pre-booking order Track--> | |||
|     <template id="my_booking_template"> | |||
|         <t t-call="portal.portal_layout"> | |||
|             <form action="/track/prebooking" enctype="multipart/form-data" method="post"> | |||
|                 <div class="wrap" style="top:110px;"> | |||
|                      <h6 style="text-align:center; margin-top:35mm;">TRACK YOUR BOOKING</h6> | |||
|                     <div class="search"> | |||
|                         <input type="text" class="searchTerm" name="reference" required="" | |||
|                                placeholder="Enter your booking reference"/> | |||
|                         <button type="submit" class="searchButton"> | |||
|                             <i class="fa fa-search"> </i> | |||
|                         </button> | |||
|                     </div> | |||
|                 </div> | |||
|                 <div> | |||
|                     <t t-if="reference"> | |||
|                         <table class="my_time_off_table" style="margin-top: 109px; width:100%; margin-left:20px;"> | |||
|                             <thead style="display: table-row-group; background-color:#8DB2D7; border: 0.3rem solid #8DB2D7; | |||
|                         border-bottom: none;"> | |||
|                                 <tr> | |||
|                                     <th class="" style="width: 20%; color: white;" scope="col"> | |||
|                                         Booking Reference | |||
|                                     </th> | |||
|                                     <th class="" style="width: 20%; color: white;" scope="col"> | |||
|                                         Product | |||
|                                     </th> | |||
|                                     <th class="" style="width: 20%; color: white;" scope="col"> | |||
|                                         Booking Date | |||
|                                     </th> | |||
|                                     <th class="" style="width: 20%; color: white;" scope="col"> | |||
|                                         Status | |||
|                                     </th> | |||
|                                 </tr> | |||
|                             </thead> | |||
|                             <body> | |||
|                                 <td style="border: 0.15rem solid black;  border-top: none;"> | |||
|                                     <t t-esc="reference"/> | |||
|                                 </td> | |||
|                                 <td style="border: 0.15rem solid black;  border-top: none;"> | |||
|                                     <t t-esc="product"/> | |||
|                                 </td> | |||
|                                 <td style="border: 0.15rem solid black;  border-top: none;"> | |||
|                                     <t t-esc="date"/> | |||
|                                 </td> | |||
|                                 <td style="border: 0.15rem solid black;  border-top: none;"> | |||
|                                     <t t-esc="status"/> | |||
|                                 </td> | |||
|                             </body> | |||
|                         </table> | |||
|                     </t> | |||
|                     <t t-if="vals"> | |||
|                         <div style="margin-top:109px; color: red;"> | |||
|                             <h5 style="text-align:center;">No bookings found...!</h5> | |||
|                         </div> | |||
|                     </t> | |||
|                 </div> | |||
|             </form> | |||
|         </t> | |||
|     </template> | |||
| </odoo> | |||
| @ -0,0 +1,24 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <odoo> | |||
|     <!--    Product form page inherited to add the custom fields--> | |||
| 
 | |||
|     <record id="product_template_only_form_view" model="ir.ui.view"> | |||
|         <field name="name">product.template.view.form.inherit.website.pre.booking</field> | |||
|         <field name="inherit_id" ref="product.product_template_only_form_view"/> | |||
|         <field name="model">product.template</field> | |||
|         <field name="arch" type="xml"> | |||
|             <xpath expr="//page[@name='variants']" position="after"> | |||
|                <page string="Prebooking" name="prebooking"> | |||
|                     <group string="Booking Configuration"> | |||
|                         <group> | |||
|                             <field name="pre_book"/> | |||
|                         </group> | |||
|                         <group> | |||
|                             <field name="pre_max_quantity" attrs="{'invisible':[('pre_book','!=',True)]}"/> | |||
|                         </group> | |||
|                     </group> | |||
|                 </page> | |||
|             </xpath> | |||
|         </field> | |||
|     </record> | |||
| </odoo> | |||
| @ -0,0 +1,94 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <odoo> | |||
| <!--    Form page for the website pre-book model --> | |||
|     <record id="website_prebook_view_form" model="ir.ui.view"> | |||
|         <field name="name">website.prebook.view.form</field> | |||
|         <field name="model">website.prebook</field> | |||
|         <field name="arch" type="xml"> | |||
|             <form> | |||
|                 <header> | |||
|                     <button name="action_confirm" data-hotkey="v" string="Confirm" type="object" | |||
|                             groups="base.group_user" | |||
|                     attrs="{'invisible': [('state', '!=', 'draft')]}"/> | |||
|                     <field name="state" widget="statusbar"/> | |||
|                 </header> | |||
|                 <sheet> | |||
|                     <div class="oe_button_box" name="button_box"> | |||
|                         <button name="action_view_sale_order" type="object" class="oe_stat_button" | |||
|                                 icon="fa-pencil-square-o" | |||
|                                 attrs="{'invisible': [('state', '!=', 'confirm')]}" | |||
|                                 > | |||
|                             <div class="o_stat_info"> | |||
|                                 <span class="o_stat_text">Sale Order</span> | |||
|                             </div> | |||
|                         </button> | |||
|                     </div> | |||
|                     <div class="oe_title"> | |||
|                         <h1> | |||
|                             <field name="reference" readonly="1"/> | |||
|                         </h1> | |||
|                     </div> | |||
|                     <group> | |||
|                         <group> | |||
|                             <field name="partner_id"/> | |||
|                         </group> | |||
|                         <group> | |||
|                             <field name="booking_date"/> | |||
|                         </group> | |||
|                         <group> | |||
|                             <field name="product_id"/> | |||
|                             <field name="quantity"/> | |||
|                         </group> | |||
|                         <group> | |||
|                             <field name="website_id"/> | |||
|                         </group> | |||
|                     </group> | |||
|                 </sheet> | |||
|             </form> | |||
|         </field> | |||
|     </record> | |||
| <!--    Tree page for the website pre-book model --> | |||
|     <record id="website_prebook_view_tree" model="ir.ui.view"> | |||
|         <field name="name">website.prebook.view.tree</field> | |||
|         <field name="model">website.prebook</field> | |||
|         <field name="arch" type="xml"> | |||
|             <tree default_order="reference desc"> | |||
|                 <field name="reference"/> | |||
|                 <field name="partner_id"/> | |||
|                 <field name="product_id"/> | |||
|                 <field name="quantity"/> | |||
|                 <field name="booking_date"/> | |||
|             </tree> | |||
|         </field> | |||
|     </record> | |||
| <!--Menu action for the pre-book menu--> | |||
|     <record id="action_prebook_menu" model="ir.actions.act_window"> | |||
|         <field name="name">Pre Bookings</field> | |||
|         <field name="type">ir.actions.act_window</field> | |||
|         <field name="res_model">website.prebook</field> | |||
|         <field name="view_mode">tree,kanban,form</field> | |||
|         <field name="help" type="html"> | |||
|             <p class="o_view_nocontent_smiling_face"> | |||
|                 Create! | |||
|             </p> | |||
|         </field> | |||
|     </record> | |||
| <!--    Menu action for the pre-book main menu--> | |||
|     <record id="action_pre_book_main_menu" model="ir.actions.act_window"> | |||
|         <field name="name">Pre Bookings</field> | |||
|         <field name="type">ir.actions.act_window</field> | |||
|         <field name="res_model">website.prebook</field> | |||
|         <field name="view_mode">tree,kanban,form</field> | |||
|         <field name="help" type="html"> | |||
|             <p class="o_view_nocontent_smiling_face"> | |||
|                 Create! | |||
|             </p> | |||
|         </field> | |||
|     </record> | |||
| <!--    Menu for the pre-booking--> | |||
|     <menuitem id="website_prebook_root" | |||
|               name="Pre Bookings" | |||
|               parent="website_sale.menu_orders" | |||
|               action="action_prebook_menu" | |||
|               sequence="10"/> | |||
| </odoo> | |||
| @ -0,0 +1,18 @@ | |||
| <?xml version="1.0" encoding="utf-8" ?> | |||
| <odoo> | |||
| <!--    Product page inherited to add the custom button--> | |||
|     <template id="product_quantity" inherit_id="website_sale.product" name="Select Quantity"> | |||
|         <xpath expr="//div[@id='product_attributes_simple']" position="before"> | |||
|             <div> | |||
|                  <t t-if="product.pre_book and product.pre_max_quantity > 0"> | |||
|                     <a role="menuitem" | |||
|                        style="color: #f8f9fa;"> | |||
|                         <button type="button" t-att-value="keep('/my/prebook_request/%s' % slug(product))" class="btn btn-primary pre_booking" t-att-data-id="product.pre_max_quantity"> | |||
|                             Pre Book | |||
|                         </button> | |||
|                     </a> | |||
|                 </t> | |||
|             </div> | |||
|         </xpath> | |||
|     </template> | |||
| </odoo> | |||