diff --git a/inventory_move_mini_dashboard/README.rst b/inventory_move_mini_dashboard/README.rst new file mode 100644 index 000000000..f81271933 --- /dev/null +++ b/inventory_move_mini_dashboard/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: LGPL-3 + +Inventory Move Mini Dashboard +============================= +A mini dashboard is added to the stock move and stock picking models that gives Inventory Mini Dashboard for Stock Moves and Transfers. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developer: (V16) Mruthul Raj, 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: ``__ diff --git a/inventory_move_mini_dashboard/__init__.py b/inventory_move_mini_dashboard/__init__.py new file mode 100644 index 000000000..694763033 --- /dev/null +++ b/inventory_move_mini_dashboard/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mruthul Raj () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################ +from . import model diff --git a/inventory_move_mini_dashboard/__manifest__.py b/inventory_move_mini_dashboard/__manifest__.py new file mode 100644 index 000000000..925769c2c --- /dev/null +++ b/inventory_move_mini_dashboard/__manifest__.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mruthul Raj () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################ +{ + 'name': 'Inventory Move Mini Dashboard', + 'version': '16.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'Mini Dashboard View for Stock Moves and Transfers', + 'description': 'Module offers a user-friendly mini dashboard for ' + 'stock moves and transfers, providing real-time data ' + 'visualization to efficiently track inventory movement', + 'author': 'Cybrosys Techno Solution', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solution', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'stock'], + 'data': [ + 'views/stock_move_views.xml', + 'views/stock_picking_views.xml' + ], + 'assets': { + 'web.assets_backend': [ + 'inventory_move_mini_dashboard/static/src/views/*.js', + 'inventory_move_mini_dashboard/static/src/**/*.xml', + ]}, + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'application': False, + 'auto-install': False, +} diff --git a/inventory_move_mini_dashboard/doc/RELEASE_NOTES.md b/inventory_move_mini_dashboard/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..91f2c30d0 --- /dev/null +++ b/inventory_move_mini_dashboard/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 02.08.2023 +#### Version 16.0.1.0.0 +#### ADD +- Initial Commit for Inventory Move Mini Dashboard diff --git a/inventory_move_mini_dashboard/model/__init__.py b/inventory_move_mini_dashboard/model/__init__.py new file mode 100644 index 000000000..2bad9d309 --- /dev/null +++ b/inventory_move_mini_dashboard/model/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mruthul Raj () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################ +from . import stock_move, stock_picking diff --git a/inventory_move_mini_dashboard/model/stock_move.py b/inventory_move_mini_dashboard/model/stock_move.py new file mode 100644 index 000000000..1253e2054 --- /dev/null +++ b/inventory_move_mini_dashboard/model/stock_move.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mruthul Raj () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################ +from datetime import timedelta +from odoo import api, fields, models + + +class MiniDashboard(models.Model): + """class for mini passing values to mini dashboard + retrieve_inventory_dashboard function for calculating values """ + _inherit = 'stock.move' + + @api.model + def retrieve_inventory_dashboard(self): + """ This function returns the values to populate the custom dashboard in + the stock move return result which includes the values of + numbers in all stages""" + result = { + 'draft': 0, + 'cancelled': 0, + 'waiting': 0, + 'partially_available': 0, + 'assigned': 0, + 'done': 0, + 'count': 0, + 'average_products': 0, + + } + stock_move = self.env['stock.move'] + last_week = fields.datetime.now() - timedelta(days=7) + stock_moves = stock_move.search( + [('date', '>=', last_week.strftime('%Y-%m-%d %H:%M:%S'))]) + total_qty = sum(move.product_qty for move in stock_move.search([])) + no_moves = len(stock_move.search([])) + if no_moves > 0: + avg_qty = int(total_qty / no_moves) + else: + avg_qty = 0 + result['average_products'] = avg_qty + result['count'] = len(stock_moves) + result['draft'] = stock_move.search_count([('state', '=', 'draft')]) + result['cancelled'] = stock_move.search_count( + [('state', '=', 'cancelled')]) + result['waiting'] = stock_move.search_count( + [('state', 'in', ('waiting', 'confirmed'))]) + result['partially_available'] = stock_move.search_count( + [('state', '=', 'partially_available')]) + result['assigned'] = stock_move.search_count( + [('state', '=', 'assigned')]) + result['done'] = stock_move.search_count([('state', '=', 'done')]) + return result diff --git a/inventory_move_mini_dashboard/model/stock_picking.py b/inventory_move_mini_dashboard/model/stock_picking.py new file mode 100644 index 000000000..438c82cc5 --- /dev/null +++ b/inventory_move_mini_dashboard/model/stock_picking.py @@ -0,0 +1,72 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mruthul Raj () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################ +from odoo import api, fields, models + + +class PickingMiniDashboard(models.Model): + """class for mini passing values to mini dashboard + stock_picking_dashboard function for calculating values + """ + _inherit = 'stock.picking' + + @api.model + def stock_picking_dashboard(self): + """ This function returns the values to populate the custom dashboard in + the stock picking return result which includes the values of + numbers in all stages """ + result = { + 'draft': 0, + 'waiting': 0, + 'assigned': 0, + 'done': 0, + 'receipts': 0, + 'outgoing': 0, + 'internal': 0, + 'cancel': 0 + } + current_date = fields.datetime.now().date() + start_date = current_date.replace(day=1) + domain = [('state', '=', 'done'), + ('picking_type_id.code', '=', 'incoming'), + ('date_done', '>=', start_date) + ] + stock_picking = self.env['stock.picking'] + receipts = stock_picking.search_count(domain) + outgoing = stock_picking.search_count( + [('state', '=', 'done'), ('picking_type_id.code', '=', 'outgoing'), + ('date_done', '>=', start_date)]) + internal = stock_picking.search_count( + [('state', '=', 'done'), ('picking_type_id.code', '=', 'internal'), + ('date_done', '>=', start_date)]) + cancel = stock_picking.search_count( + [('state', '=', 'cancel'), ('date', '>=', start_date)]) + result['cancel'] = cancel + result['internal'] = internal + result['outgoing'] = outgoing + result['receipts'] = receipts + result['draft'] = stock_picking.search_count([('state', '=', 'draft')]) + result['waiting'] = stock_picking.search_count( + [('state', 'in', ('waiting', 'confirmed'))]) + result['done'] = stock_picking.search_count([('state', '=', 'done')]) + result['assigned'] = stock_picking.search_count( + [('state', '=', 'assigned')]) + return result diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/check.png b/inventory_move_mini_dashboard/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/check.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/cogs.png b/inventory_move_mini_dashboard/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/cogs.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/consultation.png b/inventory_move_mini_dashboard/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/consultation.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/ecom-black.png b/inventory_move_mini_dashboard/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/ecom-black.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/education-black.png b/inventory_move_mini_dashboard/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/education-black.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/hotel-black.png b/inventory_move_mini_dashboard/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/hotel-black.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/license.png b/inventory_move_mini_dashboard/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/license.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/lifebuoy.png b/inventory_move_mini_dashboard/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/lifebuoy.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/manufacturing-black.png b/inventory_move_mini_dashboard/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/manufacturing-black.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/pos-black.png b/inventory_move_mini_dashboard/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/pos-black.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/puzzle.png b/inventory_move_mini_dashboard/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/puzzle.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/restaurant-black.png b/inventory_move_mini_dashboard/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/restaurant-black.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/service-black.png b/inventory_move_mini_dashboard/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/service-black.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/trading-black.png b/inventory_move_mini_dashboard/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/trading-black.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/training.png b/inventory_move_mini_dashboard/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/training.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/update.png b/inventory_move_mini_dashboard/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/update.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/user.png b/inventory_move_mini_dashboard/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/user.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/icons/wrench.png b/inventory_move_mini_dashboard/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/wrench.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/categories.png b/inventory_move_mini_dashboard/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/categories.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/check-box.png b/inventory_move_mini_dashboard/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/check-box.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/compass.png b/inventory_move_mini_dashboard/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/compass.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/corporate.png b/inventory_move_mini_dashboard/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/corporate.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/customer-support.png b/inventory_move_mini_dashboard/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/customer-support.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/cybrosys-logo.png b/inventory_move_mini_dashboard/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/cybrosys-logo.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/features.png b/inventory_move_mini_dashboard/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/features.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/logo.png b/inventory_move_mini_dashboard/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/logo.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/pictures.png b/inventory_move_mini_dashboard/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/pictures.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/pie-chart.png b/inventory_move_mini_dashboard/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/pie-chart.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/right-arrow.png b/inventory_move_mini_dashboard/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/right-arrow.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/star.png b/inventory_move_mini_dashboard/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/star.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/support.png b/inventory_move_mini_dashboard/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/support.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/whatsapp.png b/inventory_move_mini_dashboard/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/whatsapp.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/modules/1.png b/inventory_move_mini_dashboard/static/description/assets/modules/1.png new file mode 100644 index 000000000..3415917c2 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/1.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/modules/2.png b/inventory_move_mini_dashboard/static/description/assets/modules/2.png new file mode 100644 index 000000000..31ed46762 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/2.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/modules/3.png b/inventory_move_mini_dashboard/static/description/assets/modules/3.png new file mode 100644 index 000000000..25ed3e0b6 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/3.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/modules/4.png b/inventory_move_mini_dashboard/static/description/assets/modules/4.png new file mode 100644 index 000000000..359d3e4d6 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/4.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/modules/5.gif b/inventory_move_mini_dashboard/static/description/assets/modules/5.gif new file mode 100644 index 000000000..2a5f8e659 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/5.gif differ diff --git a/inventory_move_mini_dashboard/static/description/assets/modules/5.png b/inventory_move_mini_dashboard/static/description/assets/modules/5.png new file mode 100644 index 000000000..3add135c3 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/5.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/modules/6.png b/inventory_move_mini_dashboard/static/description/assets/modules/6.png new file mode 100644 index 000000000..be454ea44 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/6.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/modules/l1.png b/inventory_move_mini_dashboard/static/description/assets/modules/l1.png new file mode 100644 index 000000000..ed175b076 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/l1.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/modules/l2.png b/inventory_move_mini_dashboard/static/description/assets/modules/l2.png new file mode 100644 index 000000000..a3194264c Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/l2.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/modules/l3.png b/inventory_move_mini_dashboard/static/description/assets/modules/l3.png new file mode 100644 index 000000000..e894393ef Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/l3.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/modules/l4.png b/inventory_move_mini_dashboard/static/description/assets/modules/l4.png new file mode 100644 index 000000000..f3c986fc1 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/l4.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/modules/l5.png b/inventory_move_mini_dashboard/static/description/assets/modules/l5.png new file mode 100644 index 000000000..b21837312 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/l5.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/modules/l6.png b/inventory_move_mini_dashboard/static/description/assets/modules/l6.png new file mode 100644 index 000000000..e64a5b55c Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/l6.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/screenshots/dash_2.png b/inventory_move_mini_dashboard/static/description/assets/screenshots/dash_2.png new file mode 100644 index 000000000..368e96992 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/screenshots/dash_2.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/screenshots/hero.gif b/inventory_move_mini_dashboard/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..2a5bce897 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/screenshots/hero.gif differ diff --git a/inventory_move_mini_dashboard/static/description/assets/screenshots/inventory_dash.png b/inventory_move_mini_dashboard/static/description/assets/screenshots/inventory_dash.png new file mode 100644 index 000000000..090e7c183 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/screenshots/inventory_dash.png differ diff --git a/inventory_move_mini_dashboard/static/description/banner.png b/inventory_move_mini_dashboard/static/description/banner.png new file mode 100644 index 000000000..53226e1d8 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/banner.png differ diff --git a/inventory_move_mini_dashboard/static/description/icon.png b/inventory_move_mini_dashboard/static/description/icon.png new file mode 100644 index 000000000..04cab8923 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/icon.png differ diff --git a/inventory_move_mini_dashboard/static/description/index.html b/inventory_move_mini_dashboard/static/description/index.html new file mode 100644 index 000000000..fbd871da9 --- /dev/null +++ b/inventory_move_mini_dashboard/static/description/index.html @@ -0,0 +1,566 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Inventory Move Mini Dashboard

+

Mini Dashboard View for Stock Moves and Transfers +

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

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ This module adds a mini dashboard +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Count of transfer in current month. +
+
+ + Count of product moves of previous week. +
+
+
+
+
+ + Available in Odoo 16. +
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

Transfer Home Page +

+ +
+ +
+

Product Move Report + Page +

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

+ 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/inventory_move_mini_dashboard/static/src/views/stock_move_dashboard.js b/inventory_move_mini_dashboard/static/src/views/stock_move_dashboard.js new file mode 100644 index 000000000..e8a3005fc --- /dev/null +++ b/inventory_move_mini_dashboard/static/src/views/stock_move_dashboard.js @@ -0,0 +1,33 @@ +/** @odoo-module */ +import { useService } from "@web/core/utils/hooks"; + +const { Component, onWillStart } = owl; + +export class StockMoveDashboard extends Component { + setup() { + this.orm = useService("orm"); + this.action = useService("action"); + + onWillStart(async () => { + this.stockmoveData = await this.orm.call( + "stock.move", + "retrieve_inventory_dashboard", + ); + }); + } + /** + * This method clears the current search query and activates + * the filters found in `filter_name` attribute from button pressed + */ + setSearchContext(ev) { + let filter_name = ev.currentTarget.getAttribute("filter_name"); + let filters = filter_name.split(','); + let searchItems = this.env.searchModel.getSearchItems((item) => filters.includes(item.name)); + this.env.searchModel.query = []; + for (const item of searchItems){ + this.env.searchModel.toggleSearchItem(item.id); + } + } +} + +StockMoveDashboard.template = 'stock.StockMoveDashboard' diff --git a/inventory_move_mini_dashboard/static/src/views/stock_move_dashboard_templates.xml b/inventory_move_mini_dashboard/static/src/views/stock_move_dashboard_templates.xml new file mode 100644 index 000000000..d865ad742 --- /dev/null +++ b/inventory_move_mini_dashboard/static/src/views/stock_move_dashboard_templates.xml @@ -0,0 +1,88 @@ + + + + +
+
+
+
+
+ Stock Moves +
+ +
+
+ + + + +
+
+
+
+
+ Moves In Last 7 Days +
+
+ + + +
+
+
+
+ Avg Products Moved Last 7 Days +
+
+ + + +
+
+
+
+
+
+
+ + diff --git a/inventory_move_mini_dashboard/static/src/views/stock_move_list_view.js b/inventory_move_mini_dashboard/static/src/views/stock_move_list_view.js new file mode 100644 index 000000000..322feeb34 --- /dev/null +++ b/inventory_move_mini_dashboard/static/src/views/stock_move_list_view.js @@ -0,0 +1,18 @@ +/** @odoo-module **/ + +import { registry } from "@web/core/registry"; +import { listView } from "@web/views/list/list_view"; +import { ListRenderer } from "@web/views/list/list_renderer"; +import { StockMoveDashboard } from './stock_move_dashboard.js'; +/** + * A renderer for the stock move dashboard list view. + */ +export class StockMoveDashboardRenderer extends ListRenderer {}; + +StockMoveDashboardRenderer.template = 'stock.StockMoveListView'; +StockMoveDashboardRenderer.components= Object.assign({}, ListRenderer.components, {StockMoveDashboard}) +export const StockMoveListView = { + ...listView, + Renderer: StockMoveDashboardRenderer, +}; +registry.category("views").add("stock_move_dashboard_list", StockMoveListView); diff --git a/inventory_move_mini_dashboard/static/src/views/stock_move_list_view_templates.xml b/inventory_move_mini_dashboard/static/src/views/stock_move_list_view_templates.xml new file mode 100644 index 000000000..1e38002cd --- /dev/null +++ b/inventory_move_mini_dashboard/static/src/views/stock_move_list_view_templates.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/inventory_move_mini_dashboard/static/src/views/stock_picking_dashboard.js b/inventory_move_mini_dashboard/static/src/views/stock_picking_dashboard.js new file mode 100644 index 000000000..ebb477d0e --- /dev/null +++ b/inventory_move_mini_dashboard/static/src/views/stock_picking_dashboard.js @@ -0,0 +1,32 @@ +/** @odoo-module */ +import { useService } from "@web/core/utils/hooks"; + +const { Component, onWillStart } = owl; + +export class StockPickingDashboard extends Component { + setup() { + this.orm = useService("orm"); + this.action = useService("action"); + + onWillStart(async () => { + this.stockpickingData = await this.orm.call( + "stock.picking", + "stock_picking_dashboard", + ); + }); + } + /** + * This method clears the current search query and activates + * the filters found in `filter_name` attribute from button pressed + */ + setSearchContext(ev) { + let filter_name = ev.currentTarget.getAttribute("filter_name"); + let filters = filter_name.split(','); + let searchItems = this.env.searchModel.getSearchItems((item) => filters.includes(item.name)); + this.env.searchModel.query = []; + for (const item of searchItems){ + this.env.searchModel.toggleSearchItem(item.id); + } + } +} +StockPickingDashboard.template = 'stock.StockPickingDashboard' diff --git a/inventory_move_mini_dashboard/static/src/views/stock_picking_dashboard_templates.xml b/inventory_move_mini_dashboard/static/src/views/stock_picking_dashboard_templates.xml new file mode 100644 index 000000000..fd355249b --- /dev/null +++ b/inventory_move_mini_dashboard/static/src/views/stock_picking_dashboard_templates.xml @@ -0,0 +1,116 @@ + + + + +
+
+
+ +
+
+ Stock Transfers +
+
+ +
+ + + +
+
+
+ +
+
+ Internal Transfer + (This month) +
+
+ + + +
+
+ +
+
+ Delivery (This month) +
+
+ + + +
+
+
+ +
+
+
+ Received (This month) +
+
+ + + +
+
+ +
+
+ Cancelled (This month) +
+
+ + + +
+
+
+
+
+
+
+ + diff --git a/inventory_move_mini_dashboard/static/src/views/stock_picking_list_view.js b/inventory_move_mini_dashboard/static/src/views/stock_picking_list_view.js new file mode 100644 index 000000000..8800f6e65 --- /dev/null +++ b/inventory_move_mini_dashboard/static/src/views/stock_picking_list_view.js @@ -0,0 +1,17 @@ +/** @odoo-module **/ +import { registry } from "@web/core/registry"; +import { listView } from "@web/views/list/list_view"; +import { ListRenderer } from "@web/views/list/list_renderer"; +import { StockPickingDashboard } from './stock_picking_dashboard.js'; +/** + * Custom renderer that includes the StockPickingDashboard component. + */ +export class StockPickingDashboardRenderer extends ListRenderer {}; + +StockPickingDashboardRenderer.template = 'stock.StockPickingListView'; +StockPickingDashboardRenderer.components= Object.assign({}, ListRenderer.components, {StockPickingDashboard}) +export const StockPickingListView = { + ...listView, + Renderer: StockPickingDashboardRenderer, +}; +registry.category("views").add("stock_picking_dashboard_list", StockPickingListView); diff --git a/inventory_move_mini_dashboard/static/src/views/stock_picking_list_view_templates.xml b/inventory_move_mini_dashboard/static/src/views/stock_picking_list_view_templates.xml new file mode 100644 index 000000000..6fc2718a4 --- /dev/null +++ b/inventory_move_mini_dashboard/static/src/views/stock_picking_list_view_templates.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/inventory_move_mini_dashboard/views/stock_move_views.xml b/inventory_move_mini_dashboard/views/stock_move_views.xml new file mode 100644 index 000000000..de533df38 --- /dev/null +++ b/inventory_move_mini_dashboard/views/stock_move_views.xml @@ -0,0 +1,32 @@ + + + + + + stock.move.view.tree.inherit.inventory.move.mini.dashboard + + stock.move + + + + stock_move_dashboard_list + + + + + + + stock.move.search.inherit.inventory.move.mini.dashboard + + stock.move + + + + + + + + + diff --git a/inventory_move_mini_dashboard/views/stock_picking_views.xml b/inventory_move_mini_dashboard/views/stock_picking_views.xml new file mode 100644 index 000000000..3544f7192 --- /dev/null +++ b/inventory_move_mini_dashboard/views/stock_picking_views.xml @@ -0,0 +1,15 @@ + + + + + stock.picking.view.tree.inherit.inventory.move.mini.dashboard + + stock.picking + + + + stock_picking_dashboard_list + + + +