Browse Source

Jul 10 : [ADD] Initial Commit 'direct_print_odoo'

pull/266/head
Shijin V 2 years ago
parent
commit
8fb7d15e25
  1. 55
      direct_print_odoo/README.rst
  2. 23
      direct_print_odoo/__init__.py
  3. 55
      direct_print_odoo/__manifest__.py
  4. 22
      direct_print_odoo/controllers/__init__.py
  5. 164
      direct_print_odoo/controllers/printer.py
  6. 6
      direct_print_odoo/doc/RELEASE_NOTES.md
  7. 23
      direct_print_odoo/models/__init__.py
  8. 36
      direct_print_odoo/models/printers.py
  9. 117
      direct_print_odoo/models/res_config_settings.py
  10. 2
      direct_print_odoo/security/ir.model.access.csv
  11. BIN
      direct_print_odoo/static/description/assets/icons/check.png
  12. BIN
      direct_print_odoo/static/description/assets/icons/chevron.png
  13. BIN
      direct_print_odoo/static/description/assets/icons/cogs.png
  14. BIN
      direct_print_odoo/static/description/assets/icons/consultation.png
  15. BIN
      direct_print_odoo/static/description/assets/icons/ecom-black.png
  16. BIN
      direct_print_odoo/static/description/assets/icons/education-black.png
  17. BIN
      direct_print_odoo/static/description/assets/icons/hotel-black.png
  18. BIN
      direct_print_odoo/static/description/assets/icons/license.png
  19. BIN
      direct_print_odoo/static/description/assets/icons/lifebuoy.png
  20. BIN
      direct_print_odoo/static/description/assets/icons/manufacturing-black.png
  21. BIN
      direct_print_odoo/static/description/assets/icons/pos-black.png
  22. BIN
      direct_print_odoo/static/description/assets/icons/puzzle.png
  23. BIN
      direct_print_odoo/static/description/assets/icons/restaurant-black.png
  24. BIN
      direct_print_odoo/static/description/assets/icons/service-black.png
  25. BIN
      direct_print_odoo/static/description/assets/icons/trading-black.png
  26. BIN
      direct_print_odoo/static/description/assets/icons/training.png
  27. BIN
      direct_print_odoo/static/description/assets/icons/update.png
  28. BIN
      direct_print_odoo/static/description/assets/icons/user.png
  29. BIN
      direct_print_odoo/static/description/assets/icons/wrench.png
  30. BIN
      direct_print_odoo/static/description/assets/misc/categories.png
  31. BIN
      direct_print_odoo/static/description/assets/misc/check-box.png
  32. BIN
      direct_print_odoo/static/description/assets/misc/compass.png
  33. BIN
      direct_print_odoo/static/description/assets/misc/corporate.png
  34. BIN
      direct_print_odoo/static/description/assets/misc/customer-support.png
  35. BIN
      direct_print_odoo/static/description/assets/misc/cybrosys-logo.png
  36. BIN
      direct_print_odoo/static/description/assets/misc/features.png
  37. BIN
      direct_print_odoo/static/description/assets/misc/logo.png
  38. BIN
      direct_print_odoo/static/description/assets/misc/pictures.png
  39. BIN
      direct_print_odoo/static/description/assets/misc/pie-chart.png
  40. BIN
      direct_print_odoo/static/description/assets/misc/right-arrow.png
  41. BIN
      direct_print_odoo/static/description/assets/misc/star.png
  42. BIN
      direct_print_odoo/static/description/assets/misc/support.png
  43. BIN
      direct_print_odoo/static/description/assets/misc/whatsapp.png
  44. BIN
      direct_print_odoo/static/description/assets/modules/1.png
  45. BIN
      direct_print_odoo/static/description/assets/modules/2.png
  46. BIN
      direct_print_odoo/static/description/assets/modules/3.png
  47. BIN
      direct_print_odoo/static/description/assets/modules/4.png
  48. BIN
      direct_print_odoo/static/description/assets/modules/5.gif
  49. BIN
      direct_print_odoo/static/description/assets/modules/6.png
  50. BIN
      direct_print_odoo/static/description/assets/screenshots.zip
  51. BIN
      direct_print_odoo/static/description/assets/screenshots/img_1.png
  52. BIN
      direct_print_odoo/static/description/assets/screenshots/img_2.png
  53. BIN
      direct_print_odoo/static/description/assets/screenshots/odoo_config.png
  54. BIN
      direct_print_odoo/static/description/assets/screenshots/order.png
  55. BIN
      direct_print_odoo/static/description/assets/screenshots/printer.gif
  56. BIN
      direct_print_odoo/static/description/banner.png
  57. BIN
      direct_print_odoo/static/description/icon.png
  58. 628
      direct_print_odoo/static/description/index.html
  59. 26
      direct_print_odoo/views/printers_view.xml
  60. 67
      direct_print_odoo/views/res_config_settings_views.xml

55
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 <https://cybrosys.com/>`__
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 <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

23
direct_print_odoo/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import models
from . import controllers

55
direct_print_odoo/__manifest__.py

@ -0,0 +1,55 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'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,
}

22
direct_print_odoo/controllers/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import printer

164
direct_print_odoo/controllers/printer.py

@ -0,0 +1,164 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
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/<converter>/<reportname>',
'/report/<converter>/<reportname>/<docids>',
], 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)

6
direct_print_odoo/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <direct_print_odoo>
#### 10.07.2023
#### Version 16.0.1.0.0
#### ADD
- Initial commit for Direct Print

23
direct_print_odoo/models/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import printers
from . import res_config_settings

36
direct_print_odoo/models/printers.py

@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
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")

117
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(<https://www.cybrosys.com>)
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
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"))

2
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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_printer_details_model access.printer.details.model model_printer_details base.group_user 1 1 1 1

BIN
direct_print_odoo/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
direct_print_odoo/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
direct_print_odoo/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
direct_print_odoo/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
direct_print_odoo/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
direct_print_odoo/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
direct_print_odoo/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
direct_print_odoo/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
direct_print_odoo/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
direct_print_odoo/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
direct_print_odoo/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
direct_print_odoo/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
direct_print_odoo/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
direct_print_odoo/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
direct_print_odoo/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
direct_print_odoo/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
direct_print_odoo/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
direct_print_odoo/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
direct_print_odoo/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
direct_print_odoo/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
direct_print_odoo/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
direct_print_odoo/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
direct_print_odoo/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
direct_print_odoo/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
direct_print_odoo/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
direct_print_odoo/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
direct_print_odoo/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
direct_print_odoo/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
direct_print_odoo/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
direct_print_odoo/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
direct_print_odoo/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
direct_print_odoo/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
direct_print_odoo/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
direct_print_odoo/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
direct_print_odoo/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
direct_print_odoo/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
direct_print_odoo/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

BIN
direct_print_odoo/static/description/assets/modules/5.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

BIN
direct_print_odoo/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
direct_print_odoo/static/description/assets/screenshots.zip

Binary file not shown.

BIN
direct_print_odoo/static/description/assets/screenshots/img_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

BIN
direct_print_odoo/static/description/assets/screenshots/img_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
direct_print_odoo/static/description/assets/screenshots/odoo_config.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
direct_print_odoo/static/description/assets/screenshots/order.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

BIN
direct_print_odoo/static/description/assets/screenshots/printer.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

BIN
direct_print_odoo/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
direct_print_odoo/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

628
direct_print_odoo/static/description/index.html

@ -0,0 +1,628 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42"
style="width: 42px; height: 42px;"/>
<div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
<div
style="color: #017E84; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Odoo.sh
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Direct Print</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Direct Print </p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/printer.gif" class="img-responsive"
style="width: 100%; margin-left: -13px;" />
</div>
</div>
</div>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Explore This
Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn
more about this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
features of this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
screenshots for this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Overview
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
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.
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Features
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Community &amp;
Enterprise Support.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Direct print allows users to integrate the PrintNode API with their Odoo platform. </span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Direct print is a cloud-based printing service that enables printing from anywhere to any printer.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">With Direct print for Odoo, users can configure printing settings and preferences within the Odoo platform</span>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Available in Odoo 16.0
Community and Enterprise.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">It streamlines the printing experience, reducing the need for manual printing tasks and minimizing errors.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">It is a reliable, secure, and efficient printing solution for businesses using Odoo platform</span>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Screenshots
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
Here you can create the api key.
<img src="assets/screenshots/img_2.png" class="img-thumbnail">
<br>
<br>
<br>
Here you can Set your api key and url and check the available printers.
<img src="assets/screenshots/odoo_config.png" class="img-thumbnail">
<br>
<br>
<br>
Here you can see all the corresponding printers connected to the computer.
<img src="assets/screenshots/img_1.png" class="img-thumbnail">
<br>
<br>
<br>
When you click the print button it will print the corresponding file and also download the file
<img src="assets/screenshots/order.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/categories.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding: 30px;">
<div class="carousel-item" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/dynamic_accounts_report/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/1.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/access_restriction_by_ip/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/2.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/dynamic_product_fields/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item active" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/customer_product_qrcode/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/4.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/base_accounting_kit/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/5.gif">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/hr_payroll_community/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev" style="width:35px; color:#000"> <span
class="carousel-control-prev-icon"><i class="fa fa-chevron-left" style="font-size:24px"></i></span>
</a> <a class="carousel-control-next" href="#demo1" data-slide="next" style="width:35px; color:#000">
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right" style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/star.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</div>
<!-- END OF END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/corporate.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/trading-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/pos-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/education-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/manufacturing-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/ecom-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/service-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/restaurant-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/hotel-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</div>
<!-- END OF END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/customer-support.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/support.png" height="48" width="48"
style="width: 42px; height: 42px;"/>
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help?
Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/whatsapp.png" height="52" width="52"
style="width: 52px; height: 52px;"/>
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
+91 86068
27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="assets/misc/logo.png" width="144" height="31"
style="width:144px; height: 31px; margin-top: 40px;"/>
</div>
</div>
</div>
<!-- END OF SUPPORT -->

26
direct_print_odoo/views/printers_view.xml

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Action ,view and menu of printer.details-->
<record model="ir.actions.act_window" id="printer_details_action">
<field name="name">Printer Details Main Action</field>
<field name="res_model">printer.details</field>
<field name="view_mode">tree</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
No active printers
</p>
</field>
</record>
<record id="printer_details_view_tree" model="ir.ui.view">
<field name="name">printer.details.view.tree</field>
<field name="model">printer.details</field>
<field name="arch" type="xml">
<tree>
<field name="printers_name"/>
<field name="state"/>
</tree>
</field>
</record>
<menuitem id="printer_details_menu_action" name="Main Menu" parent="base.menu_custom"
action="printer_details_action" sequence="5"/>
</odoo>

67
direct_print_odoo/views/res_config_settings_views.xml

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inheriting the config setting and add the values for printer -->
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.direct.print.odoo</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="20"/>
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='invite_users']" position="after">
<h2>Direct Print Odoo</h2>
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box"
id="print_node_settings">
<div class="o_setting_right_pane">
<div class="content-group">
<div class="row mt8">
<label class="col-lg-3" string="Api Key"
for="api_key_print_node"/>
<field name="api_key_print_node" help='API Key of the printnode'/>
</div>
<div class="row mt8">
<label class="col-lg-3" string="End Url"
for="url_print_node"/>
<field name="url_print_node" help='URL of the printnode'/>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box" attrs="{'invisible':[('multiple_printers','!=',False)]}"
id="active_printers">
<div class="o_setting_right_pane">
<button name="action_check_printers"
string="Check available printers"
type="object" class="btn-primary"/>
<div class="row mt8">
<label class="col-lg-3"
string="Default Printer"
for="available_printers_id"/>
<field name="available_printers_id" help='Available printers'/>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box"
id="active_printers">
<div class="o_setting_right_pane">
<div class="row mt8">
<label class="col-lg-3"
string="Multiple printers"
for="multiple_printers"/>
<field name="multiple_printers" help="Enable if you have Multiple
Printers"/>
</div>
<div class="row mt8" attrs="{'invisible':[('multiple_printers','=',False)]}">
<label class="col-lg-3"
string="Select Printers"
for="printers_ids"/>
<field name="printers_ids" widget="many2many_tags"/>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save