@ -0,0 +1,46 @@ | 
				
			|||
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg | 
				
			|||
    :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html | 
				
			|||
    :alt: License: AGPL-3 | 
				
			|||
 | 
				
			|||
POS Product Stock | 
				
			|||
================= | 
				
			|||
This module helps you to show Product quantity based on location in POS and also deny order if the quantity reaches its limit. | 
				
			|||
 | 
				
			|||
Configuration | 
				
			|||
============= | 
				
			|||
* No additional configurations needed | 
				
			|||
 | 
				
			|||
Company | 
				
			|||
------- | 
				
			|||
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ | 
				
			|||
 | 
				
			|||
License | 
				
			|||
======= | 
				
			|||
General Public License, version 3 (AGPL v3). | 
				
			|||
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) | 
				
			|||
 | 
				
			|||
Credits | 
				
			|||
------- | 
				
			|||
Developer : (V18) Nivedhya T, Contact: odoo@cybrosys.com | 
				
			|||
 | 
				
			|||
Contacts | 
				
			|||
-------- | 
				
			|||
* Mail Contact : odoo@cybrosys.com | 
				
			|||
* Website : https://cybrosys.com | 
				
			|||
 | 
				
			|||
Bug Tracker | 
				
			|||
----------- | 
				
			|||
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. | 
				
			|||
 | 
				
			|||
Maintainer | 
				
			|||
========== | 
				
			|||
.. image:: https://cybrosys.com/images/logo.png | 
				
			|||
   :target: https://cybrosys.com | 
				
			|||
 | 
				
			|||
This module is maintained by Cybrosys Technologies. | 
				
			|||
 | 
				
			|||
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ | 
				
			|||
 | 
				
			|||
Further information | 
				
			|||
=================== | 
				
			|||
HTML Description: `<static/description/index.html>`__ | 
				
			|||
@ -0,0 +1,22 @@ | 
				
			|||
# -*- 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 models | 
				
			|||
@ -0,0 +1,52 @@ | 
				
			|||
# -*- 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': 'POS Product Stock', | 
				
			|||
    'version': "18.0.1.0.0", | 
				
			|||
    'category': 'Point Of Sale', | 
				
			|||
    'summary': "Quantity of  all Products in each Warehouse", | 
				
			|||
    'description': "Shows Stock quantity in POS  for all Products in each Warehouse, Odoo 18", | 
				
			|||
    'author': 'Cybrosys Techno Solutions', | 
				
			|||
    'maintainer': 'Cybrosys Techno Solutions', | 
				
			|||
    'company': 'Cybrosys Techno Solutions', | 
				
			|||
    'website': 'https://www.cybrosys.com', | 
				
			|||
    'depends': ['base','point_of_sale','stock'], | 
				
			|||
    'data': [ | 
				
			|||
        'views/res_cofig_settings_views.xml', | 
				
			|||
        'views/product_template_views.xml', | 
				
			|||
    ], | 
				
			|||
    'assets': { | 
				
			|||
        'point_of_sale._assets_pos': [ | 
				
			|||
            'pos_product_stock/static/src/xml/product_item.xml', | 
				
			|||
            'pos_product_stock/static/src/css/product_quantity.scss', | 
				
			|||
            'pos_product_stock/static/src/js/pos_location.js', | 
				
			|||
            'pos_product_stock/static/src/js/pos_payment_screen.js', | 
				
			|||
            'pos_product_stock/static/src/js/pos_session.js', | 
				
			|||
            'pos_product_stock/static/src/js/deny_order.js', | 
				
			|||
        ], | 
				
			|||
    }, | 
				
			|||
    'images': ['static/description/banner.jpg'], | 
				
			|||
    'license': 'AGPL-3', | 
				
			|||
    'installable': True, | 
				
			|||
    'auto_install': False, | 
				
			|||
    'application': False, | 
				
			|||
} | 
				
			|||
@ -0,0 +1,6 @@ | 
				
			|||
## Module <pos_product_stock> | 
				
			|||
 | 
				
			|||
#### 03.12.2024 | 
				
			|||
#### Version 18.0.1.0.0 | 
				
			|||
#### ADD | 
				
			|||
- Initial Commit for POS Product Stock | 
				
			|||
@ -0,0 +1,27 @@ | 
				
			|||
# -*- 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 pos_config | 
				
			|||
from . import pos_session | 
				
			|||
from . import product_template | 
				
			|||
from . import res_config_settings | 
				
			|||
from . import stock_move_line | 
				
			|||
from . import stock_quant | 
				
			|||
@ -0,0 +1,50 @@ | 
				
			|||
# -*- 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 PosConfig(models.Model): | 
				
			|||
    """inherit pos.config to add fields.""" | 
				
			|||
    _inherit = 'pos.config' | 
				
			|||
 | 
				
			|||
    pos_stock_location_id = fields.Many2one('stock.location', string='Stock Location', | 
				
			|||
                                         help="This field helps to hold the location") | 
				
			|||
    location_from = fields.Selection([('all_warehouse', 'All Location'), | 
				
			|||
                                      ('current_warehouse', 'Current Location')], | 
				
			|||
                                     string="Show Stock Of", | 
				
			|||
                                     help="can choose the location where you want to display the stock ") | 
				
			|||
    display_stock_setting = fields.Boolean(string="Display Stock", | 
				
			|||
                                           help="By enabling you can view quantity in Point Of Sale", | 
				
			|||
                                           default=False) | 
				
			|||
    stock_product = fields.Selection([('on_hand', 'On Hand Quantity'), | 
				
			|||
                                      ('incoming_qty', 'Incoming Quantity'), | 
				
			|||
                                      ('outgoing_qty', 'Outgoing Quantity')], | 
				
			|||
                                     string="Stock Type", | 
				
			|||
                                     help="Help you to choose the quantity you want to visible in pos") | 
				
			|||
 | 
				
			|||
    @api.onchange('location_from') | 
				
			|||
    def _onchange_location_from(self): | 
				
			|||
        """ Adjust the stock_location_id when stock_from is changed. """ | 
				
			|||
        if self.location_from == 'all_warehouse': | 
				
			|||
            self.stock_location_id = False | 
				
			|||
        elif self.location_from == 'current_warehouse': | 
				
			|||
            self.stock_location_id = self.pos_config_id.pos_stock_location_id | 
				
			|||
@ -0,0 +1,34 @@ | 
				
			|||
# -*- 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, models | 
				
			|||
 | 
				
			|||
 | 
				
			|||
class PosSession(models.Model): | 
				
			|||
    """inherit pos.session to add fields and modules in session.""" | 
				
			|||
    _inherit = 'pos.session' | 
				
			|||
 | 
				
			|||
    @api.model | 
				
			|||
    def _load_pos_data_models(self, config_id): | 
				
			|||
        """The list of models to be loaded for POS data.""" | 
				
			|||
        data = super()._load_pos_data_models(config_id) | 
				
			|||
        data += ['res.config.settings','stock.quant','stock.move.line'] | 
				
			|||
        return data | 
				
			|||
@ -0,0 +1,46 @@ | 
				
			|||
# -*- 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 ProductTemplate(models.Model): | 
				
			|||
    """inherit product.template to add field.""" | 
				
			|||
    _inherit = "product.template" | 
				
			|||
 | 
				
			|||
    deny = fields.Integer(string="Deny POS Order", default=0, | 
				
			|||
                          help="Set a limit so that you can deny POS Order") | 
				
			|||
 | 
				
			|||
 | 
				
			|||
class ProductProduct(models.Model): | 
				
			|||
    """inherit product.product to load field in pos.""" | 
				
			|||
    _name = 'product.product' | 
				
			|||
    _inherit = ['product.product','pos.load.mixin'] | 
				
			|||
 | 
				
			|||
    @api.model | 
				
			|||
    def _load_pos_data_fields(self, config_id): | 
				
			|||
        """Returns the fields to be loaded for POS data.""" | 
				
			|||
        result = super()._load_pos_data_fields(config_id) | 
				
			|||
        result.append('qty_available') | 
				
			|||
        result.append('incoming_qty') | 
				
			|||
        result.append('outgoing_qty') | 
				
			|||
        result.append('deny') | 
				
			|||
        return result | 
				
			|||
@ -0,0 +1,51 @@ | 
				
			|||
# -*- 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 ResConfigSettings(models.TransientModel): | 
				
			|||
    """ Inherit the base settings to add field. """ | 
				
			|||
    _name = 'res.config.settings' | 
				
			|||
    _inherit = ['res.config.settings','pos.load.mixin'] | 
				
			|||
 | 
				
			|||
    display_stock = fields.Boolean(string="Display Stock", | 
				
			|||
                                   readonly=False, help="By enabling you can " | 
				
			|||
                                                        "view quantity in Point Of Sale", | 
				
			|||
                                   default=False, config_parameter='pos_product_stock.display_stock') | 
				
			|||
    stock_type = fields.Selection(related='pos_config_id.stock_product', | 
				
			|||
                                  string="Stock Type", readonly=False, | 
				
			|||
                                  required=True, help="Help you to choose " | 
				
			|||
                                                      "the quantity you want to visible in pos") | 
				
			|||
    stock_from = fields.Selection(related='pos_config_id.location_from', | 
				
			|||
                                  string="Show Stock Of", readonly=False, | 
				
			|||
                                  required=True, help="can choose the location " | 
				
			|||
                                                      "where you want to display the stock ") | 
				
			|||
    stock_location_id = fields.Many2one(related='pos_config_id.pos_stock_location_id', | 
				
			|||
                                        string="Stock Location", readonly=False, | 
				
			|||
                                        help="This field helps to hold the location") | 
				
			|||
 | 
				
			|||
    @api.model | 
				
			|||
    def _load_pos_data_fields(self, config_id): | 
				
			|||
        """Returns the list of fields to be loaded for POS data.""" | 
				
			|||
        return [ | 
				
			|||
            'display_stock', 'stock_type', 'stock_from', 'stock_location_id' | 
				
			|||
        ] | 
				
			|||
@ -0,0 +1,35 @@ | 
				
			|||
# -*- coding: utf-8 -*- | 
				
			|||
############################################################################# | 
				
			|||
# | 
				
			|||
#    Cybrosys Technologies Pvt. Ltd. | 
				
			|||
# | 
				
			|||
#    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | 
				
			|||
#    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) | 
				
			|||
# | 
				
			|||
#    You can modify it under the terms of the GNU 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, models | 
				
			|||
 | 
				
			|||
 | 
				
			|||
class StockMoveLine(models.Model): | 
				
			|||
    """Inherits model "stock.move.line to load pos data fields""" | 
				
			|||
    _name = 'stock.move.line' | 
				
			|||
    _inherit = ['stock.move.line','pos.load.mixin'] | 
				
			|||
 | 
				
			|||
    @api.model | 
				
			|||
    def _load_pos_data_fields(self, config_id): | 
				
			|||
        """Returns the list of fields to be loaded for POS data.""" | 
				
			|||
        return [ | 
				
			|||
            'product_id', 'location_dest_id', 'quantity', 'location_id' | 
				
			|||
        ] | 
				
			|||
@ -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  api, models | 
				
			|||
 | 
				
			|||
 | 
				
			|||
class StockQuant(models.Model): | 
				
			|||
    """Inherits model "stock.quant to load pos data""" | 
				
			|||
    _name = 'stock.quant' | 
				
			|||
    _inherit = ['stock.quant','pos.load.mixin'] | 
				
			|||
 | 
				
			|||
    @api.model | 
				
			|||
    def _load_pos_data_fields(self, config_id): | 
				
			|||
        """Returns the list of fields to be loaded for POS data.""" | 
				
			|||
        return [ | 
				
			|||
            'product_id', 'available_quantity', 'quantity', 'location_id' | 
				
			|||
        ] | 
				
			|||
 | 
				
			|||
    @api.model | 
				
			|||
    def _load_pos_data_domain(self, data): | 
				
			|||
        """Constructs the domain for loading POS data based on the POS configuration.""" | 
				
			|||
        config_id = self.env['pos.config'].browse(data['pos.config']['data'][0]['id']) | 
				
			|||
        if config_id.location_from == 'all_warehouse': | 
				
			|||
            location_ids = self.env['stock.location'].search([]) | 
				
			|||
            domain = [('location_id', 'in', location_ids.ids)] | 
				
			|||
        else: | 
				
			|||
            location_id = config_id.pos_stock_location_id | 
				
			|||
            domain = ['|', ('location_id', '=', location_id.id), ('location_id', 'in', location_id.child_ids.ids)] | 
				
			|||
        return domain | 
				
			|||
| 
		 After Width: | Height: | Size: 2.2 KiB  | 
| 
		 After Width: | Height: | Size: 28 KiB  | 
| 
		 After Width: | Height: | Size: 1.1 KiB  | 
| 
		 After Width: | Height: | Size: 210 KiB  | 
| 
		 After Width: | Height: | Size: 209 KiB  | 
| 
		 After Width: | Height: | Size: 109 KiB  | 
| 
		 After Width: | Height: | Size: 495 B  | 
| 
		 After Width: | Height: | Size: 1.0 KiB  | 
| 
		 After Width: | Height: | Size: 624 B  | 
| 
		 After Width: | Height: | Size: 136 KiB  | 
| 
		 After Width: | Height: | Size: 214 KiB  | 
| 
		 After Width: | Height: | Size: 36 KiB  | 
| 
		 After Width: | Height: | Size: 3.6 KiB  | 
| 
		 After Width: | Height: | Size: 310 B  | 
| 
		 After Width: | Height: | Size: 929 B  | 
| 
		 After Width: | Height: | Size: 1.3 KiB  | 
| 
		 After Width: | Height: | Size: 3.3 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 17 KiB  | 
| 
		 After Width: | Height: | Size: 542 B  | 
| 
		 After Width: | Height: | Size: 576 B  | 
| 
		 After Width: | Height: | Size: 733 B  | 
| 
		 After Width: | Height: | Size: 4.3 KiB  | 
| 
		 After Width: | Height: | Size: 1.2 KiB  | 
| 
		 After Width: | Height: | Size: 4.0 KiB  | 
| 
		 After Width: | Height: | Size: 1.7 KiB  | 
| 
		 After Width: | Height: | Size: 263 KiB  | 
| 
		 After Width: | Height: | Size: 2.2 KiB  | 
| 
		 After Width: | Height: | Size: 911 B  | 
| 
		 After Width: | Height: | Size: 1.1 KiB  | 
| 
		 After Width: | Height: | Size: 1.2 KiB  | 
| 
		 After Width: | Height: | Size: 1.2 KiB  | 
| 
		 After Width: | Height: | Size: 600 B  | 
| 
		 After Width: | Height: | Size: 673 B  | 
| 
		 After Width: | Height: | Size: 2.0 KiB  | 
| 
		 After Width: | Height: | Size: 462 B  | 
| 
		 After Width: | Height: | Size: 2.1 KiB  | 
| 
		 After Width: | Height: | Size: 926 B  | 
| 
		 After Width: | Height: | Size: 9.0 KiB  | 
| 
		 After Width: | Height: | Size: 23 KiB  | 
| 
		 After Width: | Height: | Size: 7.0 KiB  | 
| 
		 After Width: | Height: | Size: 878 B  | 
| 
		 After Width: | Height: | Size: 1.2 KiB  | 
| 
		 After Width: | Height: | Size: 653 B  | 
| 
		 After Width: | Height: | Size: 800 B  | 
| 
		 After Width: | Height: | Size: 905 B  | 
| 
		 After Width: | Height: | Size: 189 KiB  | 
| 
		 After Width: | Height: | Size: 4.3 KiB  | 
| 
		 After Width: | Height: | Size: 839 B  | 
| 
		 After Width: | Height: | Size: 1.7 KiB  | 
| 
		 After Width: | Height: | Size: 5.9 KiB  | 
| 
		 After Width: | Height: | Size: 1.6 KiB  | 
| 
		 After Width: | Height: | Size: 34 KiB  | 
| 
		 After Width: | Height: | Size: 26 KiB  | 
| 
		 After Width: | Height: | Size: 3.8 KiB  | 
| 
		 After Width: | Height: | Size: 23 KiB  | 
| 
		 After Width: | Height: | Size: 1.9 KiB  | 
| 
		 After Width: | Height: | Size: 2.3 KiB  | 
| 
		 After Width: | Height: | Size: 427 B  | 
| 
		 After Width: | Height: | Size: 627 B  | 
| 
		 After Width: | Height: | Size: 1.1 KiB  | 
| 
		 After Width: | Height: | Size: 1.2 KiB  | 
| 
		 After Width: | Height: | Size: 988 B  | 
| 
		 After Width: | Height: | Size: 3.7 KiB  | 
| 
		 After Width: | Height: | Size: 5.0 KiB  | 
| 
		 After Width: | Height: | Size: 875 B  | 
| 
		 After Width: | Height: | Size: 1.2 KiB  | 
| 
		 After Width: | Height: | Size: 540 KiB  | 
| 
		 After Width: | Height: | Size: 90 KiB  | 
| 
		 After Width: | Height: | Size: 86 KiB  | 
| 
		 After Width: | Height: | Size: 86 KiB  | 
| 
		 After Width: | Height: | Size: 1.0 MiB  | 
| 
		 After Width: | Height: | Size: 196 KiB  | 
| 
		 After Width: | Height: | Size: 114 KiB  | 
| 
		 After Width: | Height: | Size: 369 KiB  | 
| 
		 After Width: | Height: | Size: 93 KiB  | 
| 
		 After Width: | Height: | Size: 298 KiB  | 
| 
		 After Width: | Height: | Size: 718 KiB  | 
| 
		 After Width: | Height: | Size: 36 KiB  | 
@ -0,0 +1,955 @@ | 
				
			|||
<!DOCTYPE html> | 
				
			|||
<html lang="en"> | 
				
			|||
<head> | 
				
			|||
    <meta charset="UTF-8"/> | 
				
			|||
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/> | 
				
			|||
    <title>POS Product Stock</title> | 
				
			|||
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" | 
				
			|||
          rel="stylesheet"/> | 
				
			|||
    <link rel="preconnect" href="https://fonts.googleapis.com"> | 
				
			|||
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | 
				
			|||
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" | 
				
			|||
          rel="stylesheet"> | 
				
			|||
    <link rel="stylesheet" | 
				
			|||
          href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"/> | 
				
			|||
    <link rel="stylesheet" | 
				
			|||
          href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css"/> | 
				
			|||
    <style> | 
				
			|||
        :root { | 
				
			|||
            --primary-color: #7f54b3; | 
				
			|||
            --bg-white: #fff; | 
				
			|||
            --text-color: #121212; | 
				
			|||
            --text-color-light: #64728f; | 
				
			|||
        } | 
				
			|||
 | 
				
			|||
        body { | 
				
			|||
            font-family: "Montserrat", sans-serif; | 
				
			|||
        } | 
				
			|||
        .nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active { | 
				
			|||
            color: #121212; | 
				
			|||
            font-family: Montserrat; | 
				
			|||
            font-size: 16px !important; | 
				
			|||
            font-weight: 500 !important; | 
				
			|||
            border-radius: 30px; | 
				
			|||
            line-height: normal; | 
				
			|||
            text-transform: capitalize; | 
				
			|||
            background-color: #F5F5F5; | 
				
			|||
            border: none; | 
				
			|||
            margin-bottom: 0; | 
				
			|||
            padding: 12px 24px; | 
				
			|||
        } | 
				
			|||
 | 
				
			|||
        .nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover { | 
				
			|||
            border-color: transparent; | 
				
			|||
            isolation: isolate; | 
				
			|||
        } | 
				
			|||
 | 
				
			|||
        .nav-tabs .nav-link:focus-visible { | 
				
			|||
            border-color: transparent; | 
				
			|||
            box-shadow: none; | 
				
			|||
        } | 
				
			|||
 | 
				
			|||
        /* owl-carosel */ | 
				
			|||
        .owl-carousel .owl-nav { | 
				
			|||
            position: absolute; | 
				
			|||
            top: 42%; | 
				
			|||
            width: 100%; | 
				
			|||
            display: flex; | 
				
			|||
            justify-content: space-between; | 
				
			|||
            transform: translateY(-42%); | 
				
			|||
        } | 
				
			|||
 | 
				
			|||
        .owl-carousel .owl-nav button.owl-prev { | 
				
			|||
            position: absolute; | 
				
			|||
            right: -36px; | 
				
			|||
            font-size: 28px; | 
				
			|||
            background-color: #e4e4e4; | 
				
			|||
            border-radius: 20px; | 
				
			|||
            width: 40px; | 
				
			|||
            height: 40px; | 
				
			|||
            display: flex; | 
				
			|||
            justify-content: center; | 
				
			|||
            align-items: center; | 
				
			|||
        } | 
				
			|||
 | 
				
			|||
        .owl-carousel .owl-nav button.owl-next { | 
				
			|||
            position: absolute; | 
				
			|||
            left: -36px; | 
				
			|||
            font-size: 28px; | 
				
			|||
            background-color: #e4e4e4; | 
				
			|||
            border-radius: 20px; | 
				
			|||
            width: 40px; | 
				
			|||
            height: 40px; | 
				
			|||
            display: flex; | 
				
			|||
            justify-content: center; | 
				
			|||
            align-items: center; | 
				
			|||
 | 
				
			|||
        } | 
				
			|||
 | 
				
			|||
    </style> | 
				
			|||
</head> | 
				
			|||
<body> | 
				
			|||
<!-- overview --> | 
				
			|||
<div class="container"> | 
				
			|||
    <div class="my-5"> | 
				
			|||
        <!-- button tab --> | 
				
			|||
        <!--  --> | 
				
			|||
        <!-- version support --> | 
				
			|||
        <div class="my-3 d-flex align-items-center justify-content-end"> | 
				
			|||
            <div class="text-center" | 
				
			|||
                 style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> | 
				
			|||
                 Community | 
				
			|||
            </div> | 
				
			|||
            <div class="text-center" | 
				
			|||
                 style="background-color:#875A7B !important; color:#fff !important; font-size:0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width:120px !important"> | 
				
			|||
                Enterprise | 
				
			|||
            </div> | 
				
			|||
            <div class="text-center" | 
				
			|||
                 style="background-color:#7C7BAD !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> | 
				
			|||
                 Odoo.sh | 
				
			|||
            </div> | 
				
			|||
        </div> | 
				
			|||
        <div class="tab-content" id="myTabContent"> | 
				
			|||
            <!-- description --> | 
				
			|||
            <div class="tab-pane fade show active" id="home" role="tabpanel" | 
				
			|||
                 aria-labelledby="home-tab"> | 
				
			|||
                <div class="position-relative" | 
				
			|||
                     style="border-radius: 16px; background: #f8f8f8; padding: 20px 0;"> | 
				
			|||
                    <div class="row " style=" | 
				
			|||
          padding: 2rem 0rem 0 !important; | 
				
			|||
        "> | 
				
			|||
                        <div class="col-lg-8 mx-auto gap-4 d-flex flex-column align-items-center"> | 
				
			|||
                            <p class="my-1 text-center text-uppercase" | 
				
			|||
                               style=" | 
				
			|||
              letter-spacing: 4px !important; | 
				
			|||
              color: #7f54b3; | 
				
			|||
              font-weight: bold; | 
				
			|||
              text-align: center; | 
				
			|||
              font-size: 14px; | 
				
			|||
              font-weight: 600; | 
				
			|||
              line-height: 15.96px; | 
				
			|||
              text-transform: uppercase; | 
				
			|||
            "> | 
				
			|||
                                Shows Quantity of all Product in POS. | 
				
			|||
                            </p> | 
				
			|||
                            <h1 class="text-center text-uppercase my-0" | 
				
			|||
                                style=" | 
				
			|||
              color: #121212; | 
				
			|||
              font-size: 46px; | 
				
			|||
              font-weight: 700; | 
				
			|||
              line-height: normal; | 
				
			|||
            ">POS Product Stock</span> | 
				
			|||
                            </h1> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="col-lg-12 d-flex justify-content-center align-items-center" | 
				
			|||
                             style="margin: 3rem 0;"> | 
				
			|||
                            <img src="./assets/icons/brand-pair.svg" | 
				
			|||
                                 width="100%" | 
				
			|||
                                 height="auto" | 
				
			|||
                                 style="width: 50%" | 
				
			|||
                                 class="img-responsive"/> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="col-md-12 text-center"> | 
				
			|||
                            <a href="mailto:odoo@cybrosys.com" | 
				
			|||
                               target="_blank" | 
				
			|||
                               style="background-color: transparent;border-radius: 35px; | 
				
			|||
              font-family: Montserrat; | 
				
			|||
              display: inline-block; | 
				
			|||
              padding: 7px 33px; | 
				
			|||
              border: 1px solid #7f54b3; | 
				
			|||
              color: #7f54b3; | 
				
			|||
              text-decoration: none; | 
				
			|||
            " | 
				
			|||
                               class="mx-1 mb-2 deep-1 deep_hover"> | 
				
			|||
                                <img class="img" | 
				
			|||
                                     style="width: 24px" | 
				
			|||
                                     src="./assets/icons/mail.svg"/> | 
				
			|||
                                <span class="pl-2" | 
				
			|||
                                      style=" font-size: 16px; vertical-align: middle" | 
				
			|||
                                >Email Us</span | 
				
			|||
                                > | 
				
			|||
                            </a> | 
				
			|||
                            <a href="skype:cybroopenerp?chat" | 
				
			|||
                               target="_blank" | 
				
			|||
                               style=" | 
				
			|||
              background-color: #7f289b; | 
				
			|||
              font-family: Montserrat; | 
				
			|||
              display: inline-block; | 
				
			|||
              padding: 7px 33px; | 
				
			|||
              border: 1px solid #7f289b; | 
				
			|||
              border-radius: 35px; | 
				
			|||
              text-decoration: none; | 
				
			|||
            " | 
				
			|||
                               class="mx-1 mb-2 deep-1 deep_hover"> | 
				
			|||
                                <img | 
				
			|||
                                        class="img" | 
				
			|||
                                        style="width: 24px" | 
				
			|||
                                        src="./assets/icons/skype-fill.svg" | 
				
			|||
                                /> | 
				
			|||
                                <span | 
				
			|||
                                        class="pl-2" | 
				
			|||
                                        style="color: #fff; font-size: 16px; vertical-align: middle" | 
				
			|||
                                >Skype Us</span | 
				
			|||
                                > | 
				
			|||
                            </a> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="d-flex justify-content-center mt-2"> | 
				
			|||
                            <img src="./assets/icons/hero.gif" | 
				
			|||
                                 class="w-100" | 
				
			|||
                                 style="z-index: 3; height: auto;"> | 
				
			|||
                        </div> | 
				
			|||
                    </div> | 
				
			|||
                    <div class="position-absolute bottom-0" | 
				
			|||
                         style="z-index: 1; width: 100%;"> | 
				
			|||
                        <img src="./assets/icons/banner-bg.svg" | 
				
			|||
                             class="img-fluid w-100"> | 
				
			|||
                    </div> | 
				
			|||
                    <div class="position-absolute bottom-0 end-0" | 
				
			|||
                         style=" z-index: 2;"> | 
				
			|||
                        <img src="./assets/icons/patter.svg"> | 
				
			|||
                    </div> | 
				
			|||
                </div> | 
				
			|||
                <!-- key-highlight --> | 
				
			|||
                <div class="" style="border-radius: 16px; | 
				
			|||
     padding: 60px 40px; | 
				
			|||
     border: 1px solid #EBEEF2; | 
				
			|||
     background: #F5F5F7; | 
				
			|||
     box-shadow: 0px 5px 20px -11px rgba(0, 0, 0, 0.25); "> | 
				
			|||
                    <div class="row"> | 
				
			|||
                        <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center"> | 
				
			|||
                            <h2 style=" color: #121212; | 
				
			|||
            text-align: center; | 
				
			|||
            font-size: 40px; | 
				
			|||
            font-weight: 700; | 
				
			|||
            text-transform: uppercase; padding-bottom: 50px;">Key | 
				
			|||
                                Highlights</h2> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="col-lg-4"> | 
				
			|||
                            <div class="mb-4 d-flex flex-column justify-content-center gap-3" | 
				
			|||
                                 style="border-radius: 12px; border: 1px solid  #B6BCCD; | 
				
			|||
            background:  #FFF;padding:32px "> | 
				
			|||
                                <div class="d-flex justify-content-center align-items-center" | 
				
			|||
                                     style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> | 
				
			|||
                                    <img src="./assets/icons/feature-icon.svg" | 
				
			|||
                                         class="img-responsive" height="26px" | 
				
			|||
                                         width="26px"> | 
				
			|||
                                </div> | 
				
			|||
                                <h5 class="m-0" | 
				
			|||
                                    style="color:#000 !important; font-weight:bold"> | 
				
			|||
                                    Community & Enterprise Support. | 
				
			|||
                                </h5> | 
				
			|||
                                <p class="m-0" | 
				
			|||
                                   style="font-size:0.9rem; color:#64728f; font-size: 16px; font-weight: 400;"> | 
				
			|||
                                   </p> | 
				
			|||
                            </div> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="col-lg-4"> | 
				
			|||
                            <div class="mb-4 d-flex flex-column justify-content-center gap-3" | 
				
			|||
                                 style="border-radius: 12px; border: 1px solid  #B6BCCD; | 
				
			|||
            background:  #FFF;padding:32px "> | 
				
			|||
                                <div class="d-flex justify-content-center align-items-center" | 
				
			|||
                                     style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> | 
				
			|||
                                    <img src="./assets/icons/feature-icon.svg" | 
				
			|||
                                         class="img-responsive" height="26px" | 
				
			|||
                                         width="26px"> | 
				
			|||
                                </div> | 
				
			|||
                                <h5 class="m-0" | 
				
			|||
                                    style="color:#000 !important; font-weight:bold"> | 
				
			|||
                                    POS Product Stock. | 
				
			|||
                                </h5> | 
				
			|||
                                <p class="m-0" | 
				
			|||
                                   style="font-size:0.9rem; color:#64728f; font-size: 16px; font-weight: 400;"> | 
				
			|||
                                   </p> | 
				
			|||
                            </div> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="col-lg-4"> | 
				
			|||
                            <div class="mb-4 d-flex flex-column justify-content-center gap-3" | 
				
			|||
                                 style="border-radius: 12px; border: 1px solid  #B6BCCD; | 
				
			|||
            background:  #FFF;padding:32px "> | 
				
			|||
                                <div class="d-flex justify-content-center align-items-center" | 
				
			|||
                                     style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> | 
				
			|||
                                    <img src="./assets/icons/feature-icon.svg" | 
				
			|||
                                         class="img-responsive" height="26px" | 
				
			|||
                                         width="26px"> | 
				
			|||
                                </div> | 
				
			|||
                                <h5 class="m-0" | 
				
			|||
                                    style="color:#000 !important; font-weight:bold"> | 
				
			|||
                                    Deny Order in POS. | 
				
			|||
                                </h5> | 
				
			|||
                                <p class="m-0" | 
				
			|||
                                   style="font-size:0.9rem; color:#64728f; font-size: 16px; font-weight: 400;">Deny Order in POS by setting quantity in each product. | 
				
			|||
                                   </p> | 
				
			|||
                            </div> | 
				
			|||
                        </div> | 
				
			|||
                    </div> | 
				
			|||
                </div> | 
				
			|||
                <!--code  --> | 
				
			|||
                <div class="my-5"> | 
				
			|||
                    <div class="position-relative" style=" padding: 5rem 4rem 5rem 4rem; background-color: #0A1425; border-radius: 12px;"> | 
				
			|||
                        <div class="d-flex flex-column gap-4"> | 
				
			|||
                            <span class="wrapper-subtitle" | 
				
			|||
                                  style="font-size: 40px; font-weight: 700; color: #fff;line-height: 60px; text-transform: capitalize; width: 450px;  font-family: Montserrat;">POS Product Stock</span> | 
				
			|||
                            <h3 class="wrapper-details" | 
				
			|||
                                style="font-size: 20px; font-weight: 400; color: #fff; line-height: 32px;  "> | 
				
			|||
                                Are you ready to make your business more | 
				
			|||
                                organized? | 
				
			|||
                                <br> Improve now! | 
				
			|||
                            </h3> | 
				
			|||
                            <div class="d-flex gap-3"> | 
				
			|||
                                <a href="mailto:odoo@cybrosys.com" | 
				
			|||
                                   class="shop-btn" style="cursor: pointer; border-radius: 16px; display: flex; justify-content: center; align-items: center; gap: 7px; | 
				
			|||
            border: 1px solid  #ffffff33; | 
				
			|||
            background-color: #ffffff14; | 
				
			|||
            backdrop-filter: blur(10px); color: #fff; padding: 12px 16px 12px 16px; text-decoration: none;"> | 
				
			|||
             <span style="border-radius: 12px; | 
				
			|||
             background-color: #ffffff1a; | 
				
			|||
             backdrop-filter: blur(6px);padding: 12px;  "> | 
				
			|||
              <img src="./assets/icons/banner-mail.svg"> | 
				
			|||
           </span> | 
				
			|||
                                    <span style="font-weight: 500;font-family: Montserrat;">odoo@cybrosys.com</span> | 
				
			|||
                                </a> | 
				
			|||
                                <a href="tel:+91 9074270811" class="shop-btn" | 
				
			|||
                                   style="cursor: pointer; border-radius: 16px; display: flex; justify-content: center; align-items: center; gap: 7px; | 
				
			|||
             border: 1px solid  #ffffff33; | 
				
			|||
             background-color: #ffffff14; | 
				
			|||
            backdrop-filter: blur(10px); color: #fff; padding: 12px 22px 12px 18px; text-decoration: none;"> | 
				
			|||
             <span style="border-radius: 12px; | 
				
			|||
             background-color: #ffffff1a; | 
				
			|||
             backdrop-filter: blur(6px);padding: 12px;"> | 
				
			|||
              <img src="./assets/icons/banner-call.svg"> | 
				
			|||
           </span> | 
				
			|||
                                    <span style="font-weight: 500;font-family: Montserrat;">+91 9074270811</span> | 
				
			|||
                                </a> | 
				
			|||
                            </div> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="position-absolute bottom-0 end-0"> | 
				
			|||
                            <img src="./assets/icons/banner-pattern.svg" | 
				
			|||
                                 style="width: 540px;"> | 
				
			|||
                        </div> | 
				
			|||
                    </div> | 
				
			|||
                </div> | 
				
			|||
                <!-- end-code --> | 
				
			|||
                <!--  --> | 
				
			|||
                <!-- screenshot and other --> | 
				
			|||
                <div class="mb-4 bg-white" | 
				
			|||
                     style=" border: 1px solid #EBEEF2; border-radius: 6px; box-shadow: 0px 8px 20px -4px rgba(0, 0, 0, 0.10); border: 1px solid #EBEEF2;"> | 
				
			|||
                    <div> | 
				
			|||
                        <ul class="nav nav-tabs justify-content-center bg-white py-2" | 
				
			|||
                            id="myTab" role="tablist" | 
				
			|||
                            style="border-radius: 6px 6px 0 0;"> | 
				
			|||
                            <li class="nav-item"> | 
				
			|||
                                <a aria-controls="overview" | 
				
			|||
                                   aria-bs-selected="true" | 
				
			|||
                                   class="nav-link active" data-bs-toggle="tab" | 
				
			|||
                                   href="#overview" id="overview-tab" role="tab" | 
				
			|||
                                   style="color:#121212; font-weight:500; font-size:16px"> | 
				
			|||
                                    Screenshots</a> | 
				
			|||
                            </li> | 
				
			|||
                            <li class="nav-item"> | 
				
			|||
                                <a aria-controls="feature" | 
				
			|||
                                   aria-bs-selected="false" | 
				
			|||
                                   class="nav-link py-2" data-bs-toggle="tab" | 
				
			|||
                                   href="#feature" id="feature-tab" role="tab" | 
				
			|||
                                   style="color:#121212; font-weight:500; font-size:16px">Features</a> | 
				
			|||
                            </li> | 
				
			|||
                            <li class="nav-item"> | 
				
			|||
                                <a aria-controls="faq" aria-bs-selected="false" | 
				
			|||
                                   class="nav-link" data-bs-toggle="tab" | 
				
			|||
                                   href="#faq" id="faq-tab" role="tab" | 
				
			|||
                                   style="color:#121212; font-weight:500; font-size:16px"> | 
				
			|||
                                    FAQs</a> | 
				
			|||
                            </li> | 
				
			|||
                            <li class="nav-item"> | 
				
			|||
                                <a aria-controls="releases" | 
				
			|||
                                   aria-bs-selected="false" class="nav-link" | 
				
			|||
                                   data-bs-toggle="tab" href="#releases" | 
				
			|||
                                   id="releases-tab" role="tab" | 
				
			|||
                                   style="color:#121212; font-weight:500; font-size:16px">Releases</a> | 
				
			|||
                            </li> | 
				
			|||
                        </ul> | 
				
			|||
                    </div> | 
				
			|||
                    <div class="tab-content p-md-5 p-2 py-3" id="myTabContent"> | 
				
			|||
                        <div aria-labelledby="overview-tab" | 
				
			|||
                             class="tab-pane fade show active" id="overview" | 
				
			|||
                             role="tabpanel"> | 
				
			|||
                            <div class="position-relative mb-4" | 
				
			|||
                                 style="border-radius:10px"> | 
				
			|||
                                <img alt="acc_bg" | 
				
			|||
                                     class="w-100 h-100 position-absolute img-fluid left_0" | 
				
			|||
                                     loading="lazy" | 
				
			|||
                                     src="//apps.odoocdn.com/apps/assets/17.0/ks_dashboard_ninja/ai-img/o3.png?007008f" | 
				
			|||
                                     style=""> | 
				
			|||
                            </div> | 
				
			|||
                            <!-- screenshots section--> | 
				
			|||
                            <div class="position-relative mb-4" | 
				
			|||
                                 style="border-radius:10px; background-color:#f4f4f4"> | 
				
			|||
                                <div class="p-md-5 p-3 position-relative"> | 
				
			|||
                                    <div class="row"> | 
				
			|||
                                        <div class="col-md-12"> | 
				
			|||
                                            <h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; | 
				
			|||
                              font-weight: 700;"> | 
				
			|||
                                      <span style="color:#121212; font-size:calc(1.1rem + 1vw)">Display Stock in | 
				
			|||
                                      </span> | 
				
			|||
                                                <span style="color: #7f54b3; font-size:calc(1.1rem + 1vw)">POS</span> | 
				
			|||
                                            </h1> | 
				
			|||
                                        </div> | 
				
			|||
                                        <div class="col-md-12 mb-4"> | 
				
			|||
                                            <p style="font-weight:400; font-size:16px; line-height:150%; text-align:center;  color:#64728f"> | 
				
			|||
                                      Go to Point Of Sale -> Configuration -> Settings -> | 
				
			|||
                                      Display Stock. By enabling this feature you need to choose stock type as well as Location.                                            </p> | 
				
			|||
                                        </div> | 
				
			|||
                                        <div class="col-md-12 text-center"> | 
				
			|||
                                            <div class="d-inline-block p-3 shadow-sm" | 
				
			|||
                                                 style="background-color:#fff; border-radius:10px"> | 
				
			|||
                                                <img alt="" class="img-fluid" | 
				
			|||
                                                     loading="lazy" | 
				
			|||
                                                     src="./assets/screenshots/screenshot1.png" | 
				
			|||
                                                     style="min-height: 1px;"> | 
				
			|||
                                            </div> | 
				
			|||
                                        </div> | 
				
			|||
                                    </div> | 
				
			|||
                                </div> | 
				
			|||
                            </div> | 
				
			|||
                            <div class="position-relative mb-4" | 
				
			|||
                                 style="border-radius:10px; background-color:#f4f4f4"> | 
				
			|||
                                <div class="p-md-5 p-3 position-relative"> | 
				
			|||
                                    <div class="row"> | 
				
			|||
                                        <div class="col-md-12"> | 
				
			|||
                                            <h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; | 
				
			|||
                              font-weight: 700;"> | 
				
			|||
                                      <span style="color:#121212; font-size:calc(1.1rem + 1vw)">Show | 
				
			|||
                                      </span> | 
				
			|||
                                                <span style="color: #7f54b3; font-size:calc(1.1rem + 1vw)">Quantity</span> | 
				
			|||
                                            </h1> | 
				
			|||
                                        </div> | 
				
			|||
                                        <div class="col-md-12 mb-4"> | 
				
			|||
                                            <p style="font-weight:400; font-size:16px; line-height:150%; text-align:center;  color:#64728f"> | 
				
			|||
                                              Go to Point Of Sale -> Dashboard -> Shop -> NEW SESSION. | 
				
			|||
                                    According to criteria you have chosen in settings Quantity will be displayed in pos session | 
				
			|||
                                            </p> | 
				
			|||
                                        </div> | 
				
			|||
                                        <div class="col-md-12 text-center"> | 
				
			|||
                                            <div class="d-inline-block p-3 shadow-sm" | 
				
			|||
                                                 style="background-color:#fff; border-radius:10px"> | 
				
			|||
                                                <img alt="" class="img-fluid" | 
				
			|||
                                                     loading="lazy" | 
				
			|||
                                                     src="./assets/screenshots/screenshot2.png" | 
				
			|||
                                                     style="min-height: 1px;"> | 
				
			|||
                                            </div> | 
				
			|||
                                        </div> | 
				
			|||
                                    </div> | 
				
			|||
                                </div> | 
				
			|||
                            </div> | 
				
			|||
                            <div class="position-relative mb-4" | 
				
			|||
                                 style="border-radius:10px; background-color:#f4f4f4"> | 
				
			|||
                                <div class="p-md-5 p-3 position-relative"> | 
				
			|||
                                    <div class="row"> | 
				
			|||
                                        <div class="col-md-12"> | 
				
			|||
                                            <h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; | 
				
			|||
                              font-weight: 700;"> | 
				
			|||
                                      <span style="color:#121212; font-size:calc(1.1rem + 1vw)">Deny | 
				
			|||
                                      </span> | 
				
			|||
                                                <span style="color: #7f54b3; font-size:calc(1.1rem + 1vw)"> Order</span> | 
				
			|||
                                            </h1> | 
				
			|||
                                        </div> | 
				
			|||
                                        <div class="col-md-12 mb-4"> | 
				
			|||
                                            <p style="font-weight:400; font-size:16px; line-height:150%; text-align:center;  color:#64728f"> | 
				
			|||
                                              Go to Point Of Sale ->Products ->Products -> Point of sale -> Deny POS Order. | 
				
			|||
                                    User can set a limit so that order can be denied. | 
				
			|||
                                            </p> | 
				
			|||
                                        </div> | 
				
			|||
                                        <div class="col-md-12 text-center"> | 
				
			|||
                                            <div class="d-inline-block p-3 shadow-sm" | 
				
			|||
                                                 style="background-color:#fff; border-radius:10px"> | 
				
			|||
                                                <img alt="" class="img-fluid" | 
				
			|||
                                                     loading="lazy" | 
				
			|||
                                                     src="./assets/screenshots/screenshot3.png" | 
				
			|||
                                                     style="min-height: 1px;"> | 
				
			|||
                                            </div> | 
				
			|||
                                        </div> | 
				
			|||
                                    </div> | 
				
			|||
                                </div> | 
				
			|||
                            </div> | 
				
			|||
                            <div class="position-relative mb-4" | 
				
			|||
                                 style="border-radius:10px; background-color:#f4f4f4"> | 
				
			|||
                                <div class="p-md-5 p-3 position-relative"> | 
				
			|||
                                    <div class="row"> | 
				
			|||
                                        <div class="col-md-12"> | 
				
			|||
                                            <h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; | 
				
			|||
                              font-weight: 700;"> | 
				
			|||
                                      <span style="color:#121212; font-size:calc(1.1rem + 1vw)">Error | 
				
			|||
                                      </span> | 
				
			|||
                                                <span style="color: #7f54b3; font-size:calc(1.1rem + 1vw)">Pop Up</span> | 
				
			|||
                                            </h1> | 
				
			|||
                                        </div> | 
				
			|||
                                        <div class="col-md-12 mb-4"> | 
				
			|||
                                            <p style="font-weight:400; font-size:16px; line-height:150%; text-align:center;  color:#64728f">Go to Point Of Sale ->Dashboard -> Shop -> NEW SESSION. | 
				
			|||
                                    if the value in quantity is less than or equal to Deny POS Order then the order will be denied | 
				
			|||
                                    and shows Error popupWhile hovering over the product order line icon, you can see the product details. | 
				
			|||
                                            </p> | 
				
			|||
                                        </div> | 
				
			|||
                                        <div class="col-md-12 text-center"> | 
				
			|||
                                            <div class="d-inline-block p-3 shadow-sm" | 
				
			|||
                                                 style="background-color:#fff; border-radius:10px"> | 
				
			|||
                                                <img alt="" class="img-fluid" | 
				
			|||
                                                     loading="lazy" | 
				
			|||
                                                     src="./assets/screenshots/screenshot4.png" | 
				
			|||
                                                     style="min-height: 1px;"> | 
				
			|||
                                            </div> | 
				
			|||
                                        </div> | 
				
			|||
                                    </div> | 
				
			|||
                                </div> | 
				
			|||
                            </div> | 
				
			|||
                        </div> | 
				
			|||
                        <div aria-labelledby="feature-tab" | 
				
			|||
                             class="tab-pane fade show py-1" id="feature" | 
				
			|||
                             role="tabpanel"> | 
				
			|||
                            <div class="row py-4"> | 
				
			|||
                                <!-- Features Section --> | 
				
			|||
                                <div class="col-md-6 col-sm-12 p-3"> | 
				
			|||
                                    <div class="d-flex flex-column align-items-start h-100" | 
				
			|||
                                         style="padding:30px; border-radius:12px; background-color:#faf8ff"> | 
				
			|||
                                        <div class="d-flex align-items-center justify-content-center"> | 
				
			|||
                                            <div class="d-flex align-items-center justify-content-center " | 
				
			|||
                                                 style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> | 
				
			|||
                                                <i class="fa fa-star  " | 
				
			|||
                                                   style="color:#fff; font-size:14px"></i> | 
				
			|||
                                            </div> | 
				
			|||
                                            <p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px"> | 
				
			|||
                                                Shows quantity of product in POS.</p> | 
				
			|||
                                        </div> | 
				
			|||
 | 
				
			|||
                                    </div> | 
				
			|||
                                </div> | 
				
			|||
                                <div class="col-md-6 col-sm-12 p-3"> | 
				
			|||
                                    <div class="d-flex flex-column align-items-start h-100" | 
				
			|||
                                         style="padding:30px; border-radius:12px; background-color:#faf8ff"> | 
				
			|||
                                        <div class="d-flex align-items-center justify-content-center"> | 
				
			|||
                                            <div class="d-flex align-items-center justify-content-center " | 
				
			|||
                                                 style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> | 
				
			|||
                                                <i class="fa fa-star  " | 
				
			|||
                                                   style="color:#fff; font-size:14px"></i> | 
				
			|||
                                            </div> | 
				
			|||
                                            <p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px"> | 
				
			|||
                                                Display product stock based on location.</p> | 
				
			|||
                                        </div> | 
				
			|||
                                    </div> | 
				
			|||
                                </div> | 
				
			|||
                                 <div class="col-md-6 col-sm-12 p-3"> | 
				
			|||
                                    <div class="d-flex flex-column align-items-start h-100" | 
				
			|||
                                         style="padding:30px; border-radius:12px; background-color:#faf8ff"> | 
				
			|||
                                        <div class="d-flex align-items-center justify-content-center"> | 
				
			|||
                                            <div class="d-flex align-items-center justify-content-center " | 
				
			|||
                                                 style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> | 
				
			|||
                                                <i class="fa fa-star  " | 
				
			|||
                                                   style="color:#fff; font-size:14px"></i> | 
				
			|||
                                            </div> | 
				
			|||
                                            <p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px"> | 
				
			|||
                                                Deny Order in POS by setting quantity in each product.</p> | 
				
			|||
                                        </div> | 
				
			|||
                                    </div> | 
				
			|||
                                </div> | 
				
			|||
                                 <div class="col-md-6 col-sm-12 p-3"> | 
				
			|||
                                    <div class="d-flex flex-column align-items-start h-100" | 
				
			|||
                                         style="padding:30px; border-radius:12px; background-color:#faf8ff"> | 
				
			|||
                                        <div class="d-flex align-items-center justify-content-center"> | 
				
			|||
                                            <div class="d-flex align-items-center justify-content-center " | 
				
			|||
                                                 style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> | 
				
			|||
                                                <i class="fa fa-star  " | 
				
			|||
                                                   style="color:#fff; font-size:14px"></i> | 
				
			|||
                                            </div> | 
				
			|||
                                            <p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px"> | 
				
			|||
                                                Can display On Hand quantity,Incoming quantity and Outgoing quantity.</p> | 
				
			|||
                                        </div> | 
				
			|||
                                    </div> | 
				
			|||
                                </div> | 
				
			|||
                            </div> | 
				
			|||
                        </div> | 
				
			|||
                        <div aria-labelledby="faq-tab" | 
				
			|||
                             class="tab-pane fade show" id="faq" | 
				
			|||
                             role="tabpanel"> | 
				
			|||
                            <div class="row" | 
				
			|||
                                 style=" background-color:#fff !important"> | 
				
			|||
                                <div class="col-md-12" aria-labelledby="faq-tab" | 
				
			|||
                                     id="faq" role="tabpanel"> | 
				
			|||
                                    <div class="accordion mb-4" id="accordion6"> | 
				
			|||
                                        <div style="background-color:#fff"> | 
				
			|||
                                            <!-- accordian --> | 
				
			|||
                                            <div class="accordion" | 
				
			|||
                                                 id="accordion_faq"> | 
				
			|||
                                                <!-- Question 1 --> | 
				
			|||
                                                <div class="" | 
				
			|||
                                                     style="margin:1rem 0rem"> | 
				
			|||
                                                    <div aria-expanded="false" | 
				
			|||
                                                         class=" card-header collapsed" | 
				
			|||
                                                         data-bs-toggle="collapse" | 
				
			|||
                                                         data-bs-target="#collapseFAQOne" | 
				
			|||
                                                         href="#collapseFAQOne" | 
				
			|||
                                                         aria-controls="collapseFAQOne" | 
				
			|||
                                                         style="cursor: pointer; background-color:#f8f8f8; border:none; border-top-right-radius:10px; border-top-left-radius:10px; padding: 12px 24px;"> | 
				
			|||
                                                        <a class="card-title text-decoration-none" | 
				
			|||
                                                           style=" font-size:18px; line-height:30px; font-weight:500; color:#040f3a"> | 
				
			|||
                                                               How can I view the stock quantity for all products? | 
				
			|||
                                                            <img alt="" | 
				
			|||
                                                                 class="float-end" | 
				
			|||
                                                                 src="//apps.odoocdn.com/apps/assets/16.0/index_test_odoo/assets/icons/down.svg?6ef7fd7" | 
				
			|||
                                                                 width="25px"> | 
				
			|||
                                                        </a> | 
				
			|||
                                                    </div> | 
				
			|||
                                                    <div class="accordion-collapse collapse" | 
				
			|||
                                                         aria-labelledby="collapseFAQOne" | 
				
			|||
                                                         data-bs-parent="#accordion_faq" | 
				
			|||
                                                         id="collapseFAQOne" | 
				
			|||
                                                         style=" box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px; border: 1px solid #f8f8f8; border-bottom-right-radius:10px; border-bottom-left-radius:10px"> | 
				
			|||
                                                        <p style=" padding:0.75rem 1.25rem; font-size:16px; line-height:27px;  color:#888; font-weight:normal; border-bottom-right-radius:10px; border-bottom-left-radius:10px"> | 
				
			|||
                                                           To view the stock quantity | 
				
			|||
                                                            for all products  in Odoo 18 POS, | 
				
			|||
                                                            you need to enable the "Display stock" feature. | 
				
			|||
                                                        </p> | 
				
			|||
                                                    </div> | 
				
			|||
                                                </div> | 
				
			|||
                                                <!-- Question 2 --> | 
				
			|||
                                                <div style="margin:1rem 0rem"> | 
				
			|||
                                                    <div aria-expanded="false" | 
				
			|||
                                                         class="cursor-pointer card-header collapsed" | 
				
			|||
                                                         data-bs-toggle="collapse" | 
				
			|||
                                                         aria-controls="collapseFAQThree" | 
				
			|||
                                                         data-bs-target="#collapseFAQThree" | 
				
			|||
                                                         style="cursor: pointer; background-color:#f8f8f8; border:1px solid #f8f8f8; border-top-right-radius:10px; border-top-left-radius:10px; padding: 12px 24px"> | 
				
			|||
                                                        <a class="card-title text-decoration-none" | 
				
			|||
                                                           style=" font-size:18px; line-height:30px; font-weight:500; color:#040f3a"> | 
				
			|||
                                                          Where can I enable the "Display stock in POS" feature? | 
				
			|||
                                                            <img alt="" | 
				
			|||
                                                                 class="float-end" | 
				
			|||
                                                                 src="//apps.odoocdn.com/apps/assets/16.0/index_test_odoo/assets/icons/down.svg?6ef7fd7" | 
				
			|||
                                                                 width="25px"> | 
				
			|||
                                                        </a> | 
				
			|||
                                                    </div> | 
				
			|||
                                                    <div class="accordion-collapse collapse" | 
				
			|||
                                                         aria-labelledby="collapseFAQThree" | 
				
			|||
                                                         data-bs-parent="#accordion_faq" | 
				
			|||
                                                         id="collapseFAQThree" | 
				
			|||
                                                         style="box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px; border: 1px solid #f8f8f8; border-bottom-right-radius:10px; border-bottom-left-radius:10px"> | 
				
			|||
                                                        <p style="padding:0.75rem 1.25rem; font-size:16px; line-height:27px;  color:#888; font-weight:normal; border-bottom-right-radius:10px; border-bottom-left-radius:10px"> | 
				
			|||
                                                           You can enable this feature | 
				
			|||
                                                            by navigating to Point of Sale > Configuration > Settings. | 
				
			|||
                                                            Look for the "Display quantity" option and | 
				
			|||
                                                            check the box to activate it. | 
				
			|||
                                                            Save your settings after enabling this feature. | 
				
			|||
                                                        </p> | 
				
			|||
                                                    </div> | 
				
			|||
                                                </div> | 
				
			|||
                                            </div> | 
				
			|||
                                            <!--  --> | 
				
			|||
                                        </div> | 
				
			|||
                                    </div> | 
				
			|||
                                </div> | 
				
			|||
                            </div> | 
				
			|||
                        </div> | 
				
			|||
                        <div aria-labelledby="releases-tab" | 
				
			|||
                             class="tab-pane fade show" id="releases" | 
				
			|||
                             role="tabpanel"> | 
				
			|||
                            <!-- Release Notes --> | 
				
			|||
                            <div class="row pt-5 m-0"> | 
				
			|||
                                <div class="col-md-3"> | 
				
			|||
                                    <h4 style="font-size:16px; font-weight:600; color:#514F4F; margin:0; line-height:26px;"> | 
				
			|||
                                        Latest Release 18.0.1.0.0 | 
				
			|||
                                    </h4> | 
				
			|||
                                    <span style="font-size:14px; color:#7A7979; display:block; margin-bottom:20px;"> | 
				
			|||
                                          03rd December, 2024 | 
				
			|||
                                    </span> | 
				
			|||
                                </div> | 
				
			|||
                                <div class="col-md-8"> | 
				
			|||
                                    <div style="padding:0 0 40px"> | 
				
			|||
                                        <div style="margin:0 0 10px"> | 
				
			|||
                                            <div style="display:inline-block; padding:0px 8px; color:#514F4F; background-color:#FFD8D8; border-radius:20px"> | 
				
			|||
                                                Add | 
				
			|||
                                            </div> | 
				
			|||
                                        </div> | 
				
			|||
                                        <div class="d-flex m-0" | 
				
			|||
                                             style="color:#7A7979;"> | 
				
			|||
                                            <ul class="pl-3 mb-0"> | 
				
			|||
                                                <li> | 
				
			|||
                                                    Initial Commit | 
				
			|||
                                                </li> | 
				
			|||
                                            </ul> | 
				
			|||
                                        </div> | 
				
			|||
                                    </div> | 
				
			|||
                                    <div style="padding:0 0 0; border-bottom:1px solid #E3E3E3"> | 
				
			|||
                                    </div> | 
				
			|||
                                </div> | 
				
			|||
                            </div> | 
				
			|||
                        </div> | 
				
			|||
                    </div> | 
				
			|||
                </div> | 
				
			|||
                <!--  --> | 
				
			|||
                <!-- related post --> | 
				
			|||
                <!--  --> | 
				
			|||
                <section class="oe_container mt32"> | 
				
			|||
                <h2 style="color: #091E42;font-family: "Montserrat";text-align: center;margin: 25px auto;text-transform: uppercase;" class="oe_slogan"> | 
				
			|||
                    <b>Related Products</b> | 
				
			|||
                </h2> | 
				
			|||
                <div id="demo" class="row carousel slide mt64 mb32" data-bs-ride="carousel"> | 
				
			|||
                    <!-- The slideshow --> | 
				
			|||
                    <div class="carousel-inner"> | 
				
			|||
                        <div class="carousel-item active"> | 
				
			|||
                            <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float: left; padding: 10px;"> | 
				
			|||
                                <a href="https://apps.odoo.com/apps/modules/18.0/age_restricted_product_pos" target="_blank" style="color: #000; text-decoration: none;"> | 
				
			|||
                                    <div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" class="shadow-sm"> | 
				
			|||
                                        <img class="img img-responsive center-block" style=" max-width: 100%;" src="./assets/modules/b1.png" /> | 
				
			|||
                                        <h4 class="mt0 text-truncate" style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> | 
				
			|||
                                           Age Restricted Products POS</h4> | 
				
			|||
                                    </div> | 
				
			|||
                                </a> | 
				
			|||
                            </div> | 
				
			|||
                            <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float: left; padding: 10px;"> | 
				
			|||
                                <a href="https://apps.odoo.com/apps/modules/18.0/custom_receipts_for_pos" target="_blank" style="color: #000; text-decoration: none;"> | 
				
			|||
                                    <div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" class="shadow-sm"> | 
				
			|||
                                        <img class="img img-responsive center-block" style=" max-width: 100%;" src="./assets/modules/b2.png" /> | 
				
			|||
                                        <h4 class="mt0 text-truncate" style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> | 
				
			|||
                                             POS Receipt Design</h4> | 
				
			|||
                                    </div> | 
				
			|||
                                </a> | 
				
			|||
                            </div> | 
				
			|||
                            <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float: left; padding: 10px;"> | 
				
			|||
                                <a  href="https://apps.odoo.com/apps/modules/18.0/pos_receipt_extend" target="_blank" style="color: #000; text-decoration: none;"> | 
				
			|||
                                    <div style="border-radius: 6px;padding: 16px; border: 1px solid #cbcbcb;" class="shadow-sm"> | 
				
			|||
                                        <img class="img img-responsive center-block" style=" max-width: 100%;" src="./assets/modules/b3.png"/> | 
				
			|||
                                        <h4 class="mt0 text-truncate" style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> | 
				
			|||
                                            Advanced POS Receipt</h4> | 
				
			|||
                                    </div> | 
				
			|||
                                </a> | 
				
			|||
                            </div> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="carousel-item"> | 
				
			|||
                            <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float: left; padding: 10px;"> | 
				
			|||
                                <a href="https://apps.odoo.com/apps/modules/18.0/dashboard_pos" target="_blank" style="color: #000; text-decoration: none;"> | 
				
			|||
                                    <div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" class="shadow-sm"> | 
				
			|||
                                        <img class="img img-responsive center-block" style=" max-width: 100%;" src="./assets/modules/b4.png" /> | 
				
			|||
                                        <h4 class="mt0 text-truncate" style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> | 
				
			|||
                                            POS Dashboard</h4> | 
				
			|||
                                    </div> | 
				
			|||
                                </a> | 
				
			|||
                            </div> | 
				
			|||
                            <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float: left; padding: 10px;"> | 
				
			|||
                                <a href="https://apps.odoo.com/apps/modules/18.0/point_of_sale_logo" target="_blank" style="color: #000; text-decoration: none;"> | 
				
			|||
                                    <div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" class="shadow-sm"> | 
				
			|||
                                        <img class="img img-responsive center-block" style=" max-width: 100%;" src="./assets/modules/b5.png" /> | 
				
			|||
                                        <h4 class="mt0 text-truncate" style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> | 
				
			|||
                                            Point of Sale Logo</h4> | 
				
			|||
                                    </div> | 
				
			|||
                                </a> | 
				
			|||
                            </div> | 
				
			|||
                            <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float: left; padding: 10px;"> | 
				
			|||
                                <a href="https://apps.odoo.com/apps/modules/18.0/pos_zero_quantity_restrict" target="_blank" style="color: #000; text-decoration: none;"> | 
				
			|||
                                    <div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" class="shadow-sm"> | 
				
			|||
                                        <img class="img img-responsive center-block" style=" max-width: 100%;" src="./assets/modules/b6.png" /> | 
				
			|||
                                        <h4 class="mt0 text-truncate" style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> | 
				
			|||
                                           POS Restriction For Zero Quantity.</h4> | 
				
			|||
                                    </div> | 
				
			|||
                                </a> | 
				
			|||
                            </div> | 
				
			|||
                        </div> | 
				
			|||
                    </div> | 
				
			|||
                    <!-- Left and right controls --> | 
				
			|||
                    <a class="carousel-control-prev" href="#demo" data-bs-slide="prev" style="margin-left: -30px;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="#demo" data-bs-slide="next" style="margin-right: -30px;width: 35px;color: #000;"> | 
				
			|||
                        <span class="carousel-control-next-icon"> | 
				
			|||
        <i class="fa fa-chevron-right" style="font-size:24px"></i> | 
				
			|||
      </span> | 
				
			|||
                    </a> | 
				
			|||
                </div> | 
				
			|||
            </section> | 
				
			|||
                <!-- service-section --> | 
				
			|||
                <section id="services" class="mt-5" style="border-radius: 16px; | 
				
			|||
                                                            border: 1px solid #EBEEF2; | 
				
			|||
                                                            background: var(--Neutral-N0, #FFF); | 
				
			|||
                                                            padding: 60px 40px; | 
				
			|||
                                                            box-shadow: 0px 5px 20px -11px rgba(0, 0, 0, 0.25);"> | 
				
			|||
                    <div class="text-center mt-4"><h3 class="mb-0" style="color: #000; | 
				
			|||
                                                                  text-align: center; | 
				
			|||
                                                                  font-family: Montserrat; | 
				
			|||
                                                                  font-size: 40px; | 
				
			|||
                                                                  font-style: normal; | 
				
			|||
                                                                  font-weight: 700; | 
				
			|||
                                                                  line-height: normal; | 
				
			|||
                                                                  text-transform: uppercase; | 
				
			|||
                                                                  padding-bottom: 50px;"> | 
				
			|||
                        Our Services</h3></div> | 
				
			|||
                    <div class="row mt-3"> | 
				
			|||
                        <div class="col-lg-3 col-sm-12 mb-3"> | 
				
			|||
                            <a href="#" style="text-decoration:none"> | 
				
			|||
                                <div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" | 
				
			|||
                                     style="font-size:25px; font-weight:bold;background-color:#FFE2E5; margin:auto; gap: 16px; border-radius: 8px;"> | 
				
			|||
                                    <div class="d-flex justify-content-center align-items-center" | 
				
			|||
                                         style="background-color:#FA5A7D; border-radius:50%; height:56px; width:56px"> | 
				
			|||
                                        <img src="./assets/icons/gear.svg" | 
				
			|||
                                             class="img-responsive" | 
				
			|||
                                             height="28px" width="28px"> | 
				
			|||
                                    </div> | 
				
			|||
                                    <span style="font-size: 18px; | 
				
			|||
                                  color: var(--text-color); | 
				
			|||
                                  font-weight: 600;"> Odoo Customization</span> | 
				
			|||
                                </div> | 
				
			|||
                            </a> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="col-lg-3 col-sm-12 mb-3"> | 
				
			|||
                            <a href="#" style="text-decoration:none"> | 
				
			|||
                                <div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" | 
				
			|||
                                     style="font-size:25px; font-weight:bold;background-color:#FFF4DE; margin:auto; gap: 16px; border-radius: 8px;"> | 
				
			|||
                                    <div class="d-flex justify-content-center align-items-center" | 
				
			|||
                                         style="background-color:#FF947A; border-radius:50%; height:56px; width:56px"> | 
				
			|||
                                        <img src="./assets/icons/wrench-icon.svg" | 
				
			|||
                                             class="img-responsive" | 
				
			|||
                                             height="28px" width="28px"> | 
				
			|||
                                    </div> | 
				
			|||
                                    <span style="font-size: 18px; | 
				
			|||
                    color: var(--text-color); | 
				
			|||
                    font-weight: 600;"> Odoo Implementation</span> | 
				
			|||
                                </div> | 
				
			|||
                            </a> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="col-lg-3 col-sm-12 mb-3"> | 
				
			|||
                            <a href="#" style="text-decoration:none"> | 
				
			|||
                                <div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" | 
				
			|||
                                     style="font-size:25px; font-weight:bold;background-color:#DCFCE7; margin:auto; gap: 16px; border-radius: 8px;"> | 
				
			|||
                                    <div class="d-flex justify-content-center align-items-center" | 
				
			|||
                                         style="background-color:#3CD856; border-radius:50%; height:56px; width:56px"> | 
				
			|||
                                        <img src="./assets/icons/life-ring-icon.svg" | 
				
			|||
                                             class="img-responsive" | 
				
			|||
                                             height="28px" width="28px"> | 
				
			|||
                                    </div> | 
				
			|||
                                    <span style="font-size: 18px; | 
				
			|||
                  color: var(--text-color); | 
				
			|||
                  font-weight: 600;">Odoo Support</span> | 
				
			|||
                                </div> | 
				
			|||
                            </a> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="col-lg-3 col-sm-12 mb-3"> | 
				
			|||
                            <a href="#" style="text-decoration:none"> | 
				
			|||
                                <div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" | 
				
			|||
                                     style="font-size:25px; font-weight:bold;background-color:#F3E8FF; margin:auto; gap: 16px; border-radius: 8px;"> | 
				
			|||
                                    <div class="d-flex justify-content-center align-items-center" | 
				
			|||
                                         style="background-color:#BF83FF; border-radius:50%; height:56px; width:56px"> | 
				
			|||
                                        <img src="./assets/icons/arrows-repeat.svg" | 
				
			|||
                                             class="img-responsive" | 
				
			|||
                                             height="28px" width="28px"> | 
				
			|||
                                    </div> | 
				
			|||
                                    <span style="font-size: 18px; | 
				
			|||
                color: var(--text-color); | 
				
			|||
                font-weight: 600;">Odoo Migration</span> | 
				
			|||
                                </div> | 
				
			|||
                            </a> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="col-lg-3 col-sm-12 mb-3"> | 
				
			|||
                            <a href="#" style="text-decoration:none"> | 
				
			|||
                                <div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" | 
				
			|||
                                     style="font-size:25px; font-weight:bold;background-color:#F1F9FF; margin:auto; gap: 16px; border-radius: 8px;"> | 
				
			|||
                                    <div class="d-flex justify-content-center align-items-center" | 
				
			|||
                                         style="background-color:#01649C; border-radius:50%; height:56px; width:56px"> | 
				
			|||
                                        <img src="./assets/icons/puzzle-piece-icon.svg" | 
				
			|||
                                             class="img-responsive" | 
				
			|||
                                             height="28px" width="28px"> | 
				
			|||
                                    </div> | 
				
			|||
                                    <span style="font-size: 18px; | 
				
			|||
              color: var(--text-color); | 
				
			|||
              font-weight: 600;">Odoo integration</span> | 
				
			|||
                                </div> | 
				
			|||
                            </a> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="col-lg-3 col-sm-12 mb-3"> | 
				
			|||
                            <a href="#" style="text-decoration:none"> | 
				
			|||
                                <div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" | 
				
			|||
                                     style="font-size:25px; font-weight:bold;background-color:#EDF8ED; margin:auto; gap: 16px; border-radius: 8px;"> | 
				
			|||
 | 
				
			|||
                                    <div class="d-flex justify-content-center align-items-center" | 
				
			|||
                                         style="background-color:#69CC70; border-radius:50%; height:56px; width:56px"> | 
				
			|||
                                        <img src="./assets/icons/odoo-consultancy.svg" | 
				
			|||
                                             class="img-responsive" | 
				
			|||
                                             height="28px" width="28px"> | 
				
			|||
                                    </div> | 
				
			|||
                                    <span style="font-size: 18px; | 
				
			|||
            color: var(--text-color); | 
				
			|||
            font-weight: 600;">Odoo Consultancy</span> | 
				
			|||
                                </div> | 
				
			|||
                            </a> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="col-lg-3 col-sm-12 mb-3"> | 
				
			|||
                            <a href="#" style="text-decoration:none"> | 
				
			|||
                                <div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" | 
				
			|||
                                     style="font-size:25px; font-weight:bold;background-color:#F1F6FF; margin:auto; gap: 16px; border-radius: 8px;"> | 
				
			|||
 | 
				
			|||
                                    <div class="d-flex justify-content-center align-items-center" | 
				
			|||
                                         style="background-color:#2E4556; border-radius:50%; height:56px; width:56px"> | 
				
			|||
                                        <img src="./assets/icons/odoo-licencing.svg" | 
				
			|||
                                             class="img-responsive" | 
				
			|||
                                             height="28px" width="28px"> | 
				
			|||
                                    </div> | 
				
			|||
                                    <span style="font-size: 18px; | 
				
			|||
          color: var(--text-color); | 
				
			|||
          font-weight: 600;">Odoo Licensing</span> | 
				
			|||
                                </div> | 
				
			|||
                            </a> | 
				
			|||
                        </div> | 
				
			|||
                        <div class="col-lg-3 col-sm-12 mb-3"> | 
				
			|||
                            <a href="#" style="text-decoration:none"> | 
				
			|||
                                <div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" | 
				
			|||
                                     style="font-size:25px; font-weight:bold;background-color:#FAF6EA; margin:auto; gap: 16px; border-radius: 8px;"> | 
				
			|||
 | 
				
			|||
                                    <div class="d-flex justify-content-center align-items-center" | 
				
			|||
                                         style="background-color:#FCD12C; border-radius:50%; height:56px; width:56px"> | 
				
			|||
                                        <img src="./assets/icons/hire-odoo.svg" | 
				
			|||
                                             class="img-responsive" | 
				
			|||
                                             height="28px" width="28px"> | 
				
			|||
                                    </div> | 
				
			|||
                                    <span style="font-size: 18px; | 
				
			|||
          color: var(--text-color); | 
				
			|||
          font-weight: 600;">Hire Odoo Developer</span> | 
				
			|||
                                </div> | 
				
			|||
                            </a> | 
				
			|||
                        </div> | 
				
			|||
                    </div> | 
				
			|||
            </div> | 
				
			|||
            <!-- licence --> | 
				
			|||
            <div class="tab-pane fade" id="profile" role="tabpanel" | 
				
			|||
                 aria-labelledby="profile-tab"> | 
				
			|||
                <div class="px-5"> | 
				
			|||
                    .... | 
				
			|||
                </div> | 
				
			|||
            </div> | 
				
			|||
            <!--  --> | 
				
			|||
        </div> | 
				
			|||
        </section> | 
				
			|||
        <!--  --> | 
				
			|||
    </div> | 
				
			|||
</div> | 
				
			|||
</body> | 
				
			|||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script> | 
				
			|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" | 
				
			|||
        integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" | 
				
			|||
        crossorigin="anonymous" referrerpolicy="no-referrer"></script> | 
				
			|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script> | 
				
			|||
<script> | 
				
			|||
    $('.owl-carousel').owlCarousel({ | 
				
			|||
        rtl: true, | 
				
			|||
        loop: true, | 
				
			|||
        margin: 10, | 
				
			|||
        nav: true, | 
				
			|||
        responsive: { | 
				
			|||
            0: { | 
				
			|||
                items: 1 | 
				
			|||
            }, | 
				
			|||
            600: { | 
				
			|||
                items: 3 | 
				
			|||
            }, | 
				
			|||
            1000: { | 
				
			|||
                items: 3 | 
				
			|||
            } | 
				
			|||
        } | 
				
			|||
    }) | 
				
			|||
</script> | 
				
			|||
</html> | 
				
			|||
@ -0,0 +1,12 @@ | 
				
			|||
.dummy{ | 
				
			|||
background-color : #F0F8FF	; | 
				
			|||
} | 
				
			|||
.ribbon { | 
				
			|||
    padding: 9px; | 
				
			|||
    position: relative; | 
				
			|||
    top: 0; | 
				
			|||
    background-color: #c3d8c3; | 
				
			|||
    font-weight: bold; | 
				
			|||
    width: 26%; | 
				
			|||
    height: 39px; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,99 @@ | 
				
			|||
/** @odoo-module **/ | 
				
			|||
import { patch } from "@web/core/utils/patch"; | 
				
			|||
import { useService } from "@web/core/utils/hooks"; | 
				
			|||
import { AlertDialog } from "@web/core/confirmation_dialog/confirmation_dialog"; | 
				
			|||
import { ProductScreen } from "@point_of_sale/app/screens/product_screen/product_screen"; | 
				
			|||
import { _t } from "@web/core/l10n/translation"; | 
				
			|||
 | 
				
			|||
patch(ProductScreen.prototype, { | 
				
			|||
     setup(){ | 
				
			|||
     super.setup(); | 
				
			|||
 | 
				
			|||
     }, | 
				
			|||
     async addProductToOrder(event) { | 
				
			|||
        const current_product_id = event.id; | 
				
			|||
        const product_product = this.pos.product_product; | 
				
			|||
        const stock_product = this.pos.stock_quant; | 
				
			|||
        const main_product = product_product.find(product => product.id === current_product_id); | 
				
			|||
        const product_tmpl_id = main_product._raw.product_tmpl_id; | 
				
			|||
        const product_variants = product_product.filter(product => product._raw.product_tmpl_id === product_tmpl_id); | 
				
			|||
        let total_qty_available = 0; | 
				
			|||
        product_variants.forEach(variant => { | 
				
			|||
                stock_product.forEach(stock => { | 
				
			|||
                     if (stock.product_id && stock.product_id.id === variant.id) { | 
				
			|||
                          total_qty_available += stock.available_quantity; | 
				
			|||
                     } | 
				
			|||
                }); | 
				
			|||
        }); | 
				
			|||
     if(event.type === 'consu'){ | 
				
			|||
     if(this.pos.res_setting['stock_from'] === 'all_warehouse'){ | 
				
			|||
     let qty_available = 0; | 
				
			|||
        product_variants.forEach((variant) => { | 
				
			|||
            if (variant.qty_available) { | 
				
			|||
                qty_available += variant.qty_available; | 
				
			|||
            } | 
				
			|||
        }); | 
				
			|||
        if (this.pos.res_setting['stock_type'] === 'on_hand') { | 
				
			|||
            if (qty_available <= event.deny) { | 
				
			|||
             await this.dialog.add(AlertDialog, { | 
				
			|||
                            title: _t('Deny Order'), | 
				
			|||
                            body: _t('%s is Out Of Stock', event.name), | 
				
			|||
             }); | 
				
			|||
            } else { | 
				
			|||
                        super.addProductToOrder(event); | 
				
			|||
            } | 
				
			|||
        }else if (this.pos.res_setting['stock_type'] === 'outgoing_qty') { | 
				
			|||
            if (event.outgoing_qty <= event.deny) { | 
				
			|||
                await this.dialog.add(AlertDialog, { | 
				
			|||
                    title: _t('Deny Order'), | 
				
			|||
                    body: _t('%s is Out Of Stock', event.name), | 
				
			|||
                }); | 
				
			|||
            }else { | 
				
			|||
                    super.addProductToOrder(event); | 
				
			|||
            } | 
				
			|||
        } else if (this.pos.res_setting['stock_type'] === 'incoming_qty') { | 
				
			|||
                if (event.incoming_qty <= event.deny) { | 
				
			|||
                    await this.dialog.add(AlertDialog, { | 
				
			|||
                        title: _t('Deny Order'), | 
				
			|||
                        body: _t('%s is Out Of Stock', event.name), | 
				
			|||
                    }); | 
				
			|||
                }else { | 
				
			|||
                        super.addProductToOrder(event); | 
				
			|||
                } | 
				
			|||
        } | 
				
			|||
     }else if (this.pos.res_setting['stock_from'] ==='current_warehouse') { | 
				
			|||
                if (this.pos.res_setting['stock_type'] === 'on_hand') { | 
				
			|||
                    if (total_qty_available <= event.deny) { | 
				
			|||
                        await this.dialog.add(AlertDialog, { | 
				
			|||
                              title: _t('Deny Order'), | 
				
			|||
                              body: _t('%s is Out Of Stock', event.name), | 
				
			|||
                        }); | 
				
			|||
                    } else { | 
				
			|||
                        super.addProductToOrder(event); | 
				
			|||
                    } | 
				
			|||
                }else if (this.pos.res_setting['stock_type'] === 'outgoing_qty') { | 
				
			|||
                    if (event.outgoing_qty <= event.deny) { | 
				
			|||
                        await this.dialog.add(AlertDialog, { | 
				
			|||
                            title: _t('Deny Order'), | 
				
			|||
                            body: _t('%s is Out Of Stock', event.name), | 
				
			|||
                        }); | 
				
			|||
                    } else { | 
				
			|||
                        super.addProductToOrder(event); | 
				
			|||
                    } | 
				
			|||
                }else if (this.pos.res_setting['stock_type'] === 'incoming_qty') { | 
				
			|||
                    if (event.incoming_qty <= event.deny) { | 
				
			|||
                        await this.dialog.add(AlertDialog, { | 
				
			|||
                            title: _t('Deny Order'), | 
				
			|||
                            body: _t('%s is Out Of Stock', event.name), | 
				
			|||
                        }); | 
				
			|||
                    } else { | 
				
			|||
                        super.addProductToOrder(event); | 
				
			|||
                    } | 
				
			|||
                } | 
				
			|||
     } | 
				
			|||
     }else { | 
				
			|||
            super.addProductToOrder(event); | 
				
			|||
     } | 
				
			|||
 | 
				
			|||
    }, | 
				
			|||
}); | 
				
			|||
@ -0,0 +1,107 @@ | 
				
			|||
//** @odoo-module */
 | 
				
			|||
import { ProductCard } from "@point_of_sale/app/generic_components/product_card/product_card"; | 
				
			|||
import { usePos } from "@point_of_sale/app/store/pos_hook"; | 
				
			|||
import { patch } from "@web/core/utils/patch"; | 
				
			|||
import { useService } from "@web/core/utils/hooks"; | 
				
			|||
import { useRef, useState } from "@odoo/owl"; | 
				
			|||
 | 
				
			|||
patch(ProductCard.prototype, { | 
				
			|||
    setup() { | 
				
			|||
        super.setup(); | 
				
			|||
        this.state = useState({ | 
				
			|||
        qty_available: null, | 
				
			|||
        incoming_qty: null, | 
				
			|||
        outgoing_qty: null, | 
				
			|||
        display_stock: false | 
				
			|||
        }); | 
				
			|||
        this.pos = usePos(); | 
				
			|||
        this.orm = useService('orm'); | 
				
			|||
    }, | 
				
			|||
    async fetchProductDetails(productId) { | 
				
			|||
    const product = await this.orm.call("product.product", "read", [[productId], ["name", "id", "incoming_qty","outgoing_qty","qty_available"]]); | 
				
			|||
     return product[0]; | 
				
			|||
    }, | 
				
			|||
    async updateProductDetails() { | 
				
			|||
    const productId = this.props.productId; | 
				
			|||
    if (productId) { | 
				
			|||
        this.productDetail = await this.fetchProductDetails(productId); | 
				
			|||
        const product_product = this.pos.product_product; | 
				
			|||
        const stock_product = this.pos.stock_quant; | 
				
			|||
        const main_product = product_product.find(product => product.id === productId); | 
				
			|||
        const product_tmpl_id = main_product._raw.product_tmpl_id; | 
				
			|||
        const product_variants = product_product.filter(product => product._raw.product_tmpl_id === product_tmpl_id); | 
				
			|||
        let total_qty_available = 0; | 
				
			|||
        product_variants.forEach((variant) => { | 
				
			|||
            if (variant.qty_available) { | 
				
			|||
                total_qty_available += variant.qty_available; | 
				
			|||
            } | 
				
			|||
        }); | 
				
			|||
        this.qty_available = total_qty_available; | 
				
			|||
      } | 
				
			|||
    }, | 
				
			|||
    get value() { | 
				
			|||
        if (this.pos.res_setting.display_stock == true) { | 
				
			|||
            const current_product = this.props.productId; | 
				
			|||
            const current_product_name = this.props.name; | 
				
			|||
            const move_line = this.pos.move_line; | 
				
			|||
            const stock_product = this.pos.stock_quant; | 
				
			|||
            const product_product = this.pos.product_product; | 
				
			|||
            let qty = 0; | 
				
			|||
            let on_hand = 0; | 
				
			|||
            let outgoing = 0; | 
				
			|||
            let incoming = 0; | 
				
			|||
            const main_product = product_product.find(product => product.id === current_product); | 
				
			|||
            const product_tmpl_id = main_product._raw.product_tmpl_id; | 
				
			|||
            const product_variants = product_product.filter(product => product._raw.product_tmpl_id === product_tmpl_id); | 
				
			|||
            stock_product.forEach((product) => { | 
				
			|||
                  if (product && product.product_id) { | 
				
			|||
                      const product_id = product.product_id.id; | 
				
			|||
                      const is_variant = product_variants.some(variant => variant.id === product_id); | 
				
			|||
                      if (product_id === current_product || is_variant) { | 
				
			|||
                            qty += product.available_quantity; | 
				
			|||
                            on_hand += product.quantity; | 
				
			|||
                      } | 
				
			|||
                  } | 
				
			|||
            }); | 
				
			|||
            move_line.forEach((line) => { | 
				
			|||
            if (line && line.product_id) { | 
				
			|||
                if(line.product_id.id == current_product && this.pos.res_setting && this.pos.res_setting._raw.stock_location_id[1] == line._raw.location_dest_id[1]){ | 
				
			|||
                       incoming = incoming + line.product_id.incoming_qty; | 
				
			|||
                }if(line.product_id.id == current_product && this.pos.res_setting && this.pos.res_setting._raw.stock_location_id && this.pos.res_setting._raw.stock_location_id[1] == line._raw.location_id[1]){ | 
				
			|||
                      outgoing = outgoing + line.product_id.outgoing_qty; | 
				
			|||
                } | 
				
			|||
            } | 
				
			|||
            }); | 
				
			|||
 | 
				
			|||
            if (!this.props.available) { | 
				
			|||
                this.props.available = qty | 
				
			|||
            } | 
				
			|||
            if (!this.props.on_hand) { | 
				
			|||
                this.props.on_hand = on_hand; | 
				
			|||
            } | 
				
			|||
            if (!this.props.outgoing) { | 
				
			|||
                this.props.outgoing = outgoing | 
				
			|||
            } | 
				
			|||
            if (!this.props.incoming) { | 
				
			|||
                this.props.incoming_loc = incoming | 
				
			|||
            } | 
				
			|||
 | 
				
			|||
            this.updateProductDetails().then(() => { | 
				
			|||
            this.state.qty_available = this.qty_available | 
				
			|||
            this.state.incoming_qty = this.productDetail.incoming_qty | 
				
			|||
            this.state.outgoing_qty = this.productDetail.outgoing_qty | 
				
			|||
            }); | 
				
			|||
            this.state.display_stock = true; | 
				
			|||
            return { | 
				
			|||
                display_stock: this.pos.res_setting.display_stock | 
				
			|||
 | 
				
			|||
            }; | 
				
			|||
 | 
				
			|||
        } else { | 
				
			|||
            return { | 
				
			|||
                display_stock: false | 
				
			|||
            }; | 
				
			|||
        } | 
				
			|||
    } | 
				
			|||
}); | 
				
			|||
 | 
				
			|||
@ -0,0 +1,51 @@ | 
				
			|||
/** @odoo-module **/ | 
				
			|||
import { PaymentScreen } from "@point_of_sale/app/screens/payment_screen/payment_screen"; | 
				
			|||
import { patch } from "@web/core/utils/patch"; | 
				
			|||
 | 
				
			|||
patch(PaymentScreen.prototype, { | 
				
			|||
    setup() { | 
				
			|||
        super.setup(...arguments); | 
				
			|||
    }, | 
				
			|||
    async validateOrder(isForceValidate) { | 
				
			|||
        var order = this.pos.get_order(); | 
				
			|||
        var lines = order.get_orderlines(); | 
				
			|||
        if (this.pos.res_setting['stock_from'] === 'all_warehouse') { | 
				
			|||
            if (this.pos.res_setting['stock_type'] === 'on_hand') { | 
				
			|||
                lines.forEach((line) => { | 
				
			|||
                    var order_quantity = line.qty; | 
				
			|||
                    var new_qty = line.product_id.qty_available - order_quantity; | 
				
			|||
                    line.product_id.qty_available = new_qty; | 
				
			|||
                }); | 
				
			|||
            }else if (this.pos.res_setting['stock_type'] === 'outgoing_qty') { | 
				
			|||
                lines.forEach((line) => { | 
				
			|||
                    var order_quantity = line.qty; | 
				
			|||
 | 
				
			|||
                }); | 
				
			|||
            } else if (this.pos.res_setting['stock_type'] === 'incoming_qty') { | 
				
			|||
                lines.forEach((line) => { | 
				
			|||
                    var order_quantity = line.qty; | 
				
			|||
                }); | 
				
			|||
            } | 
				
			|||
        } else if (this.pos.res_setting['stock_from'] === 'current_warehouse') { | 
				
			|||
            if (this.pos.res_setting['stock_type'] === 'on_hand') { | 
				
			|||
                lines.forEach((line) => { | 
				
			|||
                    var item_quantity = line.qty; | 
				
			|||
                    var on_hand_qty = line.product_id.qty_available; | 
				
			|||
                    var new_qty = on_hand_qty - item_quantity; | 
				
			|||
                    line.product_id.qty_available = new_qty; | 
				
			|||
                }); | 
				
			|||
            } else if (this.pos.res_setting['stock_type'] === 'outgoing_qty') { | 
				
			|||
                lines.forEach((line) => { | 
				
			|||
                    var item_quantity = line.qty; | 
				
			|||
                    var out_going = line.product_id.outgoing; | 
				
			|||
                }); | 
				
			|||
            } else if (this.pos.res_setting['stock_type'] === 'incoming_qty') { | 
				
			|||
                lines.forEach((line) => { | 
				
			|||
                    var item_quantity = line.qty; | 
				
			|||
                    var incoming = line.product_id.incoming; | 
				
			|||
                }); | 
				
			|||
            } | 
				
			|||
        } | 
				
			|||
        return super.validateOrder(...arguments); | 
				
			|||
    } | 
				
			|||
}); | 
				
			|||
@ -0,0 +1,13 @@ | 
				
			|||
/** @odoo-module */ | 
				
			|||
import { patch } from "@web/core/utils/patch"; | 
				
			|||
import { PosStore } from "@point_of_sale/app/store/pos_store"; | 
				
			|||
 | 
				
			|||
patch(PosStore.prototype, { | 
				
			|||
       async processServerData(data) { | 
				
			|||
          super.processServerData(...arguments); | 
				
			|||
        this.res_setting = this.data.models['res.config.settings'].getFirst(); | 
				
			|||
        this.stock_quant = this.data.models['stock.quant'].getAll() | 
				
			|||
        this.move_line = this.data.models['stock.move.line'].getAll(); | 
				
			|||
        this.product_product = this.data.models['product.product'].getAll(); | 
				
			|||
       } | 
				
			|||
}) | 
				
			|||
@ -0,0 +1,43 @@ | 
				
			|||
<?xml version="1.0" encoding="UTF-8"?> | 
				
			|||
<templates id="template" xml:space="preserve"> | 
				
			|||
    <t t-name="point_of_sale.ProductCard" t-inherit="point_of_sale.ProductCard" t-inherit-mode="extension"> | 
				
			|||
        <xpath expr="//div[hasclass('product-information-tag')]" position="before"> | 
				
			|||
            <t t-if="value.display_stock"> | 
				
			|||
                <t t-if="pos.res_setting['stock_from'] == 'all_warehouse'"> | 
				
			|||
                    <t t-if="pos.res_setting['stock_type'] == 'incoming_qty'"> | 
				
			|||
                        <div class="ribbon"> | 
				
			|||
                            <t t-esc="state.incoming_qty"/> | 
				
			|||
                        </div> | 
				
			|||
                    </t> | 
				
			|||
                    <t t-if="pos.res_setting['stock_type'] == 'outgoing_qty'"> | 
				
			|||
                        <div class="ribbon"> | 
				
			|||
                            <t t-esc="state.outgoing_qty"/> | 
				
			|||
                        </div> | 
				
			|||
                    </t> | 
				
			|||
                    <t t-if="pos.res_setting['stock_type'] == 'on_hand'"> | 
				
			|||
                        <div class="ribbon"> | 
				
			|||
                            <t t-esc="state.qty_available"/> | 
				
			|||
                        </div> | 
				
			|||
                    </t> | 
				
			|||
                </t> | 
				
			|||
                <t t-if="pos.res_setting['stock_from'] == 'current_warehouse'"> | 
				
			|||
                    <t t-if="pos.res_setting['stock_type'] == 'incoming_qty'"> | 
				
			|||
                        <div class="ribbon"> | 
				
			|||
                            <t t-esc="props.incoming_loc"/> | 
				
			|||
                        </div> | 
				
			|||
                    </t> | 
				
			|||
                    <t t-if="pos.res_setting['stock_type'] == 'outgoing_qty'"> | 
				
			|||
                        <div class="ribbon"> | 
				
			|||
                            <t t-esc="props.outgoing"/> | 
				
			|||
                        </div> | 
				
			|||
                    </t> | 
				
			|||
                    <t t-if="pos.res_setting['stock_type'] == 'on_hand'"> | 
				
			|||
                        <div class="ribbon"> | 
				
			|||
                            <t t-out="props.on_hand"/> | 
				
			|||
                        </div> | 
				
			|||
                    </t> | 
				
			|||
                </t> | 
				
			|||
            </t> | 
				
			|||
        </xpath> | 
				
			|||
    </t> | 
				
			|||
</templates> | 
				
			|||
@ -0,0 +1,14 @@ | 
				
			|||
<?xml version="1.0" encoding="utf-8" ?> | 
				
			|||
<odoo> | 
				
			|||
    <!-- Inherited product.template to add field. --> | 
				
			|||
    <record id="product_template_form_view" model="ir.ui.view"> | 
				
			|||
        <field name="name">Product.template.view.form.inherit.pos.product.stock</field> | 
				
			|||
        <field name="model">product.template</field> | 
				
			|||
        <field name="inherit_id" ref="product.product_template_form_view"/> | 
				
			|||
        <field name="arch" type="xml"> | 
				
			|||
            <xpath expr="//page[@name='pos']//group[@name='pos']//field[@name='pos_categ_ids']" position="after"> | 
				
			|||
                <field name="deny"/> | 
				
			|||
            </xpath> | 
				
			|||
        </field> | 
				
			|||
    </record> | 
				
			|||
</odoo> | 
				
			|||
@ -0,0 +1,41 @@ | 
				
			|||
<?xml version="1.0" encoding="utf-8"?> | 
				
			|||
<odoo> | 
				
			|||
    <!-- Inherited res.config.settings to add fields. --> | 
				
			|||
    <record id="res_config_settings_view_form" model="ir.ui.view"> | 
				
			|||
        <field name="name">res.config.settings.view.form.inherit.pos.product.stock</field> | 
				
			|||
        <field name="model">res.config.settings</field> | 
				
			|||
        <field name="inherit_id" ref="point_of_sale.res_config_settings_view_form"/> | 
				
			|||
        <field name="arch" type="xml"> | 
				
			|||
            <xpath expr="//block[@id='pos_connected_devices_section']" position="inside"> | 
				
			|||
                <div class="col-12 col-lg-6 o_setting_box"> | 
				
			|||
                    <div class="o_setting_left_pane"> | 
				
			|||
                        <field name="display_stock"/> | 
				
			|||
                    </div> | 
				
			|||
                    <div class="o_setting_right_pane"> | 
				
			|||
                        <label for="display_stock" string="Display Stock"/> | 
				
			|||
                        <div class="text-muted"> | 
				
			|||
                            Display stock quantity in pos | 
				
			|||
                        </div> | 
				
			|||
                        <div class="mt16"  invisible="not display_stock"> | 
				
			|||
                            <div> | 
				
			|||
                                <label for="stock_type" string="Stock Type" class="fw-normal"/> | 
				
			|||
                                <field name="stock_type" required="display_stock"/> | 
				
			|||
                            </div> | 
				
			|||
                            <div> | 
				
			|||
                                <field name="stock_from" widget="radio" | 
				
			|||
                                        invisible="not display_stock"/> | 
				
			|||
                                <div> | 
				
			|||
                                    <label for="stock_location_id" string="Choose location" | 
				
			|||
                                          invisible="stock_from not in('current_warehouse')"/> | 
				
			|||
                                    <field name="stock_location_id" | 
				
			|||
                                           invisible="stock_from not in('current_warehouse')" | 
				
			|||
                                           domain="[('usage', '=', 'internal'),('location_id.usage','!=','internal')]"/> | 
				
			|||
                                </div> | 
				
			|||
                            </div> | 
				
			|||
                        </div> | 
				
			|||
                    </div> | 
				
			|||
                </div> | 
				
			|||
            </xpath> | 
				
			|||
        </field> | 
				
			|||
    </record> | 
				
			|||
</odoo> | 
				
			|||