diff --git a/product_catalogue/README.rst b/product_catalogue/README.rst new file mode 100644 index 000000000..b47372617 --- /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/12.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 + v11 : Sreenath + +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..009bb5581 --- /dev/null +++ b/product_catalogue/__init__.py @@ -0,0 +1,24 @@ +# -*- 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 report +from . import controllers + diff --git a/product_catalogue/__manifest__.py b/product_catalogue/__manifest__.py new file mode 100644 index 000000000..7c1eeaf24 --- /dev/null +++ b/product_catalogue/__manifest__.py @@ -0,0 +1,47 @@ +# -*- 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 . +# +############################################################################# +{ + 'name': "Product Catalogue", + 'version': '11.0.1.0.0', + 'summary': """This module helps to print the catalogue of + the single/multi products from the backend and single product + from the E-commerce website""", + 'description': """This module helps to print the catalogue of + the single/multi products from the backend and single product + 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", + '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': False, +} diff --git a/product_catalogue/controllers/__init__.py b/product_catalogue/controllers/__init__.py new file mode 100644 index 000000000..8b02407b5 --- /dev/null +++ b/product_catalogue/controllers/__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 main diff --git a/product_catalogue/controllers/main.py b/product_catalogue/controllers/main.py new file mode 100644 index 000000000..8339e29a7 --- /dev/null +++ b/product_catalogue/controllers/main.py @@ -0,0 +1,41 @@ +# -*- 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 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..c8525820b --- /dev/null +++ b/product_catalogue/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 30.11.2019 +#### Version 11.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..6ac7cb3b3 --- /dev/null +++ b/product_catalogue/report/product_catalog.py @@ -0,0 +1,44 @@ +# -*- 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 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) + return { + 'data': data, + 'docs': product + } 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..f668a9aaa --- /dev/null +++ b/product_catalogue/report/product_catalog_template.xml @@ -0,0 +1,126 @@ + + + + + + + \ No newline at end of file diff --git a/product_catalogue/static/description/Product_catalogue.gif b/product_catalogue/static/description/Product_catalogue.gif new file mode 100644 index 000000000..42770fe79 Binary files /dev/null and b/product_catalogue/static/description/Product_catalogue.gif differ diff --git a/product_catalogue/static/description/banner.png b/product_catalogue/static/description/banner.png new file mode 100644 index 000000000..749bc47f9 Binary files /dev/null and b/product_catalogue/static/description/banner.png differ diff --git a/product_catalogue/static/description/checked.png b/product_catalogue/static/description/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/product_catalogue/static/description/checked.png differ diff --git a/product_catalogue/static/description/cybrosys.png b/product_catalogue/static/description/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/product_catalogue/static/description/cybrosys.png differ diff --git a/product_catalogue/static/description/icon.png b/product_catalogue/static/description/icon.png new file mode 100644 index 000000000..df2fea217 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..630f6b625 --- /dev/null +++ b/product_catalogue/static/description/index.html @@ -0,0 +1,378 @@ + + +
cybrosys-logo
+ +
+
+
+

Product Catalogue

+

Catalogue report for products.

+
+

Key Highlights

+
    +
  • check Enables the option to print single/multi product catalogue.
  • +
+
+
+
+
+ + + + + + +
+
+
+ + + +
+
+ +

Overview

+
+

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

+
+ +
+ +

Product Catalogue

+
+
    + +
  • + checkAvailable in Odoo 12.0 community edition.
  • + +
  • + checkOption to print the catalogue of single/multi products.
  • +
+
+ + + +
+ +
+

Screenshots

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

Video

+
+

Product Catalogue

+ + +
+ Cybrosys Cover Video +
+ +
+
+ + + +
+
    + + +
+
+ + + + + +
+

Suggested Products

+
+ +
+ + +
+

Our Service

+
+ +
+
+
+

Our Industries

+
+ +
+
+
+ +
+
+

Trading

+

Easily procure and sell your products.

+
+
+
+
+ +
+
+

Manufacturing

+

Plan, track and schedule your operations.

+
+
+
+
+ +
+
+

Restaurant

+

Run your bar or restaurant methodical.

+
+
+
+
+ +
+
+

POS

+

Easy configuring and convivial selling.

+
+
+
+
+ +
+
+

E-commerce & Website

+

Mobile friendly, awe-inspiring product pages.

+
+
+
+
+ +
+
+

Hotel Management

+

An all-inclusive hotel management application.

+
+
+
+
+ +
+
+

Education

+

A Collaborative platform for educational management.

+
+
+
+
+ +
+
+

Service Management

+

Keep track of services and invoice accordingly.

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

Need Any Help?

+
+ +

If you have anything to share with us based on your use of this module, please let us know. We are ready to offer our support.

+
+

Email us

+

odoo@cybrosys.com / info@cybrosys.com

+ +
+
+

Contact Us

+ www.cybrosys.com +
+
+ +
+
+ + +
+
+
+ + + + +
+
+ +
+ + + + + + + + +
+
+
+ + diff --git a/product_catalogue/static/description/inventory_report.png b/product_catalogue/static/description/inventory_report.png new file mode 100644 index 000000000..3a9e7ef9d Binary files /dev/null and b/product_catalogue/static/description/inventory_report.png differ diff --git a/product_catalogue/static/description/inventory_valuation.png b/product_catalogue/static/description/inventory_valuation.png new file mode 100644 index 000000000..8946ee4cc Binary files /dev/null and b/product_catalogue/static/description/inventory_valuation.png differ diff --git a/product_catalogue/static/description/lot_serial_expiry.png b/product_catalogue/static/description/lot_serial_expiry.png new file mode 100644 index 000000000..a039607d3 Binary files /dev/null and b/product_catalogue/static/description/lot_serial_expiry.png differ diff --git a/product_catalogue/static/description/product-catalog-1.png b/product_catalogue/static/description/product-catalog-1.png new file mode 100644 index 000000000..2f47dae0d Binary files /dev/null and b/product_catalogue/static/description/product-catalog-1.png differ diff --git a/product_catalogue/static/description/product-catalog-2.png b/product_catalogue/static/description/product-catalog-2.png new file mode 100644 index 000000000..5f23726fd Binary files /dev/null and b/product_catalogue/static/description/product-catalog-2.png differ diff --git a/product_catalogue/static/description/product-catalog-3.png b/product_catalogue/static/description/product-catalog-3.png new file mode 100644 index 000000000..b8e65bd2c Binary files /dev/null and b/product_catalogue/static/description/product-catalog-3.png differ diff --git a/product_catalogue/static/description/product-catalog-4.png b/product_catalogue/static/description/product-catalog-4.png new file mode 100644 index 000000000..0e49a92d0 Binary files /dev/null and b/product_catalogue/static/description/product-catalog-4.png differ diff --git a/product_catalogue/static/description/product-catalog-5.png b/product_catalogue/static/description/product-catalog-5.png new file mode 100644 index 000000000..544035e8e Binary files /dev/null and b/product_catalogue/static/description/product-catalog-5.png differ diff --git a/product_catalogue/static/description/product-catalog-6.png b/product_catalogue/static/description/product-catalog-6.png new file mode 100644 index 000000000..e4ff96a1c Binary files /dev/null and b/product_catalogue/static/description/product-catalog-6.png differ diff --git a/product_catalogue/static/description/product-catalog-video.png b/product_catalogue/static/description/product-catalog-video.png new file mode 100644 index 000000000..367e3085f Binary files /dev/null and b/product_catalogue/static/description/product-catalog-video.png differ diff --git a/product_catalogue/static/description/remove_orders.png b/product_catalogue/static/description/remove_orders.png new file mode 100644 index 000000000..8096e2708 Binary files /dev/null and b/product_catalogue/static/description/remove_orders.png differ diff --git a/product_catalogue/static/description/scrap_report.png b/product_catalogue/static/description/scrap_report.png new file mode 100644 index 000000000..ffcdb579b Binary files /dev/null and b/product_catalogue/static/description/scrap_report.png differ diff --git a/product_catalogue/static/description/stock_ageing.png b/product_catalogue/static/description/stock_ageing.png new file mode 100644 index 000000000..92effb57b Binary files /dev/null and b/product_catalogue/static/description/stock_ageing.png differ diff --git a/product_catalogue/static/description/stock_move.png b/product_catalogue/static/description/stock_move.png new file mode 100644 index 000000000..c44db3e5d Binary files /dev/null and b/product_catalogue/static/description/stock_move.png differ 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