| @ -0,0 +1,46 @@ | |||||
|  | .. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg | ||||
|  |    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||||
|  |    :alt: License: AGPL-3 | ||||
|  | 
 | ||||
|  | Website pre booking V16 | ||||
|  | ======================= | ||||
|  | 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/16.0/legal/licenses.html) | ||||
|  | 
 | ||||
|  | Credits | ||||
|  | ------- | ||||
|  | Developer: (V16) Hari Krishnan @ Cybrosys | ||||
|  | 
 | ||||
|  | Contacts | ||||
|  | -------- | ||||
|  | * Mail Contact : odoo@cybrosys.com | ||||
|  | * Website : https://cybrosys.com | ||||
|  | 
 | ||||
|  | Bug Tracker | ||||
|  | ----------- | ||||
|  | Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. | ||||
|  | 
 | ||||
|  | Maintainer | ||||
|  | ========== | ||||
|  | .. image:: https://cybrosys.com/images/logo.png | ||||
|  |    :target: https://cybrosys.com | ||||
|  | 
 | ||||
|  | This module is maintained by Cybrosys Technologies. | ||||
|  | 
 | ||||
|  | For support and more information, please visit `Our Website <https://cybrosys.com/>`__ | ||||
|  | 
 | ||||
|  | Further information | ||||
|  | =================== | ||||
|  | HTML Description: `<static/description/index.html>`__ | ||||
| @ -0,0 +1,23 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU 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,54 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU 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': '16.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", | ||||
|  |     'license': 'AGPL-3', | ||||
|  |     'depends': ['portal', 'website_sale'], | ||||
|  |     'data': [ | ||||
|  |         'security/ir.model.access.csv', | ||||
|  |         'data/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' | ||||
|  |         ], | ||||
|  |     }, | ||||
|  |     'images': ['static/description/banner.png'], | ||||
|  |     '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: Cybrosys Techno Solutions(<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: Cybrosys Techno Solutions(<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): | ||||
|  | 
 | ||||
|  |     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,102 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU 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): | ||||
|  | 
 | ||||
|  |     @http.route(['/my/prebook_request/<model("product.template"):product>'], | ||||
|  |                 type='http', auth="public", website=True) | ||||
|  |     def portal_my_employee_request(self, product, ): | ||||
|  |         """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 | ||||
|  |         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, | ||||
|  |                 'website_id': request.website.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}) | ||||
|  |         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 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", {'vali': 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) | ||||
| @ -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> | ||||
|  | 
 | ||||
|  | #### 20.03.2024 | ||||
|  | #### Version 16.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: Cybrosys Techno Solutions(<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,33 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU 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') | ||||
|  |     from_date = fields.Date(string='From Date') | ||||
|  |     to_date = fields.Date(string='To Date') | ||||
|  |     pre_max_quantity = fields.Integer(string="Pre Book Maximum Quantity") | ||||
| @ -0,0 +1,86 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU 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") | ||||
|  | 
 | ||||
|  |     @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': 1, | ||||
|  |             })], | ||||
|  |         }) | ||||
|  |         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: 88 KiB | 
| After Width: | Height: | Size: 81 KiB | 
| After Width: | Height: | Size: 79 KiB | 
| After Width: | Height: | Size: 92 KiB | 
| After Width: | Height: | Size: 82 KiB | 
| After Width: | Height: | Size: 74 KiB | 
| After Width: | Height: | Size: 114 KiB | 
| After Width: | Height: | Size: 217 KiB | 
| After Width: | Height: | Size: 232 KiB | 
| After Width: | Height: | Size: 76 KiB | 
| After Width: | Height: | Size: 64 KiB | 
| After Width: | Height: | Size: 64 KiB | 
| After Width: | Height: | Size: 114 KiB | 
| After Width: | Height: | Size: 136 KiB | 
| After Width: | Height: | Size: 119 KiB | 
| After Width: | Height: | Size: 118 KiB | 
| After Width: | Height: | Size: 70 KiB | 
| After Width: | Height: | Size: 16 KiB | 
| @ -0,0 +1,564 @@ | |||||
|  | <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 manage the pre booking orders in the 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: 40px; margin-bottom: 40px"> | ||||
|  |       <img src="assets/misc/check-box.png" class="mr-2" /> | ||||
|  |       <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Community & | ||||
|  |         Enterprise Support.</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;"> | ||||
|  |         Products prebooking managing</span> | ||||
|  |     </div> | ||||
|  |   </div> | ||||
|  |   <div class="col-sm-12 col-md-6"> | ||||
|  | 
 | ||||
|  | 
 | ||||
|  |     <div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px"> | ||||
|  |       <img src="assets/misc/check-box.png" class="mr-2" /> | ||||
|  |       <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Prebook option in website.</span> | ||||
|  |     </div> | ||||
|  | 
 | ||||
|  |     <div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px"> | ||||
|  |       <img src="assets/misc/check-box.png" class="mr-2" /> | ||||
|  |       <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Book products for non existing customer.</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 Prebookings.</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;">Products Pre Booking managing | ||||
|  |       </h3><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;">Website product prebooking </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;">Total Pre Bookings | ||||
|  |       </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;">Pre Bookings List</h3> | ||||
|  |       <img src="assets/screenshots/4.png" class="img-thumbnail"> | ||||
|  |       <img src="assets/screenshots/5.png" class="img-thumbnail"> | ||||
|  |       <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 Bookings Tracking | ||||
|  |       </h3> | ||||
|  |       <img src="assets/screenshots/7.png" class="img-thumbnail"> | ||||
|  |     </div> | ||||
|  |     <div style="display: block; margin: 30px auto;"> | ||||
|  |       <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Pre Bookings in portal | ||||
|  |       </h3> | ||||
|  |       <img src="assets/screenshots/8.png" class="img-thumbnail"> | ||||
|  |     </div> | ||||
|  |     <div style="display: block; margin: 30px auto;"> | ||||
|  |       <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">List of own Pre Bookings | ||||
|  |       </h3> | ||||
|  |       <img src="assets/screenshots/9.png" class="img-thumbnail"> | ||||
|  |     </div> | ||||
|  |   </div> | ||||
|  | </div> | ||||
|  | <!-- END OF SCREENSHOTS SECTION --> | ||||
|  | 
 | ||||
|  | <!-- RELATED PRODUCTS --> | ||||
|  | <div class="row"> | ||||
|  |         <div class="col-sm-12 col-md-12-col-lg-2"> | ||||
|  |             <h2 style="font-weight: bold; color: #3D3D4E;">Related Modules</h2> | ||||
|  |             <p style="color: #777783;">Explore our related modules</p> | ||||
|  |             <hr/> | ||||
|  |         </div> | ||||
|  |         <div class="col-sm-12"> | ||||
|  |             <div id="demo1" class="row carousel slide" data-ride="carousel"> | ||||
|  |                 <!-- The slideshow --> | ||||
|  |                 <div class="carousel-inner" style="padding: 30px;"> | ||||
|  |                     <div class="carousel-item" style="min-height: 198.656px;"> | ||||
|  |                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | ||||
|  |                             <a href="https://apps.odoo.com/apps/modules/16.0/whatsapp_redirect/" target="_blank"> | ||||
|  |                                 <div style="border-radius:10px"> | ||||
|  |                                     <img class="img img-responsive center-block" style="border-radius: 0px;" | ||||
|  |                                          src="assets/modules/1.png"> | ||||
|  |                                 </div> | ||||
|  |                             </a> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | ||||
|  |                             <a href="https://apps.odoo.com/apps/modules/16.0/hr_payroll_community/" target="_blank"> | ||||
|  |                                 <div style="border-radius:10px"> | ||||
|  |                                     <img class="img img-responsive center-block" style="border-radius: 0px;" | ||||
|  |                                          src="assets/modules/2.png"> | ||||
|  |                                 </div> | ||||
|  |                             </a> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | ||||
|  |                             <a href="https://apps.odoo.com/apps/modules/16.0/crm_dashboard/" target="_blank"> | ||||
|  |                                 <div style="border-radius:10px"> | ||||
|  |                                     <img class="img img-responsive center-block" style="border-radius: 0px;" | ||||
|  |                                          src="assets/modules/3.png"> | ||||
|  |                                 </div> | ||||
|  |                             </a> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="carousel-item active" style="min-height: 198.656px;"> | ||||
|  |                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | ||||
|  |                             <a href="https://apps.odoo.com/apps/modules/16.0/export_stockinfo_xls/" target="_blank"> | ||||
|  |                                 <div style="border-radius:10px"> | ||||
|  |                                     <img class="img img-responsive center-block" style="border-radius: 0px;" | ||||
|  |                                          src="assets/modules/4.png"> | ||||
|  |                                 </div> | ||||
|  |                             </a> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | ||||
|  |                             <a href="https://apps.odoo.com/apps/modules/16.0/sale_discount_total/" target="_blank"> | ||||
|  |                                 <div style="border-radius:10px"> | ||||
|  |                                     <img class="img img-responsive center-block" style="border-radius: 0px;" | ||||
|  |                                          src="assets/modules/5.png"> | ||||
|  |                                 </div> | ||||
|  |                             </a> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | ||||
|  |                             <a href="https://apps.odoo.com/apps/modules/16.0/fleet_rental/" target="_blank"> | ||||
|  |                                 <div style="border-radius:10px"> | ||||
|  |                                     <img class="img img-responsive center-block" style="border-radius: 0px;" | ||||
|  |                                          src="assets/modules/6.png"> | ||||
|  |                                 </div> | ||||
|  |                             </a> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <!-- Left and right controls --> | ||||
|  |                 <a class="carousel-control-prev" href="#demo1" data-slide="prev" style="width:35px; color:#000"> <span | ||||
|  |                         class="carousel-control-prev-icon"><i class="fa fa-chevron-left" | ||||
|  |                                                               style="font-size:24px"></i></span> | ||||
|  |                 </a> <a class="carousel-control-next" href="#demo1" data-slide="next" style="width:35px; color:#000"> | ||||
|  |                 <span class="carousel-control-next-icon"><i class="fa fa-chevron-right" | ||||
|  |                                                             style="font-size:24px"></i></span> | ||||
|  |             </a> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | <!-- END OF RELATED PRODUCTS --> | ||||
|  | 
 | ||||
|  | <!-- OUR SERVICES --> | ||||
|  | <div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | ||||
|  |   <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |     style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |     <img src="assets/misc/star.png" /> | ||||
|  |   </div> | ||||
|  |   <h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our Services | ||||
|  |   </h2> | ||||
|  | </div> | ||||
|  | 
 | ||||
|  | <div class="container my-5"> | ||||
|  |   <div class="row"> | ||||
|  |     <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |       <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |         style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |         <img src="assets/icons/cogs.png" class="img-responsive" height="48px" width="48px"> | ||||
|  |       </div> | ||||
|  |       <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |         Odoo | ||||
|  |         Customization</h6> | ||||
|  |     </div> | ||||
|  | 
 | ||||
|  |     <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |       <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |         style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |         <img src="assets/icons/wrench.png" class="img-responsive" height="48px" width="48px"> | ||||
|  |       </div> | ||||
|  |       <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |         Odoo | ||||
|  |         Implementation</h6> | ||||
|  |     </div> | ||||
|  | 
 | ||||
|  |     <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |       <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |         style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |         <img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px"> | ||||
|  |       </div> | ||||
|  |       <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |         Odoo Support</h6> | ||||
|  |     </div> | ||||
|  | 
 | ||||
|  | 
 | ||||
|  |     <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |       <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |         style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |         <img src="assets/icons/user.png" class="img-responsive" height="48px" width="48px"> | ||||
|  |       </div> | ||||
|  |       <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |         Hire | ||||
|  |         Odoo | ||||
|  |         Developer</h6> | ||||
|  |     </div> | ||||
|  | 
 | ||||
|  |     <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |       <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |         style="background-color: #54a0ff  !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |         <img src="assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px"> | ||||
|  |       </div> | ||||
|  |       <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |         Odoo | ||||
|  |         Integration</h6> | ||||
|  |     </div> | ||||
|  | 
 | ||||
|  |     <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |       <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |         style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |         <img src="assets/icons/update.png" class="img-responsive" height="48px" width="48px"> | ||||
|  |       </div> | ||||
|  |       <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |         Odoo | ||||
|  |         Migration</h6> | ||||
|  |     </div> | ||||
|  | 
 | ||||
|  | 
 | ||||
|  |     <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |       <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |         style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |         <img src="assets/icons/consultation.png" class="img-responsive" height="48px" width="48px"> | ||||
|  |       </div> | ||||
|  |       <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |         Odoo | ||||
|  |         Consultancy</h6> | ||||
|  |     </div> | ||||
|  | 
 | ||||
|  |     <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |       <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |         style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |         <img src="assets/icons/training.png" class="img-responsive" height="48px" width="48px"> | ||||
|  |       </div> | ||||
|  |       <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |         Odoo | ||||
|  |         Implementation</h6> | ||||
|  |     </div> | ||||
|  | 
 | ||||
|  |     <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |       <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |         style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |         <img src="assets/icons/license.png" class="img-responsive" height="48px" width="48px"> | ||||
|  |       </div> | ||||
|  |       <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |         Odoo | ||||
|  |         Licensing Consultancy</h6> | ||||
|  |     </div> | ||||
|  |   </div> | ||||
|  | 
 | ||||
|  | </div> | ||||
|  | <!-- END OF 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 the +</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 END OF OUR INDUSTRIES --> | ||||
|  | 
 | ||||
|  | <!-- SUPPORT --> | ||||
|  | <div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | ||||
|  |   <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |     style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |     <img src="assets/misc/customer-support.png" /> | ||||
|  |   </div> | ||||
|  |   <h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Support | ||||
|  |   </h2> | ||||
|  | </div> | ||||
|  | <div class="container mt-5"> | ||||
|  |   <div class="row"> | ||||
|  |     <div class="col-sm-12 col-md-6"> | ||||
|  |       <div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> | ||||
|  |         <div class="mr-4 d-flex justify-content-center align-items-center" | ||||
|  |           style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> | ||||
|  |           <img src="assets/misc/support.png" height="48" width="48" style="width: 42px; height: 42px;" /> | ||||
|  |         </div> | ||||
|  |         <div> | ||||
|  |           <h4>Need Help?</h4> | ||||
|  |           <p style="line-height: 100%;">Got questions or need help? Get in touch.</p> | ||||
|  |           <a href="mailto:odoo@cybrosys.com"> | ||||
|  |             <p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> | ||||
|  |               odoo@cybrosys.com</p> | ||||
|  |           </a> | ||||
|  |         </div> | ||||
|  |       </div> | ||||
|  |     </div> | ||||
|  |     <div class="col-sm-12 col-md-6"> | ||||
|  |       <div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> | ||||
|  |         <div class="mr-4 d-flex justify-content-center align-items-center" | ||||
|  |           style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> | ||||
|  |           <img src="assets/misc/whatsapp.png" height="52" width="52" style="width: 52px; height: 52px;" /> | ||||
|  |         </div> | ||||
|  |         <div> | ||||
|  |           <h4>WhatsApp</h4> | ||||
|  |           <p style="line-height: 100%;">Say hi to us on WhatsApp!</p> | ||||
|  |           <a href="https://api.whatsapp.com/send?phone=918606827707"> | ||||
|  |             <p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">+91 86068 | ||||
|  |               27707</p> | ||||
|  |           </a> | ||||
|  |         </div> | ||||
|  |       </div> | ||||
|  |     </div> | ||||
|  |   </div> | ||||
|  |   <div class="row"> | ||||
|  |     <div class="col-sm-12 my-5 d-flex justify-content-center align-items-center"> | ||||
|  |       <img src="assets/misc/logo.png" width="144" height="31" style="width:144px; height: 31px; margin-top: 40px;" /> | ||||
|  |     </div> | ||||
|  |   </div> | ||||
|  | </div> | ||||
|  | <!-- END OF SUPPORT --> | ||||
| @ -0,0 +1,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: #9DBFAF; | ||||
|  | } | ||||
|  | 
 | ||||
|  | .searchTerm:focus{ | ||||
|  |   color: #00B4CC; | ||||
|  | } | ||||
|  | 
 | ||||
|  | .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,53 @@ | |||||
|  | <?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="title">Pre Booking</t> | ||||
|  |                <t t-set="url" t-value="'/my/pre_bookings'"/> | ||||
|  |                <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,116 @@ | |||||
|  | <odoo> | ||||
|  |     <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 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> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,66 @@ | |||||
|  | <odoo> | ||||
|  |     <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 id="my_booking_template"> | ||||
|  |         <t t-call="portal.portal_layout"> | ||||
|  |             <h4 style="text-align:center; margin-top:25mm;">TRACK YOUR BOOKING</h4> | ||||
|  |             <form action="/track/prebooking" enctype="multipart/form-data" method="post"> | ||||
|  |                 <div class="wrap"> | ||||
|  |                     <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="vali"> | ||||
|  |                         <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> | ||||
|  |     <data> | ||||
|  |         <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='general_information']" 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> | ||||
|  |     </data> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,87 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <record id="website_pre_book_form" model="ir.ui.view"> | ||||
|  |         <field name="name">website.prebook.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"/> | ||||
|  |                         </group> | ||||
|  |                         <group> | ||||
|  |                             <field name="website_id"/> | ||||
|  |                         </group> | ||||
|  |                     </group> | ||||
|  |                 </sheet> | ||||
|  |             </form> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  | 
 | ||||
|  |     <record id="website_prebook_tree_view" model="ir.ui.view"> | ||||
|  |         <field name="name">website.prebook.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="booking_date"/> | ||||
|  |             </tree> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  | 
 | ||||
|  |     <record id="action_pre_book_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> | ||||
|  |     <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> | ||||
|  |     <menuitem id="website_prebook_root" | ||||
|  |               name="Pre Bookings" | ||||
|  |               parent="website_sale.menu_ecommerce" | ||||
|  |               action="action_pre_book_menu" | ||||
|  |               sequence="10"/> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,17 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8" ?> | ||||
|  | <odoo> | ||||
|  |     <template id="product_quantity" inherit_id="website_sale.product" name="Select Quantity"> | ||||
|  |         <xpath expr="//div[@id='o_wsale_cta_wrapper']" position="after"> | ||||
|  |             <div> | ||||
|  |                  <t t-if="product.pre_book and product.pre_max_quantity > 0"> | ||||
|  |                     <a role="menuitem" t-att-href="keep('/my/prebook_request/%s' % slug(product))" | ||||
|  |                        style="color: #f8f9fa;"> | ||||
|  |                         <button type="button" class="btn btn-primary pre_booking" t-att-data-id="product.id"> | ||||
|  |                             Pre Book | ||||
|  |                         </button> | ||||
|  |                     </a> | ||||
|  |                 </t> | ||||
|  |             </div> | ||||
|  |         </xpath> | ||||
|  |     </template> | ||||
|  | </odoo> | ||||