diff --git a/product_catalogue/README.rst b/product_catalogue/README.rst new file mode 100644 index 000000000..50e2685b3 --- /dev/null +++ b/product_catalogue/README.rst @@ -0,0 +1,42 @@ +Product Catalogue +================= +* Enables the option for printing the catalogue for single/multi products +* Print Catalogue for Single product from the E-commerce website + +Installation +============ +- www.odoo.com/documentation/14.0/setup/install.html +- Install our custom addon + +License +------- +GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) +(http://www.gnu.org/licenses/agpl.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: + Sayooj A O + V14 Susmitha + +Contacts +-------- +* Mail Contact : odoo@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 +========== +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ diff --git a/product_catalogue/__init__.py b/product_catalogue/__init__.py new file mode 100644 index 000000000..0b9bdc108 --- /dev/null +++ b/product_catalogue/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import report +from . import controllers + diff --git a/product_catalogue/__manifest__.py b/product_catalogue/__manifest__.py new file mode 100644 index 000000000..ea3f323d9 --- /dev/null +++ b/product_catalogue/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +{ + 'name': "Product Catalogue", + 'version': '14.0.1.0.0', + 'summary': """This module helps to print the catalogue of + the single/multi products from the backend and single product and its variant + from the E-commerce website + including details like images and specifications""", + 'description': """This module helps to print the catalogue of + the single/multi products from the backend and single product and its variant + from the E-commerce website + including details like images and specifications""", + 'category': 'Inventory', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'sequence': 1, + 'depends': ['base', 'stock', 'website_sale'], + 'data': [ + 'views/report_button_website.xml', + 'report/product_catalog_report.xml', + 'report/product_catalog_template.xml', + ], + 'images': ['static/description/banner.png'], + 'license': "AGPL-3", + 'installable': True, + 'application': True, +} diff --git a/product_catalogue/controllers/__init__.py b/product_catalogue/controllers/__init__.py new file mode 100644 index 000000000..5fdeecc0b --- /dev/null +++ b/product_catalogue/controllers/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import main diff --git a/product_catalogue/controllers/main.py b/product_catalogue/controllers/main.py new file mode 100644 index 000000000..13d3a5022 --- /dev/null +++ b/product_catalogue/controllers/main.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import http +from odoo.http import request + + +class CataloguePrint(http.Controller): + """This class includes the function which fetch the details + about the corresponding product and print catalogue in + PDF format""" + + @http.route(['/report/pdf/catalogue_download'], type='http', auth='public') + def download_catalogue(self, product_id): + """In this function we are calling the report template + of the corresponding product and + downloads the catalogue in pdf format""" + + pdf, _ = request.env.ref('product_catalogue.action_report_product_catalog').sudo()._render_qweb_pdf([int(product_id)]) + pdfhttpheaders = [('Content-Type', 'application/pdf'), ('Content-Length', len(pdf)), + ('Content-Disposition', 'catalogue' + '.pdf;')] + return request.make_response(pdf, headers=pdfhttpheaders) diff --git a/product_catalogue/doc/RELEASE_NOTES.md b/product_catalogue/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..be9be6556 --- /dev/null +++ b/product_catalogue/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 26.07.2021 +#### Version 14.0.1.0.0 +##### ADD +- Initial commit for product_catalogue diff --git a/product_catalogue/report/__init__.py b/product_catalogue/report/__init__.py new file mode 100644 index 000000000..32f24acbc --- /dev/null +++ b/product_catalogue/report/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import product_catalog diff --git a/product_catalogue/report/product_catalog.py b/product_catalogue/report/product_catalog.py new file mode 100644 index 000000000..6da7c55f6 --- /dev/null +++ b/product_catalogue/report/product_catalog.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import api, models + + +class ProductCatalogueReport(models.AbstractModel): + """ Model to contain the information related to printing the information about + the products""" + + _name = "report.product_catalogue.report_product_catalog" + + + @api.model + def _get_report_values(self, docids, data=None): + """Get the report values. + :param : model + :param : docids + :param : data + :return : data + :return : Product template records""" + product = self.env['product.template'].browse(docids) + print("product............", product) + return { + 'data': data, + 'docs': product, + } + + # @api.model + # def get_website_report_values(self, variant_ids, product_id): + # print(variant_ids, product_id, "self") + # + # product_id = self.env['product.template'].search([('id', '=', product_id)]) + # variant_ids = self.env['product.product'].search([('id', '=', variant_ids)]) + # print(product_id, variant_ids, "self") + # return { + # 'variants': variant_ids, + # 'product': product_id, + # } + diff --git a/product_catalogue/report/product_catalog_report.xml b/product_catalogue/report/product_catalog_report.xml new file mode 100644 index 000000000..61d4695ec --- /dev/null +++ b/product_catalogue/report/product_catalog_report.xml @@ -0,0 +1,11 @@ + + + + \ No newline at end of file diff --git a/product_catalogue/report/product_catalog_template.xml b/product_catalogue/report/product_catalog_template.xml new file mode 100644 index 000000000..776aa1029 --- /dev/null +++ b/product_catalogue/report/product_catalog_template.xml @@ -0,0 +1,181 @@ + + + + \ No newline at end of file diff --git a/product_catalogue/static/description/assets/arrow-circle-black.png b/product_catalogue/static/description/assets/arrow-circle-black.png new file mode 100644 index 000000000..e8948eb73 Binary files /dev/null and b/product_catalogue/static/description/assets/arrow-circle-black.png differ diff --git a/product_catalogue/static/description/assets/arrow-circle-magenta.png b/product_catalogue/static/description/assets/arrow-circle-magenta.png new file mode 100644 index 000000000..91c3c11b8 Binary files /dev/null and b/product_catalogue/static/description/assets/arrow-circle-magenta.png differ diff --git a/product_catalogue/static/description/assets/hero.png b/product_catalogue/static/description/assets/hero.png new file mode 100644 index 000000000..151cc760e Binary files /dev/null and b/product_catalogue/static/description/assets/hero.png differ diff --git a/product_catalogue/static/description/assets/icons/cogs.png b/product_catalogue/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/product_catalogue/static/description/assets/icons/cogs.png differ diff --git a/product_catalogue/static/description/assets/icons/consultation.png b/product_catalogue/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/product_catalogue/static/description/assets/icons/consultation.png differ diff --git a/product_catalogue/static/description/assets/icons/ecom-black.png b/product_catalogue/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/product_catalogue/static/description/assets/icons/ecom-black.png differ diff --git a/product_catalogue/static/description/assets/icons/education-black.png b/product_catalogue/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/product_catalogue/static/description/assets/icons/education-black.png differ diff --git a/product_catalogue/static/description/assets/icons/hotel-black.png b/product_catalogue/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/product_catalogue/static/description/assets/icons/hotel-black.png differ diff --git a/product_catalogue/static/description/assets/icons/license.png b/product_catalogue/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/product_catalogue/static/description/assets/icons/license.png differ diff --git a/product_catalogue/static/description/assets/icons/lifebuoy.png b/product_catalogue/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/product_catalogue/static/description/assets/icons/lifebuoy.png differ diff --git a/product_catalogue/static/description/assets/icons/manufacturing-black.png b/product_catalogue/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/product_catalogue/static/description/assets/icons/manufacturing-black.png differ diff --git a/product_catalogue/static/description/assets/icons/pos-black.png b/product_catalogue/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/product_catalogue/static/description/assets/icons/pos-black.png differ diff --git a/product_catalogue/static/description/assets/icons/puzzle.png b/product_catalogue/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/product_catalogue/static/description/assets/icons/puzzle.png differ diff --git a/product_catalogue/static/description/assets/icons/restaurant-black.png b/product_catalogue/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/product_catalogue/static/description/assets/icons/restaurant-black.png differ diff --git a/product_catalogue/static/description/assets/icons/service-black.png b/product_catalogue/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/product_catalogue/static/description/assets/icons/service-black.png differ diff --git a/product_catalogue/static/description/assets/icons/trading-black.png b/product_catalogue/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/product_catalogue/static/description/assets/icons/trading-black.png differ diff --git a/product_catalogue/static/description/assets/icons/training.png b/product_catalogue/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/product_catalogue/static/description/assets/icons/training.png differ diff --git a/product_catalogue/static/description/assets/icons/update.png b/product_catalogue/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/product_catalogue/static/description/assets/icons/update.png differ diff --git a/product_catalogue/static/description/assets/icons/user.png b/product_catalogue/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/product_catalogue/static/description/assets/icons/user.png differ diff --git a/product_catalogue/static/description/assets/icons/wrench.png b/product_catalogue/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/product_catalogue/static/description/assets/icons/wrench.png differ diff --git a/product_catalogue/static/description/assets/modules/barcode_scanning.png b/product_catalogue/static/description/assets/modules/barcode_scanning.png new file mode 100644 index 000000000..01a9e99f7 Binary files /dev/null and b/product_catalogue/static/description/assets/modules/barcode_scanning.png differ diff --git a/product_catalogue/static/description/assets/modules/barcode_scanning_support.png b/product_catalogue/static/description/assets/modules/barcode_scanning_support.png new file mode 100644 index 000000000..dbf3f71e9 Binary files /dev/null and b/product_catalogue/static/description/assets/modules/barcode_scanning_support.png differ diff --git a/product_catalogue/static/description/assets/modules/dynamic_financial_report.jpg b/product_catalogue/static/description/assets/modules/dynamic_financial_report.jpg new file mode 100644 index 000000000..c79986ab0 Binary files /dev/null and b/product_catalogue/static/description/assets/modules/dynamic_financial_report.jpg differ diff --git a/product_catalogue/static/description/assets/modules/invoice.jpg b/product_catalogue/static/description/assets/modules/invoice.jpg new file mode 100644 index 000000000..26fb9d33f Binary files /dev/null and b/product_catalogue/static/description/assets/modules/invoice.jpg differ diff --git a/product_catalogue/static/description/assets/modules/support_package.jpg b/product_catalogue/static/description/assets/modules/support_package.jpg new file mode 100644 index 000000000..5f7084b86 Binary files /dev/null and b/product_catalogue/static/description/assets/modules/support_package.jpg differ diff --git a/product_catalogue/static/description/assets/modules/whatsapp-mail-messaging.jpg b/product_catalogue/static/description/assets/modules/whatsapp-mail-messaging.jpg new file mode 100644 index 000000000..c7874c7bf Binary files /dev/null and b/product_catalogue/static/description/assets/modules/whatsapp-mail-messaging.jpg differ diff --git a/product_catalogue/static/description/assets/responsive-img.png b/product_catalogue/static/description/assets/responsive-img.png new file mode 100644 index 000000000..3cc559474 Binary files /dev/null and b/product_catalogue/static/description/assets/responsive-img.png differ diff --git a/product_catalogue/static/description/assets/screenshots/Product_catalogue.gif b/product_catalogue/static/description/assets/screenshots/Product_catalogue.gif new file mode 100644 index 000000000..42770fe79 Binary files /dev/null and b/product_catalogue/static/description/assets/screenshots/Product_catalogue.gif differ diff --git a/product_catalogue/static/description/assets/screenshots/pc1.png b/product_catalogue/static/description/assets/screenshots/pc1.png new file mode 100644 index 000000000..2f47dae0d Binary files /dev/null and b/product_catalogue/static/description/assets/screenshots/pc1.png differ diff --git a/product_catalogue/static/description/assets/screenshots/pc2.png b/product_catalogue/static/description/assets/screenshots/pc2.png new file mode 100644 index 000000000..5f23726fd Binary files /dev/null and b/product_catalogue/static/description/assets/screenshots/pc2.png differ diff --git a/product_catalogue/static/description/assets/screenshots/pc3.png b/product_catalogue/static/description/assets/screenshots/pc3.png new file mode 100644 index 000000000..c2b6ab4af Binary files /dev/null and b/product_catalogue/static/description/assets/screenshots/pc3.png differ diff --git a/product_catalogue/static/description/assets/screenshots/pc4.png b/product_catalogue/static/description/assets/screenshots/pc4.png new file mode 100644 index 000000000..0e49a92d0 Binary files /dev/null and b/product_catalogue/static/description/assets/screenshots/pc4.png differ diff --git a/product_catalogue/static/description/assets/screenshots/pc5.png b/product_catalogue/static/description/assets/screenshots/pc5.png new file mode 100644 index 000000000..544035e8e Binary files /dev/null and b/product_catalogue/static/description/assets/screenshots/pc5.png differ diff --git a/product_catalogue/static/description/assets/screenshots/pc6.png b/product_catalogue/static/description/assets/screenshots/pc6.png new file mode 100644 index 000000000..e4ff96a1c Binary files /dev/null and b/product_catalogue/static/description/assets/screenshots/pc6.png differ diff --git a/product_catalogue/static/description/banner.png b/product_catalogue/static/description/banner.png new file mode 100644 index 000000000..a4a82130f Binary files /dev/null and b/product_catalogue/static/description/banner.png differ diff --git a/product_catalogue/static/description/icon.png b/product_catalogue/static/description/icon.png new file mode 100644 index 000000000..834048fbc Binary files /dev/null and b/product_catalogue/static/description/icon.png differ diff --git a/product_catalogue/static/description/index.html b/product_catalogue/static/description/index.html new file mode 100644 index 000000000..31bf85bd0 --- /dev/null +++ b/product_catalogue/static/description/index.html @@ -0,0 +1,640 @@ + +
+
+
+
+

+ Product Catalogue +

+

+ Catalogue report for products. +

+

Key Highlights +

+ +
+
+ +
+
+

+ Enables the option to print single/multi product and its variants catalogue.

+
+
+ +
+
+ +
+
+

+ Enables the option to print product barcode.

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

+ Overview +

+

+ The application lets the vendor to quickly print the catalogue of a single/multi product and its + variants. +

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

+ Features +

+
+
+ +
+
+

+ Available in Odoo 14.0 community edition.

+
+
+ +
+
+ +
+
+

+ Option to print the catalogue of single/multi products.

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

+ SCREENSHOTS +

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

+ Suggested Products +

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

+ Our Services +

+

+ We provide following serivces

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

+ Our Industries +

+

+ Our industry specifics and process segments To solve your bomplex business barriers

+
+ +
+
+ +
+ 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? +

+

+ Do you have any queries regarding our products & services? Let us know

+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ diff --git a/product_catalogue/views/report_button_website.xml b/product_catalogue/views/report_button_website.xml new file mode 100644 index 000000000..ed1ebb15e --- /dev/null +++ b/product_catalogue/views/report_button_website.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/product_catalogue/views/template.xml b/product_catalogue/views/template.xml new file mode 100644 index 000000000..2c2b14025 --- /dev/null +++ b/product_catalogue/views/template.xml @@ -0,0 +1,7 @@ + +