diff --git a/product_stock_details/README.rst b/product_stock_details/README.rst new file mode 100644 index 000000000..517666b4c --- /dev/null +++ b/product_stock_details/README.rst @@ -0,0 +1,39 @@ +Product Stock Details +===================== +This module is developed to list and print the product stock by location. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: VYSHNAV AR @cybrosys + +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/product_stock_details/__init__.py b/product_stock_details/__init__.py new file mode 100644 index 000000000..699b8bc32 --- /dev/null +++ b/product_stock_details/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 models +from . import report diff --git a/product_stock_details/__manifest__.py b/product_stock_details/__manifest__.py new file mode 100644 index 000000000..17ca79f61 --- /dev/null +++ b/product_stock_details/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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': "Product Stock Details", + 'version': '15.0.1.0.0', + 'summary': """List And Print the Stock Details of Product""", + 'description': """This module has been developed for listing and printing product stock by location. + Get an overview of Available, Forecasted, Incoming and Outgoing quantity of product from the + product form. The user can print these details in a PDF report.""", + 'author': "Cybrosys Techno Solutions", + 'website': "https://www.cybrosys.com", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'category': 'Inventory', + 'depends': ['stock', 'account'], + 'data': [ + 'report/report.xml', + 'report/template.xml', + 'views/product_view.xml', + ], + 'license': 'LGPL-3', + 'images': ['static/description/banner.png'], + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/product_stock_details/doc/RELEASE_NOTES.md b/product_stock_details/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..be41867b9 --- /dev/null +++ b/product_stock_details/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 03.03.2023 +#### Version 15.0.1.0.0 +##### ADD +- Initial Commit for product_stock_details diff --git a/product_stock_details/models/__init__.py b/product_stock_details/models/__init__.py new file mode 100644 index 000000000..0bd1994cd --- /dev/null +++ b/product_stock_details/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 product +from . import stock_quant diff --git a/product_stock_details/models/product.py b/product_stock_details/models/product.py new file mode 100644 index 000000000..ec8fbb6ee --- /dev/null +++ b/product_stock_details/models/product.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 fields, models + + +class ProductProduct(models.Model): + _inherit = 'product.product' + + product_stock_location_ids = fields.One2many('stock.quant', 'product_id') + + def get_wo_description(self): + return self.env.ref( + 'product_stock_details.action_report_followup_community').report_action( + self, data='') diff --git a/product_stock_details/models/stock_quant.py b/product_stock_details/models/stock_quant.py new file mode 100755 index 000000000..3391d31e8 --- /dev/null +++ b/product_stock_details/models/stock_quant.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 models, fields + + +class ProductStockLocation(models.Model): + _inherit = "stock.quant" + + virtual_available = fields.Float('Forecasted Quantity', + compute="_compute_location_qty") + incoming_qty = fields.Float('Incoming', compute="_compute_location_qty") + outgoing_qty = fields.Float('Outgoing', compute="_compute_location_qty") + + def _compute_location_qty(self): + """Method to compute the quantity of incoming and outgoing stock.""" + for rec in self: + product = rec.product_id + rec.virtual_available = product.with_context( + {'location': rec.location_id.id}).virtual_available + rec.incoming_qty = product.with_context( + {'location': rec.location_id.id}).incoming_qty + rec.outgoing_qty = product.with_context( + {'location': rec.location_id.id}).outgoing_qty diff --git a/product_stock_details/report/__init__.py b/product_stock_details/report/__init__.py new file mode 100644 index 000000000..3ebc3d03f --- /dev/null +++ b/product_stock_details/report/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 report diff --git a/product_stock_details/report/report.py b/product_stock_details/report/report.py new file mode 100644 index 000000000..7a37eb9a5 --- /dev/null +++ b/product_stock_details/report/report.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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, models + + +class CustomerFollowupCommunity(models.AbstractModel): + _name = 'report.product_stock_details.report_followup_template' + + @api.model + def _get_report_values(self, docids, _): + """Method for getting report values.""" + docs = self.env.context.get('active_ids') + if docs is None: + docs = docids + return { + 'data': self.env['product.product'].search([('id', 'in', docs)]) + } diff --git a/product_stock_details/report/report.xml b/product_stock_details/report/report.xml new file mode 100644 index 000000000..4803642a4 --- /dev/null +++ b/product_stock_details/report/report.xml @@ -0,0 +1,10 @@ + + + + Stock Details + product.product + qweb-pdf + product_stock_details.report_followup_template + product_stock_details.report_followup_template + + \ No newline at end of file diff --git a/product_stock_details/report/template.xml b/product_stock_details/report/template.xml new file mode 100644 index 000000000..ddfc6a9b1 --- /dev/null +++ b/product_stock_details/report/template.xml @@ -0,0 +1,118 @@ + + + + \ No newline at end of file diff --git a/product_stock_details/static/description/assets/icons/check.png b/product_stock_details/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/product_stock_details/static/description/assets/icons/check.png differ diff --git a/product_stock_details/static/description/assets/icons/chevron.png b/product_stock_details/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/product_stock_details/static/description/assets/icons/chevron.png differ diff --git a/product_stock_details/static/description/assets/icons/cogs.png b/product_stock_details/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/product_stock_details/static/description/assets/icons/cogs.png differ diff --git a/product_stock_details/static/description/assets/icons/consultation.png b/product_stock_details/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/product_stock_details/static/description/assets/icons/consultation.png differ diff --git a/product_stock_details/static/description/assets/icons/ecom-black.png b/product_stock_details/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/product_stock_details/static/description/assets/icons/ecom-black.png differ diff --git a/product_stock_details/static/description/assets/icons/education-black.png b/product_stock_details/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/product_stock_details/static/description/assets/icons/education-black.png differ diff --git a/product_stock_details/static/description/assets/icons/hotel-black.png b/product_stock_details/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/product_stock_details/static/description/assets/icons/hotel-black.png differ diff --git a/product_stock_details/static/description/assets/icons/license.png b/product_stock_details/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/product_stock_details/static/description/assets/icons/license.png differ diff --git a/product_stock_details/static/description/assets/icons/lifebuoy.png b/product_stock_details/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/product_stock_details/static/description/assets/icons/lifebuoy.png differ diff --git a/product_stock_details/static/description/assets/icons/logo.png b/product_stock_details/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/product_stock_details/static/description/assets/icons/logo.png differ diff --git a/product_stock_details/static/description/assets/icons/manufacturing-black.png b/product_stock_details/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/product_stock_details/static/description/assets/icons/manufacturing-black.png differ diff --git a/product_stock_details/static/description/assets/icons/pos-black.png b/product_stock_details/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/product_stock_details/static/description/assets/icons/pos-black.png differ diff --git a/product_stock_details/static/description/assets/icons/puzzle.png b/product_stock_details/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/product_stock_details/static/description/assets/icons/puzzle.png differ diff --git a/product_stock_details/static/description/assets/icons/restaurant-black.png b/product_stock_details/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/product_stock_details/static/description/assets/icons/restaurant-black.png differ diff --git a/product_stock_details/static/description/assets/icons/service-black.png b/product_stock_details/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/product_stock_details/static/description/assets/icons/service-black.png differ diff --git a/product_stock_details/static/description/assets/icons/trading-black.png b/product_stock_details/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/product_stock_details/static/description/assets/icons/trading-black.png differ diff --git a/product_stock_details/static/description/assets/icons/training.png b/product_stock_details/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/product_stock_details/static/description/assets/icons/training.png differ diff --git a/product_stock_details/static/description/assets/icons/update.png b/product_stock_details/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/product_stock_details/static/description/assets/icons/update.png differ diff --git a/product_stock_details/static/description/assets/icons/user.png b/product_stock_details/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/product_stock_details/static/description/assets/icons/user.png differ diff --git a/product_stock_details/static/description/assets/icons/wrench.png b/product_stock_details/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/product_stock_details/static/description/assets/icons/wrench.png differ diff --git a/product_stock_details/static/description/assets/modules/budget_image.png b/product_stock_details/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..b50130c7d Binary files /dev/null and b/product_stock_details/static/description/assets/modules/budget_image.png differ diff --git a/product_stock_details/static/description/assets/modules/credit_image.png b/product_stock_details/static/description/assets/modules/credit_image.png new file mode 100644 index 000000000..3ad04ecfd Binary files /dev/null and b/product_stock_details/static/description/assets/modules/credit_image.png differ diff --git a/product_stock_details/static/description/assets/modules/employee_image.png b/product_stock_details/static/description/assets/modules/employee_image.png new file mode 100644 index 000000000..30ad58232 Binary files /dev/null and b/product_stock_details/static/description/assets/modules/employee_image.png differ diff --git a/product_stock_details/static/description/assets/modules/export_image.png b/product_stock_details/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..492980ad0 Binary files /dev/null and b/product_stock_details/static/description/assets/modules/export_image.png differ diff --git a/product_stock_details/static/description/assets/modules/gantt_image.png b/product_stock_details/static/description/assets/modules/gantt_image.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/product_stock_details/static/description/assets/modules/gantt_image.png differ diff --git a/product_stock_details/static/description/assets/modules/quotation_image.png b/product_stock_details/static/description/assets/modules/quotation_image.png new file mode 100644 index 000000000..499b1a72f Binary files /dev/null and b/product_stock_details/static/description/assets/modules/quotation_image.png differ diff --git a/product_stock_details/static/description/assets/screenshots/hero.png b/product_stock_details/static/description/assets/screenshots/hero.png new file mode 100644 index 000000000..9f525b594 Binary files /dev/null and b/product_stock_details/static/description/assets/screenshots/hero.png differ diff --git a/product_stock_details/static/description/assets/screenshots/ss_2.png b/product_stock_details/static/description/assets/screenshots/ss_2.png new file mode 100644 index 000000000..c0c8a3ec2 Binary files /dev/null and b/product_stock_details/static/description/assets/screenshots/ss_2.png differ diff --git a/product_stock_details/static/description/assets/screenshots/ss_3.png b/product_stock_details/static/description/assets/screenshots/ss_3.png new file mode 100644 index 000000000..33345ff1b Binary files /dev/null and b/product_stock_details/static/description/assets/screenshots/ss_3.png differ diff --git a/product_stock_details/static/description/assets/screenshots/ss_4.png b/product_stock_details/static/description/assets/screenshots/ss_4.png new file mode 100644 index 000000000..8c31cc097 Binary files /dev/null and b/product_stock_details/static/description/assets/screenshots/ss_4.png differ diff --git a/product_stock_details/static/description/banner.png b/product_stock_details/static/description/banner.png new file mode 100644 index 000000000..70d16fefc Binary files /dev/null and b/product_stock_details/static/description/banner.png differ diff --git a/product_stock_details/static/description/icon.png b/product_stock_details/static/description/icon.png new file mode 100644 index 000000000..51526a66b Binary files /dev/null and b/product_stock_details/static/description/icon.png differ diff --git a/product_stock_details/static/description/index.html b/product_stock_details/static/description/index.html new file mode 100644 index 000000000..66c96d0be --- /dev/null +++ b/product_stock_details/static/description/index.html @@ -0,0 +1,563 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Product Stock Details

+

+ List and print product stock by location. +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ This module has been developed for listing and printing product stock by location. Get an overview of + Available, Forecasted, Incoming and Outgoing quantity of product from the product form. The user can + print these details in a PDF report.

+ +
+
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Community & Enterprise Support

+

+ Available in Odoo 15.0 Community and Enterprise.

+
+
+
+
+ +
+
+

+ Get product quantity reviews for each stock location from the product form.

+
+
+ +
+
+ +
+
+

+ Print PDF report from product.

+
+
+ +
+ +
+
+

+ Screenshots +

+
+
+

+ Stock By Location

+

+ Go to Product Variants > Inventory tab

+ +
+ +
+

+ Print PDF option

+

+ User can print the details. +

+ +
+ +
+

+ PDF Report

+ +
+ +
+ + +
+
+

Suggested 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

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

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/product_stock_details/views/product_view.xml b/product_stock_details/views/product_view.xml new file mode 100644 index 000000000..dd014b5c6 --- /dev/null +++ b/product_stock_details/views/product_view.xml @@ -0,0 +1,27 @@ + + + + product.product.product_stock_details.view + + product.product + + + + +