diff --git a/direct_print_odoo/README.rst b/direct_print_odoo/README.rst new file mode 100644 index 000000000..5445cffef --- /dev/null +++ b/direct_print_odoo/README.rst @@ -0,0 +1,53 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Direct Print +============ +* The Direct Print is a tool that connects Odoo to PrintNode + +Configuration: +-------------- +First you need to install the printnode application. + * Go to www.printnode.com/en/download + * Click on the download button for your operating system. + * Install the printnode application +After that create the apikey.Only one system is logged in at a time with all printers connected +After installing this module, Set your api key and url and check the available printers. +After that when you click the print button it will print the corresponding file and also download the file. +And when you run the module in localhost there might be a chance to getting an access issue. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Lesser General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +Developer:(V17) Gokul P I , 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/direct_print_odoo/__init__.py b/direct_print_odoo/__init__.py new file mode 100644 index 000000000..8637396cb --- /dev/null +++ b/direct_print_odoo/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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 controllers +from . import models diff --git a/direct_print_odoo/__manifest__.py b/direct_print_odoo/__manifest__.py new file mode 100644 index 000000000..5668d7b24 --- /dev/null +++ b/direct_print_odoo/__manifest__.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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': 'Direct Print', + 'version': '17.0.1.0.0', + 'category': 'Extra tools', + 'summary': 'The Direct Print is a tool that connects Odoo to PrintNode, ' + 'a cloud-based printing service. This connector allows users to' + ' send print jobs from their Odoo environment to any printer ' + 'connected to their PrintNode account.', + 'description': 'PrintNode is a cloud-based printing service that enables ' + 'businesses to print documents remotely from any device or ' + 'location. The Direct Print for Odoo is a ' + 'software module that integrates Odoo, an open-source ERP ' + 'system, with PrintNodes printing capabilities.', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base_setup'], + 'data': [ + 'security/ir.model.access.csv', + 'views/res_config_settings_views.xml', + ], + "external_dependencies": { + 'python': ['printnodeapi'] + }, + 'images': [ + 'static/description/banner.png', + ], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/direct_print_odoo/controllers/__init__.py b/direct_print_odoo/controllers/__init__.py new file mode 100644 index 000000000..8527c4c5b --- /dev/null +++ b/direct_print_odoo/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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 direct_print_odoo diff --git a/direct_print_odoo/controllers/direct_print_odoo.py b/direct_print_odoo/controllers/direct_print_odoo.py new file mode 100644 index 000000000..e58fdc673 --- /dev/null +++ b/direct_print_odoo/controllers/direct_print_odoo.py @@ -0,0 +1,149 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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 . +# +############################################################################# +import base64 +import json +import logging +from printnodeapi.gateway import Gateway +import werkzeug +import werkzeug.exceptions +import werkzeug.utils +import werkzeug.wrappers +import werkzeug.wsgi +from odoo import http, _ +from odoo.addons.web.controllers.report import ReportController +from odoo.exceptions import ValidationError +from odoo.http import request + +_logger = logging.getLogger(__name__) + + +class ReportControllers(ReportController): + """Supering the report controllers for overriding the report_routes + method""" + + # ------------------------------------------------------ + # Report controllers + # ------------------------------------------------------ + @http.route([ + '/report//', + '/report///', + ], type='http', auth='user', website=True) + def report_routes(self, reportname, docids=None, converter=None, **data): + """Overrides ReportController for printing the + report to the corresponding printer""" + report = request.env['ir.actions.report'] + context = dict(request.env.context) + + if docids: + docids = [int(rec) for rec in docids.split(',')] + if data.get('options'): + data.update(json.loads(data.pop('options'))) + if data.get('context'): + data['context'] = json.loads(data['context']) + context.update(data['context']) + if converter == 'html': + html = report.with_context(context)._render_qweb_html(reportname, + docids, + data=data)[0] + return request.make_response(html) + elif converter == 'pdf': + pdf = report.with_context(context)._render_qweb_pdf(reportname, + docids, + data=data)[0] + default_printer = request.env.company.available_printers_id + printer_det = request.env['printer.details'].browse( + int(default_printer)) + multi_printer_details = [printer.id_of_printer for printer in + request.env.company.printers_ids] + if request.env.company.multiple_printers: + gateway = Gateway(url='https://api.printnode.com/', + apikey=request.env.company.api_key_print_node) + data_record = base64.b64encode(pdf) + ir_values = { + 'name': "Customer Report", + 'type': 'binary', + 'datas': data_record, + 'store_fname': data_record, + 'mimetype': 'application/pdf', + 'file_size': 25, + 'public': True, + } + att = request.env['ir.attachment'].create(ir_values) + request.env.cr.flush() + request.env.cr.commit() + request.env.cr.execute( + """ select id from public.ir_attachment where id=%s""", + [att.id]) + base_url = request.env['ir.config_parameter'].sudo().get_param( + 'web.base.url') + base_urls = '%s/web/content/%s' % ( + base_url, request.env.cr.dictfetchone()['id']) + if multi_printer_details: + for rec in multi_printer_details: + gateway.PrintJob(printer=int(rec), + options={"copies": 1}, + uri=base_urls) + else: + raise ValidationError(_( + 'please select at least one printer')) + else: + gateway = Gateway(url='https://api.printnode.com/', + apikey=request.env.company.api_key_print_node) + data_record = base64.b64encode(pdf) + ir_values = { + 'name': "Customer Report", + 'type': 'binary', + 'datas': data_record, + 'store_fname': data_record, + 'mimetype': 'application/pdf', + 'file_size': 25, + 'public': True, + } + att = request.env['ir.attachment'].create(ir_values) + request.env.cr.flush() + request.env.cr.commit() + request.env.cr.execute( + """ select id from public.ir_attachment where id=%s""", + [att.id]) + base_url = request.env['ir.config_parameter'].sudo().get_param( + 'web.base.url') + base_urls = '%s/web/content/%s' % ( + base_url, request.env.cr.dictfetchone()['id']) + if default_printer: + gateway.PrintJob(printer=int(printer_det.id_of_printer), + options={"copies": 1}, + uri=base_urls) + else: + raise ValidationError(_('Please select a printer.')) + pdfhttpheaders = [('Content-Type', 'application/pdf'), + ('Content-Length', len(pdf))] + return request.make_response(pdf, headers=pdfhttpheaders) + elif converter == 'text': + text = report.with_context(context)._render_qweb_text(reportname, + docids, + data=data)[0] + texthttpheaders = [('Content-Type', 'text/plain'), + ('Content-Length', len(text))] + return request.make_response(text, headers=texthttpheaders) + else: + raise werkzeug.exceptions.HTTPException( + description='Converter %s not implemented.' % converter) diff --git a/direct_print_odoo/doc/RELEASE_NOTES.md b/direct_print_odoo/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..2cf962df4 --- /dev/null +++ b/direct_print_odoo/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 15.112.2023 +#### Version 17.0.1.0.0 +#### ADD +- Initial commit for Direct Print diff --git a/direct_print_odoo/models/__init__.py b/direct_print_odoo/models/__init__.py new file mode 100644 index 000000000..e33851c73 --- /dev/null +++ b/direct_print_odoo/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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 printer_details +from . import res_config_settings +from . import res_company diff --git a/direct_print_odoo/models/printer_details.py b/direct_print_odoo/models/printer_details.py new file mode 100644 index 000000000..8255dcfd7 --- /dev/null +++ b/direct_print_odoo/models/printer_details.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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 PrinterPrint(models.Model): + """This class is created for model printer.details. It contains fields + for the model""" + _name = "printer.details" + _description = "Printer Details" + _rec_name = 'printers_name' + + id_of_printer = fields.Char(string="Printer ID", help="id of printer") + printers_name = fields.Char(string="Printer Name", help="name of printer") + printer_description = fields.Char(string="Printer Description", + help="description of printer") + state = fields.Char(string="Status", help="status of printer") diff --git a/direct_print_odoo/models/res_company.py b/direct_print_odoo/models/res_company.py new file mode 100644 index 000000000..da6af7ae7 --- /dev/null +++ b/direct_print_odoo/models/res_company.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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 ResCompany(models.Model): + """Inheriting this class to add the Print-node credential need in config + settings and use the multi company feature""" + _inherit = 'res.company' + + api_key_print_node = fields.Char(string="API Key", + help='API Key of the print-node') + available_printers_id = fields.Many2one('printer.details', + string='Available Printers', + help='Available printers in the ' + 'connected computer', + config_parameter='direct_print_odoo' + '.available_printers_id') + printers_ids = fields.Many2many('printer.details', + string='Printers Details', + help='Multiple Printers can connect and ' + 'print') + multiple_printers = fields.Boolean(string='Multiple Printers', + help='Enable if you have Multiple ' + 'Printers', + config_parameter='direct_print_odoo' + '.multiple_printers') diff --git a/direct_print_odoo/models/res_config_settings.py b/direct_print_odoo/models/res_config_settings.py new file mode 100644 index 000000000..1b3111a9a --- /dev/null +++ b/direct_print_odoo/models/res_config_settings.py @@ -0,0 +1,79 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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 printnodeapi.gateway import Gateway +from odoo import fields, models, _ +from odoo.exceptions import ValidationError + + +class ResConfigSettings(models.TransientModel): + """This class is Inheriting the model res.config.setting. + add some extra fields and functions for the model. + Methods: + get_values(self): + super the function for getting the printer details. + set_values(self): + super the function for setting the printer details + action_check_printers(self): + checking the available printers in the system""" + _inherit = 'res.config.settings' + + api_key_print_node = fields.Char(string="API Key", + related='company_id.api_key_print_node', + help='API Key of the print-node', + readonly=False) + available_printers_id = fields.Many2one('printer.details', + related='company_id' + '.available_printers_id', + readonly=False) + printers_ids = fields.Many2many('printer.details', + string='Printers Details', + related='company_id.printers_ids', + help='Printers Details', readonly=False) + multiple_printers = fields.Boolean(string='Multiple Printers', + help='Enable if you have Multiple ' + 'Printers', readonly=False, + related='company_id.multiple_printers') + + def action_check_printers(self): + """Check the available printer""" + print_node_api = self.env.company.api_key_print_node + try: + gateway = Gateway(url="https://api.printnode.com", + apikey=print_node_api) + computer_id = int(gateway.computers()[0].id) + if computer_id: + for printer in gateway.printers(computer=computer_id): + prints = self.env['printer.details'].search( + [('id_of_printer', '=', printer.id)]) + if not prints: + self.env['printer.details'].create({ + 'id_of_printer': printer.id, + 'printers_name': printer.name, + 'printer_description': printer.description, + 'state': printer.state, + }) + else: + raise ValidationError(_('Printer already exists')) + else: + raise ValidationError(_('Please Connect a Computer First ')) + except Exception: + raise ValidationError(_("Please provide valid credentials")) diff --git a/direct_print_odoo/security/ir.model.access.csv b/direct_print_odoo/security/ir.model.access.csv new file mode 100644 index 000000000..03797debb --- /dev/null +++ b/direct_print_odoo/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_printer_details_model,access.printer.details.model,model_printer_details,base.group_user,1,1,1,1 diff --git a/direct_print_odoo/static/description/assets/icons/capture (1).png b/direct_print_odoo/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/capture (1).png differ diff --git a/direct_print_odoo/static/description/assets/icons/check.png b/direct_print_odoo/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/check.png differ diff --git a/direct_print_odoo/static/description/assets/icons/chevron.png b/direct_print_odoo/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/chevron.png differ diff --git a/direct_print_odoo/static/description/assets/icons/cogs.png b/direct_print_odoo/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/cogs.png differ diff --git a/direct_print_odoo/static/description/assets/icons/consultation.png b/direct_print_odoo/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/consultation.png differ diff --git a/direct_print_odoo/static/description/assets/icons/ecom-black.png b/direct_print_odoo/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/ecom-black.png differ diff --git a/direct_print_odoo/static/description/assets/icons/education-black.png b/direct_print_odoo/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/education-black.png differ diff --git a/direct_print_odoo/static/description/assets/icons/hotel-black.png b/direct_print_odoo/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/hotel-black.png differ diff --git a/direct_print_odoo/static/description/assets/icons/img.png b/direct_print_odoo/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/img.png differ diff --git a/direct_print_odoo/static/description/assets/icons/license.png b/direct_print_odoo/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/license.png differ diff --git a/direct_print_odoo/static/description/assets/icons/lifebuoy.png b/direct_print_odoo/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/lifebuoy.png differ diff --git a/direct_print_odoo/static/description/assets/icons/logo.png b/direct_print_odoo/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/logo.png differ diff --git a/direct_print_odoo/static/description/assets/icons/manufacturing-black.png b/direct_print_odoo/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/manufacturing-black.png differ diff --git a/direct_print_odoo/static/description/assets/icons/photo-capture.png b/direct_print_odoo/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/photo-capture.png differ diff --git a/direct_print_odoo/static/description/assets/icons/pos-black.png b/direct_print_odoo/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/pos-black.png differ diff --git a/direct_print_odoo/static/description/assets/icons/puzzle.png b/direct_print_odoo/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/puzzle.png differ diff --git a/direct_print_odoo/static/description/assets/icons/restaurant-black.png b/direct_print_odoo/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/restaurant-black.png differ diff --git a/direct_print_odoo/static/description/assets/icons/service-black.png b/direct_print_odoo/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/service-black.png differ diff --git a/direct_print_odoo/static/description/assets/icons/trading-black.png b/direct_print_odoo/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/trading-black.png differ diff --git a/direct_print_odoo/static/description/assets/icons/training.png b/direct_print_odoo/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/training.png differ diff --git a/direct_print_odoo/static/description/assets/icons/update.png b/direct_print_odoo/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/update.png differ diff --git a/direct_print_odoo/static/description/assets/icons/user.png b/direct_print_odoo/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/user.png differ diff --git a/direct_print_odoo/static/description/assets/icons/wrench.png b/direct_print_odoo/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/direct_print_odoo/static/description/assets/icons/wrench.png differ diff --git a/direct_print_odoo/static/description/assets/misc/Cybrosys R.png b/direct_print_odoo/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/Cybrosys R.png differ diff --git a/direct_print_odoo/static/description/assets/misc/categories.png b/direct_print_odoo/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/categories.png differ diff --git a/direct_print_odoo/static/description/assets/misc/check-box.png b/direct_print_odoo/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/check-box.png differ diff --git a/direct_print_odoo/static/description/assets/misc/compass.png b/direct_print_odoo/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/compass.png differ diff --git a/direct_print_odoo/static/description/assets/misc/corporate.png b/direct_print_odoo/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/corporate.png differ diff --git a/direct_print_odoo/static/description/assets/misc/customer-support.png b/direct_print_odoo/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/customer-support.png differ diff --git a/direct_print_odoo/static/description/assets/misc/cybrosys-logo.png b/direct_print_odoo/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/cybrosys-logo.png differ diff --git a/direct_print_odoo/static/description/assets/misc/email.svg b/direct_print_odoo/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/direct_print_odoo/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/direct_print_odoo/static/description/assets/misc/features.png b/direct_print_odoo/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/features.png differ diff --git a/direct_print_odoo/static/description/assets/misc/logo.png b/direct_print_odoo/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/logo.png differ diff --git a/direct_print_odoo/static/description/assets/misc/phone.svg b/direct_print_odoo/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/direct_print_odoo/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/direct_print_odoo/static/description/assets/misc/pictures.png b/direct_print_odoo/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/pictures.png differ diff --git a/direct_print_odoo/static/description/assets/misc/pie-chart.png b/direct_print_odoo/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/pie-chart.png differ diff --git a/direct_print_odoo/static/description/assets/misc/right-arrow.png b/direct_print_odoo/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/right-arrow.png differ diff --git a/direct_print_odoo/static/description/assets/misc/star (1) 2.svg b/direct_print_odoo/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/direct_print_odoo/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/direct_print_odoo/static/description/assets/misc/star.png b/direct_print_odoo/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/star.png differ diff --git a/direct_print_odoo/static/description/assets/misc/support (1) 1.svg b/direct_print_odoo/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/direct_print_odoo/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/direct_print_odoo/static/description/assets/misc/support-email.svg b/direct_print_odoo/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/direct_print_odoo/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/direct_print_odoo/static/description/assets/misc/support.png b/direct_print_odoo/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/support.png differ diff --git a/direct_print_odoo/static/description/assets/misc/tick-mark.svg b/direct_print_odoo/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/direct_print_odoo/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/direct_print_odoo/static/description/assets/misc/whatsapp 1.svg b/direct_print_odoo/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/direct_print_odoo/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/direct_print_odoo/static/description/assets/misc/whatsapp.png b/direct_print_odoo/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/direct_print_odoo/static/description/assets/misc/whatsapp.png differ diff --git a/direct_print_odoo/static/description/assets/misc/whatsapp.svg b/direct_print_odoo/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/direct_print_odoo/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/direct_print_odoo/static/description/assets/modules/1.png b/direct_print_odoo/static/description/assets/modules/1.png new file mode 100644 index 000000000..ba1058c42 Binary files /dev/null and b/direct_print_odoo/static/description/assets/modules/1.png differ diff --git a/direct_print_odoo/static/description/assets/modules/2.png b/direct_print_odoo/static/description/assets/modules/2.png new file mode 100644 index 000000000..6949185dd Binary files /dev/null and b/direct_print_odoo/static/description/assets/modules/2.png differ diff --git a/direct_print_odoo/static/description/assets/modules/3.png b/direct_print_odoo/static/description/assets/modules/3.png new file mode 100644 index 000000000..4e506f79b Binary files /dev/null and b/direct_print_odoo/static/description/assets/modules/3.png differ diff --git a/direct_print_odoo/static/description/assets/modules/4.png b/direct_print_odoo/static/description/assets/modules/4.png new file mode 100644 index 000000000..e78427938 Binary files /dev/null and b/direct_print_odoo/static/description/assets/modules/4.png differ diff --git a/direct_print_odoo/static/description/assets/modules/5.gif b/direct_print_odoo/static/description/assets/modules/5.gif new file mode 100644 index 000000000..8f40aab85 Binary files /dev/null and b/direct_print_odoo/static/description/assets/modules/5.gif differ diff --git a/direct_print_odoo/static/description/assets/modules/5.png b/direct_print_odoo/static/description/assets/modules/5.png new file mode 100755 index 000000000..272ec20f9 Binary files /dev/null and b/direct_print_odoo/static/description/assets/modules/5.png differ diff --git a/direct_print_odoo/static/description/assets/modules/6.png b/direct_print_odoo/static/description/assets/modules/6.png new file mode 100644 index 000000000..7d5c3154f Binary files /dev/null and b/direct_print_odoo/static/description/assets/modules/6.png differ diff --git a/direct_print_odoo/static/description/assets/screenshots/1.png b/direct_print_odoo/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..7eb0d56b8 Binary files /dev/null and b/direct_print_odoo/static/description/assets/screenshots/1.png differ diff --git a/direct_print_odoo/static/description/assets/screenshots/2.png b/direct_print_odoo/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..512a5dccf Binary files /dev/null and b/direct_print_odoo/static/description/assets/screenshots/2.png differ diff --git a/direct_print_odoo/static/description/assets/screenshots/3.png b/direct_print_odoo/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..d2564b11a Binary files /dev/null and b/direct_print_odoo/static/description/assets/screenshots/3.png differ diff --git a/direct_print_odoo/static/description/assets/screenshots/4.png b/direct_print_odoo/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..cf7ae2a4d Binary files /dev/null and b/direct_print_odoo/static/description/assets/screenshots/4.png differ diff --git a/direct_print_odoo/static/description/assets/screenshots/5.png b/direct_print_odoo/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..e85ee8251 Binary files /dev/null and b/direct_print_odoo/static/description/assets/screenshots/5.png differ diff --git a/direct_print_odoo/static/description/assets/screenshots/hero.gif b/direct_print_odoo/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..dfb249481 Binary files /dev/null and b/direct_print_odoo/static/description/assets/screenshots/hero.gif differ diff --git a/direct_print_odoo/static/description/banner.jpg b/direct_print_odoo/static/description/banner.jpg new file mode 100644 index 000000000..677f72279 Binary files /dev/null and b/direct_print_odoo/static/description/banner.jpg differ diff --git a/direct_print_odoo/static/description/icon.png b/direct_print_odoo/static/description/icon.png new file mode 100644 index 000000000..6db32ad06 Binary files /dev/null and b/direct_print_odoo/static/description/icon.png differ diff --git a/direct_print_odoo/static/description/index.html b/direct_print_odoo/static/description/index.html new file mode 100644 index 000000000..70a942cc3 --- /dev/null +++ b/direct_print_odoo/static/description/index.html @@ -0,0 +1,795 @@ + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Direct Print

+

+ The Direct Print is a Tool that Connects Odoo to PrintNode. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Direct print allows users to integrate the + PrintNode API with their Odoo platform. +

+
+
+
+
+
+
+ +
+
+

+ Direct print is a cloud-based printing service + that enables printing from anywhere to any + printer.

+
+
+
+
+
+
+ +
+
+

+ Community & Enterprise Support.

+
+
+
+
+
+
+ +
+
+

+ With Direct print for Odoo, users can configure + printing settings and preferences within the + Odoo platform. +

+
+
+
+
+
+
+ +
+
+

+ It streamlines the printing experience, + reducing the need for manual printing tasks and + minimizing errors. +

+
+
+
+
+
+
+ +
+
+

+ It is a reliable, secure, and efficient + printing + solution for businesses using Odoo platform +

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

+ Go to your PrintNode + account and here you can create the api + key.

+
+
+
+
+
+
+ +
+
+

+ Go to Settings --> Direct Print. + Here you can Set your api key and url and + check the available printers. if you + possess more than one printer, ensure to + enable the 'Multiple Printers' + option."

+
+
+
+
+
+
+ +
+
+

+ Go to your PrintNode + account --> Devices.Here you can see all + the corresponding printers connected to the + computer.

+
+
+
+
+
+
+ +
+
+

+ When you click the print button on Sale + Order, Purchase Order or Invoice it will + print the corresponding file and also + download the file. +

+
+
+
+
+
+
+ +
+
+

+ After that you can see all the details of + printing files in your PrintNode + Account --> Print Something. +

+
+
+
+ +
+
+
+
    +
  • + This is a + software module that allows users to seamlessly + integrate the PrintNode API with their Odoo + platform. +
  • +
  • + The PrintNode + API is a cloud-based printing service that + enables users to print documents from anywhere + to any printer. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:15th Dec 2023 +
+

+ Initial Commit for Direct Print

+
+
+
+
+
+
+
+

+ 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/direct_print_odoo/views/res_config_settings_views.xml b/direct_print_odoo/views/res_config_settings_views.xml new file mode 100644 index 000000000..c94973f4d --- /dev/null +++ b/direct_print_odoo/views/res_config_settings_views.xml @@ -0,0 +1,65 @@ + + + + + + res.config.settings.view.form.inherit.direct.print.odoo + + res.config.settings + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+
+
+ + +
+ +
+
+
+
+
+
+
+