diff --git a/pos_stock_transfer/README.rst b/pos_stock_transfer/README.rst new file mode 100644 index 000000000..9a42e13b3 --- /dev/null +++ b/pos_stock_transfer/README.rst @@ -0,0 +1,42 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://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 configuration required + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: Raneesha M K @cybrosys, 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/pos_stock_transfer/__init__.py b/pos_stock_transfer/__init__.py new file mode 100644 index 000000000..084f44af0 --- /dev/null +++ b/pos_stock_transfer/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Raneesha M K (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/pos_stock_transfer/__manifest__.py b/pos_stock_transfer/__manifest__.py new file mode 100644 index 000000000..c62f4689a --- /dev/null +++ b/pos_stock_transfer/__manifest__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Raneesha M K (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': '16.0.1.0.0', + 'category': 'Point of Sale', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'images': ['static/description/banner.jpg'], + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'point_of_sale'], + 'summary': "Allows to directly transfer the " + "stock from the current POS session", + 'description': "This module allows to transfer stock(incoming order, " + "delivery order, internal transfer & POS orders) " + "from the POS session.", + 'data': ['views/res_config_settings_views.xml'], + 'assets': { + 'point_of_sale.assets': [ + '/pos_stock_transfer/static/src/xml/stock_transfer_button.xml', + '/pos_stock_transfer/static/src/xml/transfer_ref_popup.xml', + '/pos_stock_transfer/static/src/xml/transfer_create_popup.xml', + '/pos_stock_transfer/static/src/js/stock_transfer.js', + '/pos_stock_transfer/static/src/js/transfer_create_popup.js', + '/pos_stock_transfer/static/src/js/transfer_ref_popup.js', + ], + }, + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/pos_stock_transfer/doc/RELEASE_NOTES.md b/pos_stock_transfer/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..47d441d3f --- /dev/null +++ b/pos_stock_transfer/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 15.03.2023 +#### Version 16.0.1.0.0 +#### ADD +Initial Commit Point of Sale Stock Transfer \ No newline at end of file diff --git a/pos_stock_transfer/models/__init__.py b/pos_stock_transfer/models/__init__.py new file mode 100644 index 000000000..b61209691 --- /dev/null +++ b/pos_stock_transfer/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Raneesha M K (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/pos_stock_transfer/models/pos_config.py b/pos_stock_transfer/models/pos_config.py new file mode 100644 index 000000000..5f6b6583a --- /dev/null +++ b/pos_stock_transfer/models/pos_config.py @@ -0,0 +1,81 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Raneesha M K (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") + + @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([], [ + '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': [Command.create({ + 'product_id': line['pro_id'][rec], + 'product_uom_qty': line['qty'][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/pos_stock_transfer/models/res_config_settings.py b/pos_stock_transfer/models/res_config_settings.py new file mode 100644 index 000000000..d2c9a70d3 --- /dev/null +++ b/pos_stock_transfer/models/res_config_settings.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Raneesha M K (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(related="pos_config_id.stock_transfer", + string="Enable Stock Transfer", + help="Enable if you want to transfer " + "stock from PoS session", readonly=False) diff --git a/pos_stock_transfer/static/description/assets/icons/check.png b/pos_stock_transfer/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/check.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/chevron.png b/pos_stock_transfer/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/chevron.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/cogs.png b/pos_stock_transfer/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/cogs.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/consultation.png b/pos_stock_transfer/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/consultation.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/ecom-black.png b/pos_stock_transfer/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/ecom-black.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/education-black.png b/pos_stock_transfer/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/education-black.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/hotel-black.png b/pos_stock_transfer/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/hotel-black.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/license.png b/pos_stock_transfer/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/license.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/lifebuoy.png b/pos_stock_transfer/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/lifebuoy.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/manufacturing-black.png b/pos_stock_transfer/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/manufacturing-black.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/pos-black.png b/pos_stock_transfer/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/pos-black.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/puzzle.png b/pos_stock_transfer/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/puzzle.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/restaurant-black.png b/pos_stock_transfer/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/restaurant-black.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/service-black.png b/pos_stock_transfer/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/service-black.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/trading-black.png b/pos_stock_transfer/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/trading-black.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/training.png b/pos_stock_transfer/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/training.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/update.png b/pos_stock_transfer/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/update.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/user.png b/pos_stock_transfer/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/user.png differ diff --git a/pos_stock_transfer/static/description/assets/icons/wrench.png b/pos_stock_transfer/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/pos_stock_transfer/static/description/assets/icons/wrench.png differ diff --git a/pos_stock_transfer/static/description/assets/misc/categories.png b/pos_stock_transfer/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/misc/categories.png differ diff --git a/pos_stock_transfer/static/description/assets/misc/check-box.png b/pos_stock_transfer/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/misc/check-box.png differ diff --git a/pos_stock_transfer/static/description/assets/misc/compass.png b/pos_stock_transfer/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/pos_stock_transfer/static/description/assets/misc/compass.png differ diff --git a/pos_stock_transfer/static/description/assets/misc/corporate.png b/pos_stock_transfer/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/pos_stock_transfer/static/description/assets/misc/corporate.png differ diff --git a/pos_stock_transfer/static/description/assets/misc/customer-support.png b/pos_stock_transfer/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/pos_stock_transfer/static/description/assets/misc/customer-support.png differ diff --git a/pos_stock_transfer/static/description/assets/misc/cybrosys-logo.png b/pos_stock_transfer/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/pos_stock_transfer/static/description/assets/misc/cybrosys-logo.png differ diff --git a/pos_stock_transfer/static/description/assets/misc/features.png b/pos_stock_transfer/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/misc/features.png differ diff --git a/pos_stock_transfer/static/description/assets/misc/logo.png b/pos_stock_transfer/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/pos_stock_transfer/static/description/assets/misc/logo.png differ diff --git a/pos_stock_transfer/static/description/assets/misc/pictures.png b/pos_stock_transfer/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/misc/pictures.png differ diff --git a/pos_stock_transfer/static/description/assets/misc/pie-chart.png b/pos_stock_transfer/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/misc/pie-chart.png differ diff --git a/pos_stock_transfer/static/description/assets/misc/right-arrow.png b/pos_stock_transfer/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/misc/right-arrow.png differ diff --git a/pos_stock_transfer/static/description/assets/misc/star.png b/pos_stock_transfer/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/pos_stock_transfer/static/description/assets/misc/star.png differ diff --git a/pos_stock_transfer/static/description/assets/misc/support.png b/pos_stock_transfer/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/misc/support.png differ diff --git a/pos_stock_transfer/static/description/assets/misc/whatsapp.png b/pos_stock_transfer/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/misc/whatsapp.png differ diff --git a/pos_stock_transfer/static/description/assets/modules/m1.png b/pos_stock_transfer/static/description/assets/modules/m1.png new file mode 100644 index 000000000..5ecc4d883 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/modules/m1.png differ diff --git a/pos_stock_transfer/static/description/assets/modules/m2.png b/pos_stock_transfer/static/description/assets/modules/m2.png new file mode 100644 index 000000000..89ff6c635 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/modules/m2.png differ diff --git a/pos_stock_transfer/static/description/assets/modules/m3.png b/pos_stock_transfer/static/description/assets/modules/m3.png new file mode 100644 index 000000000..fd1f87699 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/modules/m3.png differ diff --git a/pos_stock_transfer/static/description/assets/modules/m4.png b/pos_stock_transfer/static/description/assets/modules/m4.png new file mode 100644 index 000000000..5514bb8d4 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/modules/m4.png differ diff --git a/pos_stock_transfer/static/description/assets/modules/m5.png b/pos_stock_transfer/static/description/assets/modules/m5.png new file mode 100644 index 000000000..38ea1f663 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/modules/m5.png differ diff --git a/pos_stock_transfer/static/description/assets/modules/m6.png b/pos_stock_transfer/static/description/assets/modules/m6.png new file mode 100644 index 000000000..f52b99646 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/modules/m6.png differ diff --git a/pos_stock_transfer/static/description/assets/screenshots/1.png b/pos_stock_transfer/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..0de09b272 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/screenshots/1.png differ diff --git a/pos_stock_transfer/static/description/assets/screenshots/2.png b/pos_stock_transfer/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..781074ac1 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/screenshots/2.png differ diff --git a/pos_stock_transfer/static/description/assets/screenshots/3.png b/pos_stock_transfer/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..9a691c8db Binary files /dev/null and b/pos_stock_transfer/static/description/assets/screenshots/3.png differ diff --git a/pos_stock_transfer/static/description/assets/screenshots/4.png b/pos_stock_transfer/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..a1e10cb30 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/screenshots/4.png differ diff --git a/pos_stock_transfer/static/description/assets/screenshots/5.png b/pos_stock_transfer/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..52513a467 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/screenshots/5.png differ diff --git a/pos_stock_transfer/static/description/assets/screenshots/v16-hero.gif b/pos_stock_transfer/static/description/assets/screenshots/v16-hero.gif new file mode 100644 index 000000000..fa76ea2d7 Binary files /dev/null and b/pos_stock_transfer/static/description/assets/screenshots/v16-hero.gif differ diff --git a/pos_stock_transfer/static/description/banner.jpg b/pos_stock_transfer/static/description/banner.jpg new file mode 100644 index 000000000..69bcb5eaf Binary files /dev/null and b/pos_stock_transfer/static/description/banner.jpg differ diff --git a/pos_stock_transfer/static/description/cybro_logo.png b/pos_stock_transfer/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/pos_stock_transfer/static/description/cybro_logo.png differ diff --git a/pos_stock_transfer/static/description/icon.png b/pos_stock_transfer/static/description/icon.png new file mode 100644 index 000000000..1bc4dba7f Binary files /dev/null and b/pos_stock_transfer/static/description/icon.png differ diff --git a/pos_stock_transfer/static/description/index.html b/pos_stock_transfer/static/description/index.html new file mode 100644 index 000000000..2104de89d --- /dev/null +++ b/pos_stock_transfer/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/pos_stock_transfer/static/src/js/stock_transfer.js b/pos_stock_transfer/static/src/js/stock_transfer.js new file mode 100644 index 000000000..7d7b40b67 --- /dev/null +++ b/pos_stock_transfer/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 { + async onClick(){ + // This will show a popup to transfer stock with selected products and customer + 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); \ No newline at end of file diff --git a/pos_stock_transfer/static/src/js/transfer_create_popup.js b/pos_stock_transfer/static/src/js/transfer_create_popup.js new file mode 100644 index 000000000..08ace3f2e --- /dev/null +++ b/pos_stock_transfer/static/src/js/transfer_create_popup.js @@ -0,0 +1,50 @@ +/** @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 { + + _clickPicking(ev){ + // This hide and show destination and source location based on the picking type selected + var type = ev.target.selectedOptions[0].dataset.type + this.el.querySelector('#dest_tr').show(); + this.el.querySelector('#source_tr').show(); + if (type == 'incoming') { + this.el.querySelector('#source_tr').hide() + } + else if (type == 'outgoing') { + this.el.querySelector('#dest_tr').hide() + } + } + async Create(){ + // This get all the values you selected in the popup and transfer the stock by passing data backend. + 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':[]} + for(var i=0; i + + + + +
+ Stock Transfer +
+
+
+
diff --git a/pos_stock_transfer/static/src/xml/transfer_create_popup.xml b/pos_stock_transfer/static/src/xml/transfer_create_popup.xml new file mode 100644 index 000000000..e67f8aa16 --- /dev/null +++ b/pos_stock_transfer/static/src/xml/transfer_create_popup.xml @@ -0,0 +1,93 @@ + + + diff --git a/pos_stock_transfer/static/src/xml/transfer_ref_popup.xml b/pos_stock_transfer/static/src/xml/transfer_ref_popup.xml new file mode 100644 index 000000000..92274436b --- /dev/null +++ b/pos_stock_transfer/static/src/xml/transfer_ref_popup.xml @@ -0,0 +1,20 @@ + + + diff --git a/pos_stock_transfer/views/res_config_settings_views.xml b/pos_stock_transfer/views/res_config_settings_views.xml new file mode 100644 index 000000000..8939b4f52 --- /dev/null +++ b/pos_stock_transfer/views/res_config_settings_views.xml @@ -0,0 +1,30 @@ + + + + + res.config.settings.view.form.inherit.pos.stock.transfer + + res.config.settings + + + +
+

Stock Transfer

+
+
+ +
+
+
+
+
+
+
+
+
\ No newline at end of file