diff --git a/inventory_move_mini_dashboard/README.rst b/inventory_move_mini_dashboard/README.rst new file mode 100644 index 000000000..bde5ac345 --- /dev/null +++ b/inventory_move_mini_dashboard/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/license-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: (V17) Vishnu KP, 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..12a005fe1 --- /dev/null +++ b/inventory_move_mini_dashboard/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu KP () +# +# 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..cb09e0d0d --- /dev/null +++ b/inventory_move_mini_dashboard/__manifest__.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu KP () +# +# 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': '17.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.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto-install': False, + 'application': 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..976428b1e --- /dev/null +++ b/inventory_move_mini_dashboard/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 31.01.2024 +#### Version 17.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..3600036cc --- /dev/null +++ b/inventory_move_mini_dashboard/model/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu KP () +# +# 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..fea7091a8 --- /dev/null +++ b/inventory_move_mini_dashboard/model/stock_move.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu KP () +# +# 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..19336264d --- /dev/null +++ b/inventory_move_mini_dashboard/model/stock_picking.py @@ -0,0 +1,72 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu KP () +# +# 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/capture (1).png b/inventory_move_mini_dashboard/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/capture (1).png differ 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/chevron.png b/inventory_move_mini_dashboard/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/chevron.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/img.png b/inventory_move_mini_dashboard/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/img.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/photo-capture.png b/inventory_move_mini_dashboard/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/icons/photo-capture.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/Cybrosys R.png b/inventory_move_mini_dashboard/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/misc/Cybrosys R.png differ diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/email.svg b/inventory_move_mini_dashboard/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/inventory_move_mini_dashboard/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/phone.svg b/inventory_move_mini_dashboard/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/inventory_move_mini_dashboard/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/star (1) 2.svg b/inventory_move_mini_dashboard/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/inventory_move_mini_dashboard/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/support (1) 1.svg b/inventory_move_mini_dashboard/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/inventory_move_mini_dashboard/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/support-email.svg b/inventory_move_mini_dashboard/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/inventory_move_mini_dashboard/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/tick-mark.svg b/inventory_move_mini_dashboard/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/inventory_move_mini_dashboard/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/whatsapp 1.svg b/inventory_move_mini_dashboard/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/inventory_move_mini_dashboard/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/inventory_move_mini_dashboard/static/description/assets/misc/whatsapp.svg b/inventory_move_mini_dashboard/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/inventory_move_mini_dashboard/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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..0e311ca87 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..a0ac2d840 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..cb17cf612 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.jpg b/inventory_move_mini_dashboard/static/description/assets/modules/4.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/4.jpg 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..8513873ea 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.jpg b/inventory_move_mini_dashboard/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..73781cf50 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/modules/6.jpg differ diff --git a/inventory_move_mini_dashboard/static/description/assets/screenshots/dash.png b/inventory_move_mini_dashboard/static/description/assets/screenshots/dash.png new file mode 100644 index 000000000..db9146830 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/assets/screenshots/dash.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..d8cf5cd0e 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..61e5c4625 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.jpg b/inventory_move_mini_dashboard/static/description/banner.jpg new file mode 100644 index 000000000..c183f0912 Binary files /dev/null and b/inventory_move_mini_dashboard/static/description/banner.jpg 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..f8438923a 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..2b45a7a90 --- /dev/null +++ b/inventory_move_mini_dashboard/static/description/index.html @@ -0,0 +1,556 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Inventory Move Mini Dashboard

+

+ Inventory Move Mini Dashboard for Odoo 17 Community & Enterprise Edition. +

+
+ +
+
+
+
+
+

Key Highlights +

+
+
+
+
+
+ +
+
+

Odoo 17 Community & Enterprise Edition Support.

+

Inventory Move Mini Dashboard in Odoo 17 Community & Enterprise Edition +

+
+
+
+
+
+
+ +
+
+

Count of Transfers

+

Count of Transfer in Current Month +

+
+
+
+
+
+
+ +
+
+

Count of Product

+

Count of product moves of previous week +

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

+ Transfer Home Page.

+
+
+
+
+
+
+ +
+
+

+ Product Move Report Page.

+
+
+
+
+
+
+
    +
  • + Create and manage Budgetary Positions. +
  • +
  • + Manage budgets with analytic accounts. +
  • +
  • + Budgetary planning with planned amount on each Analytic Account. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:31th January 2024 +
+

+ + Initial Commit for Inventory Move Mini Dashboard.

+
+
+
+
+
+
+
+

Related Products

+
+
+ +
+
+

Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686
+
+
+
+
+
+
+
+
+ + + + + + 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..d49374bfe --- /dev/null +++ b/inventory_move_mini_dashboard/static/src/views/stock_move_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 { 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..21dfc98ad --- /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..e0fbe11f5 --- /dev/null +++ b/inventory_move_mini_dashboard/views/stock_picking_views.xml @@ -0,0 +1,31 @@ + + + + + + stock.picking.view.tree.inherit.inventory.move.mini.dashboard + + stock.picking + + + + stock_picking_dashboard_list + + + + + + + + stock.picking.view.search.inherit.inventory.move.mini.dashboard + + stock.picking + + + + + + + +