diff --git a/stock_transfer_in_pos/README.rst b/stock_transfer_in_pos/README.rst new file mode 100644 index 000000000..446ad707c --- /dev/null +++ b/stock_transfer_in_pos/README.rst @@ -0,0 +1,43 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Point of Sale Stock Transfer +============================ +This module helps to transfer stock from POS session. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: (V16) Raneesha M K, + (V15) Aysha Shalin + 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 `__ + +Further information +=================== +HTML Description: ``__ \ No newline at end of file diff --git a/stock_transfer_in_pos/__init__.py b/stock_transfer_in_pos/__init__.py new file mode 100644 index 000000000..c3924c90a --- /dev/null +++ b/stock_transfer_in_pos/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import models diff --git a/stock_transfer_in_pos/__manifest__.py b/stock_transfer_in_pos/__manifest__.py new file mode 100644 index 000000000..21dac7245 --- /dev/null +++ b/stock_transfer_in_pos/__manifest__.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +{ + 'name': 'Point of Sale Stock Transfer', + 'version': '15.0.1.0.0', + 'summary': """Allows to Directly Transfer the Stock From the Current POS + Session.""", + 'description': """This module Allows to Directly Transfer the Stock From the + Current POS Session and enables to select the type of transfer, source and + destination locations based on picking type.""", + 'category': 'Point of Sale', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': [ + 'base', 'point_of_sale' + ], + 'data': [ + 'views/res_config_settings_views.xml' + ], + 'assets': { + 'web.assets_backend': [ + 'stock_transfer_in_pos/static/src/js/stock_transfer.js', + 'stock_transfer_in_pos/static/src/js/transfer_create_popup.js', + 'stock_transfer_in_pos/static/src/js/transfer_ref_popup.js', + ], + 'web.assets_qweb': [ + 'stock_transfer_in_pos/static/src/xml/stock_transfer_button.xml', + 'stock_transfer_in_pos/static/src/xml/transfer_ref_popup.xml', + 'stock_transfer_in_pos/static/src/xml/transfer_create_popup.xml', + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/stock_transfer_in_pos/doc/RELEASE_NOTES.md b/stock_transfer_in_pos/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..3d25ca6e7 --- /dev/null +++ b/stock_transfer_in_pos/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 09.09.2024 +#### Version 15.0.1.0.0 +##### ADD +- Initial Commit for Point of Sale Stock Transfer diff --git a/stock_transfer_in_pos/models/__init__.py b/stock_transfer_in_pos/models/__init__.py new file mode 100644 index 000000000..956019b07 --- /dev/null +++ b/stock_transfer_in_pos/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import pos_config +from . import res_config_settings diff --git a/stock_transfer_in_pos/models/pos_config.py b/stock_transfer_in_pos/models/pos_config.py new file mode 100644 index 000000000..d013b6c84 --- /dev/null +++ b/stock_transfer_in_pos/models/pos_config.py @@ -0,0 +1,93 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import api, fields, models +from odoo.fields import Command + + +class PosConfig(models.Model): + """ Inherited model for adding new field to configuration settings that + allows to transfer stock from pos session """ + _inherit = 'pos.config' + + stock_transfer = fields.Boolean( + string="Enable Stock Transfer", + help="Enable if you want to transfer stock from PoS session", + compute="_compute_stock_transfer") + + def _compute_stock_transfer(self): + """ Set the value for stock transfer based on the settings """ + if self.env['ir.config_parameter'].sudo().get_param( + 'stock_transfer_in_pos.is_stock_transfer'): + self.stock_transfer = True + else: + self.stock_transfer = False + + @api.model + def get_stock_transfer_list(self): + """ To get selection field values of stock transfer popup + + :return dict: returns list of dictionary with stock picking types, + stock location, and stock warehouse. + """ + main = {} + main['picking_type'] = self.env['stock.picking.type'].search_read( + [('company_id', '=', self.env.user.company_id.id)], + ['display_name', 'code']) + main['location'] = self.env['stock.location'].search_read([ + ('usage', '!=', 'view')], ['display_name']) + main['wh_stock'] = self.env['stock.warehouse'].search( + [('company_id', '=', self.env.user.company_id.id)]).lot_stock_id.id + return main + + @api.model + def create_transfer(self, pick_id, source_id, dest_id, state, line): + """ Create a stock transfer based on the popup value + + :param pick_id(string): id of stock picking type + :param source_id(string): id of source stock location + :param dest_id(string): id of destination stock location + :param state(string): state of stock picking + :param line(dictionary): dictionary values with product ids and + quantity + + :return dict: returns dictionary of values with created stock + transfer id and name + """ + transfer = self.env['stock.picking'].create({ + 'picking_type_id': int(pick_id), + 'location_id': int(source_id), + 'location_dest_id': int(dest_id), + 'move_ids_without_package': [Command.create({ + 'product_id': line['pro_id'][rec], + 'product_uom_qty': line['qty'][rec], + 'quantity_done': line['qty'][rec], + 'product_uom': line['uom'][rec], + 'location_id': int(source_id), + 'location_dest_id': int(dest_id), + 'name': "Product" + }) for rec in range(len(line['pro_id']))], + }) + transfer.write({'state': state}) + return { + 'id': transfer.id, + 'name': transfer.name + } diff --git a/stock_transfer_in_pos/models/res_config_settings.py b/stock_transfer_in_pos/models/res_config_settings.py new file mode 100644 index 000000000..8e0a7b835 --- /dev/null +++ b/stock_transfer_in_pos/models/res_config_settings.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + """ Inheriting model for adding a field to settings that allow to transfer + stock from pos session """ + _inherit = 'res.config.settings' + + is_stock_transfer = fields.Boolean( + string="Enable Stock Transfer", + help="Enable if you want to transfer stock from PoS session") + + def get_values(self): + """ Supering the getter to get the is_stock_transfer field """ + res = super(ResConfigSettings, self).get_values() + res.update( + is_stock_transfer=self.env['ir.config_parameter'].sudo().get_param( + 'stock_transfer_in_pos.is_stock_transfer') + ) + return res + + def set_values(self): + """ Supering the setter to set the is_stock_transfer field """ + res = super(ResConfigSettings, self).set_values() + self.env['ir.config_parameter'].sudo().set_param( + 'stock_transfer_in_pos.is_stock_transfer', + self.is_stock_transfer or False) + return res diff --git a/stock_transfer_in_pos/static/description/assets/icons/check.png b/stock_transfer_in_pos/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/check.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/chevron.png b/stock_transfer_in_pos/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/chevron.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/cogs.png b/stock_transfer_in_pos/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/cogs.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/consultation.png b/stock_transfer_in_pos/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/consultation.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/ecom-black.png b/stock_transfer_in_pos/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/ecom-black.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/education-black.png b/stock_transfer_in_pos/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/education-black.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/hotel-black.png b/stock_transfer_in_pos/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/hotel-black.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/license.png b/stock_transfer_in_pos/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/license.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/lifebuoy.png b/stock_transfer_in_pos/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/lifebuoy.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/manufacturing-black.png b/stock_transfer_in_pos/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/manufacturing-black.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/pos-black.png b/stock_transfer_in_pos/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/pos-black.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/puzzle.png b/stock_transfer_in_pos/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/puzzle.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/restaurant-black.png b/stock_transfer_in_pos/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/restaurant-black.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/service-black.png b/stock_transfer_in_pos/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/service-black.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/trading-black.png b/stock_transfer_in_pos/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/trading-black.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/training.png b/stock_transfer_in_pos/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/training.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/update.png b/stock_transfer_in_pos/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/update.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/user.png b/stock_transfer_in_pos/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/user.png differ diff --git a/stock_transfer_in_pos/static/description/assets/icons/wrench.png b/stock_transfer_in_pos/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/icons/wrench.png differ diff --git a/stock_transfer_in_pos/static/description/assets/misc/categories.png b/stock_transfer_in_pos/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/misc/categories.png differ diff --git a/stock_transfer_in_pos/static/description/assets/misc/check-box.png b/stock_transfer_in_pos/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/misc/check-box.png differ diff --git a/stock_transfer_in_pos/static/description/assets/misc/compass.png b/stock_transfer_in_pos/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/misc/compass.png differ diff --git a/stock_transfer_in_pos/static/description/assets/misc/corporate.png b/stock_transfer_in_pos/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/misc/corporate.png differ diff --git a/stock_transfer_in_pos/static/description/assets/misc/customer-support.png b/stock_transfer_in_pos/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/misc/customer-support.png differ diff --git a/stock_transfer_in_pos/static/description/assets/misc/cybrosys-logo.png b/stock_transfer_in_pos/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/misc/cybrosys-logo.png differ diff --git a/stock_transfer_in_pos/static/description/assets/misc/features.png b/stock_transfer_in_pos/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/misc/features.png differ diff --git a/stock_transfer_in_pos/static/description/assets/misc/logo.png b/stock_transfer_in_pos/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/misc/logo.png differ diff --git a/stock_transfer_in_pos/static/description/assets/misc/pictures.png b/stock_transfer_in_pos/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/misc/pictures.png differ diff --git a/stock_transfer_in_pos/static/description/assets/misc/pie-chart.png b/stock_transfer_in_pos/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/misc/pie-chart.png differ diff --git a/stock_transfer_in_pos/static/description/assets/misc/right-arrow.png b/stock_transfer_in_pos/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/misc/right-arrow.png differ diff --git a/stock_transfer_in_pos/static/description/assets/misc/star.png b/stock_transfer_in_pos/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/misc/star.png differ diff --git a/stock_transfer_in_pos/static/description/assets/misc/support.png b/stock_transfer_in_pos/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/misc/support.png differ diff --git a/stock_transfer_in_pos/static/description/assets/misc/whatsapp.png b/stock_transfer_in_pos/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/misc/whatsapp.png differ diff --git a/stock_transfer_in_pos/static/description/assets/modules/point_of_sale_logo.png b/stock_transfer_in_pos/static/description/assets/modules/point_of_sale_logo.png new file mode 100644 index 000000000..b80003109 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/modules/point_of_sale_logo.png differ diff --git a/stock_transfer_in_pos/static/description/assets/modules/pos_magnify_image.png b/stock_transfer_in_pos/static/description/assets/modules/pos_magnify_image.png new file mode 100644 index 000000000..551db150f Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/modules/pos_magnify_image.png differ diff --git a/stock_transfer_in_pos/static/description/assets/modules/pos_mrp_order.png b/stock_transfer_in_pos/static/description/assets/modules/pos_mrp_order.png new file mode 100644 index 000000000..234f364d2 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/modules/pos_mrp_order.png differ diff --git a/stock_transfer_in_pos/static/description/assets/modules/pos_order_line_image.png b/stock_transfer_in_pos/static/description/assets/modules/pos_order_line_image.png new file mode 100644 index 000000000..899749138 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/modules/pos_order_line_image.png differ diff --git a/stock_transfer_in_pos/static/description/assets/modules/pos_product_creation.png b/stock_transfer_in_pos/static/description/assets/modules/pos_product_creation.png new file mode 100644 index 000000000..cf749372e Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/modules/pos_product_creation.png differ diff --git a/stock_transfer_in_pos/static/description/assets/modules/product_exchange_pos_sys.png b/stock_transfer_in_pos/static/description/assets/modules/product_exchange_pos_sys.png new file mode 100644 index 000000000..944abdae3 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/modules/product_exchange_pos_sys.png differ diff --git a/stock_transfer_in_pos/static/description/assets/screenshots/1.png b/stock_transfer_in_pos/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..64820152c Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/screenshots/1.png differ diff --git a/stock_transfer_in_pos/static/description/assets/screenshots/2.png b/stock_transfer_in_pos/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..1bfc3c87f Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/screenshots/2.png differ diff --git a/stock_transfer_in_pos/static/description/assets/screenshots/3.png b/stock_transfer_in_pos/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..13bd59fb2 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/screenshots/3.png differ diff --git a/stock_transfer_in_pos/static/description/assets/screenshots/4.png b/stock_transfer_in_pos/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..3df61cd07 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/screenshots/4.png differ diff --git a/stock_transfer_in_pos/static/description/assets/screenshots/5.png b/stock_transfer_in_pos/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..c584a4a85 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/screenshots/5.png differ diff --git a/stock_transfer_in_pos/static/description/assets/screenshots/hero.gif b/stock_transfer_in_pos/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..fa76ea2d7 Binary files /dev/null and b/stock_transfer_in_pos/static/description/assets/screenshots/hero.gif differ diff --git a/stock_transfer_in_pos/static/description/banner.png b/stock_transfer_in_pos/static/description/banner.png new file mode 100644 index 000000000..2c9d259ca Binary files /dev/null and b/stock_transfer_in_pos/static/description/banner.png differ diff --git a/stock_transfer_in_pos/static/description/icon.png b/stock_transfer_in_pos/static/description/icon.png new file mode 100644 index 000000000..b14c9fa18 Binary files /dev/null and b/stock_transfer_in_pos/static/description/icon.png differ diff --git a/stock_transfer_in_pos/static/description/index.html b/stock_transfer_in_pos/static/description/index.html new file mode 100644 index 000000000..8415f7eeb --- /dev/null +++ b/stock_transfer_in_pos/static/description/index.html @@ -0,0 +1,556 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ + + +

Point of + Sale Stock Transfer

+

Allows to Directly Transfer the Stock From the Current POS Session

+ + + +
+ + +
+
+ +
+

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ This module allows to transfer stock(incoming order, delivery order, internal transfer & POS orders) from the POS session. A fast option to transfer stock right from the POS session has been implemented. +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Makes stock transfer from POS session. +
+
+ + Do all type of transfers on just one click. +
+
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

Enable Stock Transfer + from the POS settings

+

Go to PoS Settings -> + Enable Stock Transfer. After enabling this, the transfer option will be visible in POS session.

+ +
+ +
+

Select Products and + click the button

+

Select the products to + transfer and click the button Stock Transfer, it opens a popup.

+ + + +
+

You have to + choose + type of transfer, source location, destination location and state

+ +
+ +
+

The Stock is + transferred

+

Now the transfer is + created based on the values selected in popup. When you click on the transfer number it opens the + backend view.

+ +
+ +
+

The backend view + of the transfer

+ +
+ +
+
+ + + +
+
+ +
+

Related + Products +

+
+
+
+ +
+
+ + + + +
+
+ +
+

Our Services +

+
+ +
+
+
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+ +
+ + + + + +
+
+ +
+

Our + Industries +

+
+ +
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + + + +
+
+ +
+

Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+
+ \ No newline at end of file diff --git a/stock_transfer_in_pos/static/src/js/stock_transfer.js b/stock_transfer_in_pos/static/src/js/stock_transfer.js new file mode 100644 index 000000000..716430f39 --- /dev/null +++ b/stock_transfer_in_pos/static/src/js/stock_transfer.js @@ -0,0 +1,40 @@ +/** @odoo-module **/ +/** +* This file is used to register the a new button for stock transfer +*/ +import PosComponent from 'point_of_sale.PosComponent'; +import Registries from 'point_of_sale.Registries'; +import ProductScreen from 'point_of_sale.ProductScreen'; +const { useListener } = require("@web/core/utils/hooks"); +const rpc = require('web.rpc'); + +class StockTransferButton extends PosComponent { + // This function will show a popup to transfer stock with selected products and customer + async onClick(){ + var self = this + if((this.env.pos.get_order().orderlines) == 0){ + this.showPopup('ErrorPopup',{ + 'title': this.env._t('Select Products'), + 'body': "Please Select at least one product for transferring", + }); + } + else{ + await rpc.query({ + model:'pos.config', + method:'get_stock_transfer_list', + }).then(function(result){ + self.showPopup("CreateTransferPopup", { + data : result, + }); + }); + } + } +} +StockTransferButton.template = 'StockTransferButton'; +ProductScreen.addControlButton({ + component: StockTransferButton, + condition: function() { + return true; + }, +}); +Registries.Component.add(StockTransferButton); diff --git a/stock_transfer_in_pos/static/src/js/transfer_create_popup.js b/stock_transfer_in_pos/static/src/js/transfer_create_popup.js new file mode 100644 index 000000000..c16518ad1 --- /dev/null +++ b/stock_transfer_in_pos/static/src/js/transfer_create_popup.js @@ -0,0 +1,52 @@ +/** @odoo-module **/ +/** +* This file is used register a popup for transferring the stock of selected products +*/ +import AbstractAwaitablePopup from 'point_of_sale.AbstractAwaitablePopup'; +import Registries from 'point_of_sale.Registries'; +const rpc = require('web.rpc'); + +class CreateTransferPopup extends AbstractAwaitablePopup { + // This function hides and displays destination and source locations based on the picking type selected + _clickPicking(ev){ + var type = ev.target.selectedOptions[0].dataset.type + this.el.querySelector('#dest_tr').style.display = ''; + this.el.querySelector('#source_tr').style.display = ''; + if (type == 'incoming') { + this.el.querySelector('#source_tr').style.display = 'none'; + this.el.querySelector('#source_loc').value = this.props.data.location[1].id; + this.el.querySelector('#dest_loc').value = this.props.data['wh_stock']; + } + else if (type == 'outgoing') { + this.el.querySelector('#dest_tr').style.display = 'none'; + this.el.querySelector('#source_loc').value = this.props.data['wh_stock']; + this.el.querySelector('#dest_loc').value = this.props.data.location[1].id; + } + } + // This function get all the values you selected in the popup and transfer the stock by passing data backend. + async Create(){ + var pick_id = this.el.querySelector('#picking').value; + var source_id = this.el.querySelector('#source_loc').value; + var dest_id = this.el.querySelector('#dest_loc').value; + var state = this.el.querySelector('#state').value; + var line = this.env.pos.get_order().orderlines; + var product = {'pro_id':[],'qty':[], 'uom':[]} + for(var i=0; i + + + + +
+ Stock Transfer +
+
+
+
diff --git a/stock_transfer_in_pos/static/src/xml/transfer_create_popup.xml b/stock_transfer_in_pos/static/src/xml/transfer_create_popup.xml new file mode 100644 index 000000000..4d3f28c08 --- /dev/null +++ b/stock_transfer_in_pos/static/src/xml/transfer_create_popup.xml @@ -0,0 +1,94 @@ + + + diff --git a/stock_transfer_in_pos/static/src/xml/transfer_ref_popup.xml b/stock_transfer_in_pos/static/src/xml/transfer_ref_popup.xml new file mode 100644 index 000000000..bb65120fd --- /dev/null +++ b/stock_transfer_in_pos/static/src/xml/transfer_ref_popup.xml @@ -0,0 +1,20 @@ + + + diff --git a/stock_transfer_in_pos/views/res_config_settings_views.xml b/stock_transfer_in_pos/views/res_config_settings_views.xml new file mode 100644 index 000000000..79ee15fc3 --- /dev/null +++ b/stock_transfer_in_pos/views/res_config_settings_views.xml @@ -0,0 +1,29 @@ + + + + + res.config.settings.view.form.inherit.stock.transfer.in.pos + res.config.settings + + + +

Stock Transfer

+
+
+
+ +
+
+
+
+
+
+
+
+