diff --git a/direct_print_odoo/README.rst b/direct_print_odoo/README.rst new file mode 100644 index 000000000..c8100ae85 --- /dev/null +++ b/direct_print_odoo/README.rst @@ -0,0 +1,55 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Direct Print +======================= +* connect odoo to PrintNode + +Configuration: +-------------- + +First you need to install the printnode application. +1) Go to www.printnode.com/en/download +2) Click on the download button for your operating system. +3) 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 +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) + +Credits +------- +Developer: Gokul P I @cybrosys, 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: ``__ \ No newline at end of file diff --git a/direct_print_odoo/__init__.py b/direct_print_odoo/__init__.py new file mode 100644 index 000000000..3ea7b5ac5 --- /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 models +from . import controllers diff --git a/direct_print_odoo/__manifest__.py b/direct_print_odoo/__manifest__.py new file mode 100644 index 000000000..f01b9c4fb --- /dev/null +++ b/direct_print_odoo/__manifest__.py @@ -0,0 +1,55 @@ +# -*- 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': '16.0.1.0.0', + '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.', + 'category': 'Extra tools', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + "external_dependencies": { + 'python': ['printnodeapi'] + }, + 'license': 'LGPL-3', + 'depends': ['base', 'base_setup'], + 'data': [ + 'security/ir.model.access.csv', + 'views/res_config_settings_views.xml', + 'views/printers_view.xml', + ], + 'images': [ + 'static/description/banner.png', + ], + '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..6f5191acd --- /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 printer diff --git a/direct_print_odoo/controllers/printer.py b/direct_print_odoo/controllers/printer.py new file mode 100644 index 000000000..1f0012e47 --- /dev/null +++ b/direct_print_odoo/controllers/printer.py @@ -0,0 +1,164 @@ +# -*- 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 ast import literal_eval +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(i) for i 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] + print_node_url = request.env[ + 'ir.config_parameter'].sudo().get_param('url_print_node') + print_node_api = request.env[ + 'ir.config_parameter'].sudo().get_param('api_key_print_node') + default_printer = request.env[ + 'ir.config_parameter'].sudo().get_param( + 'direct_print_odoo.available_printers_id') + multiple_printers_boolean = request.env[ + 'ir.config_parameter'].sudo().get_param( + 'direct_print_odoo.multiple_printers') + printer_det = request.env['printer.details'].browse( + int(default_printer)) + multi_printer = request.env[ + 'ir.config_parameter'].sudo().get_param( + 'direct_print_odoo.printers_ids') + multi_printer_details = [] + for printer in literal_eval(multi_printer): + printer_details = request.env['printer.details'].browse( + int(printer)) + multi_printer_details.append(printer_details.id_of_printer) + if multiple_printers_boolean: + gateway = Gateway(url=print_node_url, apikey=print_node_api) + 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=print_node_url, apikey=print_node_api) + 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..06460d4c4 --- /dev/null +++ b/direct_print_odoo/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 10.07.2023 +#### Version 16.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..bc9672aaa --- /dev/null +++ b/direct_print_odoo/models/__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 printers +from . import res_config_settings diff --git a/direct_print_odoo/models/printers.py b/direct_print_odoo/models/printers.py new file mode 100644 index 000000000..172b91494 --- /dev/null +++ b/direct_print_odoo/models/printers.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_config_settings.py b/direct_print_odoo/models/res_config_settings.py new file mode 100644 index 000000000..d5f7cd580 --- /dev/null +++ b/direct_print_odoo/models/res_config_settings.py @@ -0,0 +1,117 @@ +# -*- 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 json +from ast import literal_eval +from printnodeapi.gateway import Gateway +from odoo import api, 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' + + url_print_node = fields.Char(string='Url', help='URL of the printnode') + api_key_print_node = fields.Char(string="API Key", + help='API Key of the printnode') + available_printers_id = fields.Many2one('printer.details', + config_parameter='direct_print_odoo' + '.available_printers_id') + printers_ids = fields.Many2many('printer.details', + string='Printers Details', + help='Printers Details') + multiple_printers = fields.Boolean(string='Multiple Printers', + help='Enable if you have Multiple ' + 'Printers', + config_parameter='direct_print_odoo' + '.multiple_printers') + + @api.model + def get_values(self): + """Get the values in the config""" + res = super(ResConfigSettings, self).get_values() + res['api_key_print_node'] = self.env[ + 'ir.config_parameter'].sudo().get_param('api_key_print_node') + res['url_print_node'] = self.env[ + 'ir.config_parameter'].sudo().get_param('url_print_node') + res['printers_ids'] = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'direct_print_odoo.printers_ids') + params = self.env['ir.config_parameter'].sudo() + printers_ids = params.get_param('direct_print_odoo.printers_ids', + default=False) + if printers_ids: + res.update( + printers_ids=literal_eval(printers_ids) + ) + else: + res.update( + printers_ids=False + ) + return res + + @api.model + def set_values(self): + """Set the values in the config""" + self.env['ir.config_parameter'].sudo().set_param('api_key_print_node', + self.api_key_print_node) + self.env['ir.config_parameter'].sudo().set_param('url_print_node', + self.url_print_node) + self.env['ir.config_parameter'].sudo().set_param( + 'direct_print_odoo.printers_ids', + self.printers_ids.ids) + super(ResConfigSettings, self).set_values() + + def action_check_printers(self): + """Check the available printer""" + print_node_url = self.env['ir.config_parameter'].sudo().get_param( + 'url_print_node') + print_node_api = self.env['ir.config_parameter'].sudo().get_param( + 'api_key_print_node') + try: + gateway = Gateway(url=print_node_url, 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 as e: + 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/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/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/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/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/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/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/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.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.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/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/modules/1.png b/direct_print_odoo/static/description/assets/modules/1.png new file mode 100644 index 000000000..489f44e86 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..273effef7 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..55fb7ba18 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..c1f30354a 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/6.png b/direct_print_odoo/static/description/assets/modules/6.png new file mode 100644 index 000000000..31ed46762 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.zip b/direct_print_odoo/static/description/assets/screenshots.zip new file mode 100644 index 000000000..bf4dd77b3 Binary files /dev/null and b/direct_print_odoo/static/description/assets/screenshots.zip differ diff --git a/direct_print_odoo/static/description/assets/screenshots/img_1.png b/direct_print_odoo/static/description/assets/screenshots/img_1.png new file mode 100644 index 000000000..d69af5764 Binary files /dev/null and b/direct_print_odoo/static/description/assets/screenshots/img_1.png differ diff --git a/direct_print_odoo/static/description/assets/screenshots/img_2.png b/direct_print_odoo/static/description/assets/screenshots/img_2.png new file mode 100644 index 000000000..501fdc252 Binary files /dev/null and b/direct_print_odoo/static/description/assets/screenshots/img_2.png differ diff --git a/direct_print_odoo/static/description/assets/screenshots/odoo_config.png b/direct_print_odoo/static/description/assets/screenshots/odoo_config.png new file mode 100644 index 000000000..52b5f522b Binary files /dev/null and b/direct_print_odoo/static/description/assets/screenshots/odoo_config.png differ diff --git a/direct_print_odoo/static/description/assets/screenshots/order.png b/direct_print_odoo/static/description/assets/screenshots/order.png new file mode 100644 index 000000000..93b4b22cf Binary files /dev/null and b/direct_print_odoo/static/description/assets/screenshots/order.png differ diff --git a/direct_print_odoo/static/description/assets/screenshots/printer.gif b/direct_print_odoo/static/description/assets/screenshots/printer.gif new file mode 100644 index 000000000..777bcee92 Binary files /dev/null and b/direct_print_odoo/static/description/assets/screenshots/printer.gif differ diff --git a/direct_print_odoo/static/description/banner.png b/direct_print_odoo/static/description/banner.png new file mode 100644 index 000000000..83e33258b Binary files /dev/null and b/direct_print_odoo/static/description/banner.png 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..a8e994c5b 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..8cb202522 --- /dev/null +++ b/direct_print_odoo/static/description/index.html @@ -0,0 +1,628 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Direct Print

+

+ Direct Print

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

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

+ Features +

+
+
+
+
+ + Community & + Enterprise Support. +
+
+ + 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. +
+
+ + With Direct print for Odoo, users can configure printing settings and preferences within the Odoo platform +
+
+
+ +
+ + Available in Odoo 16.0 + Community and Enterprise. +
+ +
+ + 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 +
+ +
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+ Here you can create the api key. + +
+
+
+ Here you can Set your api key and url and check the available printers. + +
+
+
+ Here you can see all the corresponding printers connected to the computer. + +
+
+
+ When you click the print button it will print the corresponding file and also download the file + +
+ +
+
+ + + +
+
+ +
+

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

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

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/direct_print_odoo/views/printers_view.xml b/direct_print_odoo/views/printers_view.xml new file mode 100644 index 000000000..b192ecdc9 --- /dev/null +++ b/direct_print_odoo/views/printers_view.xml @@ -0,0 +1,26 @@ + + + + + Printer Details Main Action + printer.details + tree + +

+ No active printers +

+
+
+ + printer.details.view.tree + printer.details + + + + + + + + +
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..e01390b30 --- /dev/null +++ b/direct_print_odoo/views/res_config_settings_views.xml @@ -0,0 +1,67 @@ + + + + + res.config.settings.view.form.inherit.direct.print.odoo + res.config.settings + + + + +

Direct Print Odoo

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