Initial commit
1
pdf_print_preview/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.pyc
|
||||
28
pdf_print_preview/LICENSE
Normal file
@@ -0,0 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
Odoo Proprietary License v1.0
|
||||
|
||||
This software and associated files (the "Software") may only be used (executed,
|
||||
modified, executed after modifications) if you have purchased a valid license
|
||||
from the authors, typically via Odoo Apps, or if you have received a written
|
||||
agreement from the authors of the Software (see the COPYRIGHT file).
|
||||
|
||||
You may develop Odoo modules that use the Software as a library (typically
|
||||
by depending on it, importing it and using its resources), but without copying
|
||||
any source code or material from the Software. You may distribute those
|
||||
modules under the license of your choice, provided that this license is
|
||||
compatible with the terms of the Odoo Proprietary License (For example:
|
||||
LGPL, MIT, or proprietary licenses similar to this one).
|
||||
|
||||
It is forbidden to publish, distribute, sublicense, or sell copies of the Software
|
||||
or modified copies of the Software.
|
||||
|
||||
The above copyright notice and this permission notice must be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
4
pdf_print_preview/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import models
|
||||
from . import controllers
|
||||
63
pdf_print_preview/__manifest__.py
Normal file
@@ -0,0 +1,63 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
|
||||
{
|
||||
"name": "Pdf Print Preview",
|
||||
"version": "19.0.1.0.0",
|
||||
"depends": ["web"],
|
||||
"author": "itechgroup",
|
||||
"category": "web",
|
||||
"website": "",
|
||||
"summary": """Preview and print PDF report in your browser | Pdf direct preview | Print without Download
|
||||
| Quick printer | Easily to print report | Without download PDF File | Preview without Download | Preview report
|
||||
| Preview pdf | Odoo direct print | pdf preview | report Preview | PDF Viewer | report Viewer | PDF
|
||||
""",
|
||||
"description": """
|
||||
Preview,
|
||||
Preview PDF,
|
||||
Preview print PDF,
|
||||
Preview report,
|
||||
Report,
|
||||
Print,
|
||||
Pdf direct preview,
|
||||
PDF preview,
|
||||
Direct preview,
|
||||
Direct print,
|
||||
Print Without Download,
|
||||
Print without,
|
||||
Download,
|
||||
Without Download,
|
||||
Quick Printer,
|
||||
Printer,
|
||||
Quick Pdf,
|
||||
Pos report,
|
||||
Pos,
|
||||
Sale,
|
||||
Purchase,
|
||||
Stock,
|
||||
Print report,
|
||||
Easily to print report,
|
||||
Without download PDF File,
|
||||
Preview without Download
|
||||
""",
|
||||
"live_test_url": "https://www.itechgroup.info/demo-request?utm_source=odoo-apps&utm_medium=demo-request&utm_campaign=pdf-preview-17",
|
||||
"support": "support@itechgroup.info",
|
||||
'website': "https://www.itechgroup.info/",
|
||||
"data": [
|
||||
"views/res_users.xml",
|
||||
"report/ir_actions_report_templates.xml",
|
||||
"report/ir_actions_report.xml",
|
||||
],
|
||||
"assets": {
|
||||
"web.assets_backend": [
|
||||
"pdf_print_preview/static/src/js/pdf_preview.js",
|
||||
"pdf_print_preview/static/src/js/user_menu.js",
|
||||
"pdf_print_preview/static/src/xml/pdf_viewer_dialog.xml"
|
||||
],
|
||||
},
|
||||
"images": ["static/description/banner.png"],
|
||||
"installable": True,
|
||||
"application": True,
|
||||
"license": "OPL-1",
|
||||
"currency": "EUR",
|
||||
"price": 25.99
|
||||
}
|
||||
3
pdf_print_preview/controllers/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import main
|
||||
41
pdf_print_preview/controllers/main.py
Normal file
@@ -0,0 +1,41 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import json
|
||||
import werkzeug.exceptions
|
||||
|
||||
from odoo import http
|
||||
from odoo.http import request
|
||||
from odoo.tools.safe_eval import safe_eval, time
|
||||
|
||||
|
||||
class PrintPreviewController(http.Controller):
|
||||
|
||||
@http.route('/pdf_print_preview/get_report_name', type='json', auth='user')
|
||||
def get_report_name(self, report_name=False, data={}):
|
||||
file_name = ''
|
||||
|
||||
if not report_name:
|
||||
raise werkzeug.exceptions.HTTPException(
|
||||
description="Cannot found report name in param")
|
||||
|
||||
report = request.env['ir.actions.report']._get_report_from_name(
|
||||
report_name)
|
||||
if not report:
|
||||
raise werkzeug.exceptions.HTTPException(
|
||||
description=f"Cannot found report with name ( {report_name} )")
|
||||
|
||||
print_report_name = report.print_report_name
|
||||
data = json.loads(data)
|
||||
res_ids = data.get('active_ids', [])
|
||||
records = request.env[report.model].browse(res_ids)
|
||||
try:
|
||||
if print_report_name and not len(records) > 1:
|
||||
file_name = safe_eval(print_report_name, {
|
||||
'object': records, 'time': time})
|
||||
except:
|
||||
pass
|
||||
|
||||
return {
|
||||
'file_name': file_name,
|
||||
'wkhtmltopdf_state': request.env['ir.actions.report'].get_wkhtmltopdf_state(),
|
||||
}
|
||||
134
pdf_print_preview/i18n/fr.po
Normal file
@@ -0,0 +1,134 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * pdf_print_preview
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-12 22:59+0000\n"
|
||||
"PO-Revision-Date: 2019-03-12 22:59+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#: model:ir.model.fields,field_description:pdf_print_preview.field_res_users_automatic_printing
|
||||
msgid "Automatic printing"
|
||||
msgstr "Impression automatique"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#: model:ir.ui.view,arch_db:pdf_print_preview.short_preview_print_from
|
||||
msgid "Cancel"
|
||||
msgstr "Annuler"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#. openerp-web
|
||||
#: code:addons/pdf_print_preview/static/src/xml/dialog.xml:22
|
||||
#, python-format
|
||||
msgid "Close"
|
||||
msgstr "Fermer"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#: model:ir.model,name:pdf_print_preview.model_ir_http
|
||||
msgid "HTTP routing"
|
||||
msgstr "HTTP routing"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#. openerp-web
|
||||
#: code:addons/pdf_print_preview/static/src/js/pdf_preview.js:59
|
||||
#, python-format
|
||||
msgid "Please allow <b style='color: red;'>pop up</b> in your browser to <b>preview report</> in another tab."
|
||||
msgstr "Veuillez autoriser <b style='color: red;'>pop up</b>dans votre navigateur d'un aperçu du rapport dans un autre onglet."
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#. openerp-web
|
||||
#: code:addons/pdf_print_preview/static/src/js/dialog.js:27
|
||||
#: model:ir.ui.view,arch_db:pdf_print_preview.view_users_preview_print_form
|
||||
#, python-format
|
||||
msgid "Preview"
|
||||
msgstr "Aperçu"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#: model:ir.actions.act_window,name:pdf_print_preview.action_short_preview_print
|
||||
msgid "Preview Print"
|
||||
msgstr "Aperçu avant impression"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#: model:ir.model.fields,field_description:pdf_print_preview.field_res_users_preview_print
|
||||
msgid "Preview print"
|
||||
msgstr "Aperçu avant impression"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#: model:ir.ui.view,arch_db:pdf_print_preview.view_users_preview_print_form
|
||||
msgid "Refresh"
|
||||
msgstr "Rafraîchir"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#. openerp-web
|
||||
#: code:addons/pdf_print_preview/static/src/js/pdf_preview.js:35
|
||||
#: code:addons/pdf_print_preview/static/src/js/pdf_preview.js:59
|
||||
#: model:ir.ui.view,arch_db:pdf_print_preview.view_users_preview_print_form
|
||||
#, python-format
|
||||
msgid "Report"
|
||||
msgstr "Report"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#. openerp-web
|
||||
#: code:addons/pdf_print_preview/static/src/xml/user_menu.xml:6
|
||||
#, python-format
|
||||
msgid "Report preview"
|
||||
msgstr "Aperçu du rapport"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#: model:ir.ui.view,arch_db:pdf_print_preview.short_preview_print_from
|
||||
msgid "Save"
|
||||
msgstr "Sauvegarder"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#. openerp-web
|
||||
#: code:addons/pdf_print_preview/static/src/js/pdf_preview.js:14
|
||||
#, python-format
|
||||
msgid "Unable to find Wkhtmltopdf on this \n"
|
||||
"system. The report will be shown in html.<br><br><a href='http://wkhtmltopdf.org/' target='_blank'>\n"
|
||||
"wkhtmltopdf.org</a>"
|
||||
msgstr "Wkhtmltopdf n'a pas été trouvé sur ce système.\n"
|
||||
"Le rapport sera affiché en HTML.<br><br><a href=\"http://wkhtmltopdf.org/\" target=\"_blank\">\n"
|
||||
"wkhtmltopdf.org</a>"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#: model:ir.model,name:pdf_print_preview.model_res_users
|
||||
#: model:ir.ui.view,arch_db:pdf_print_preview.short_preview_print_from
|
||||
msgid "Users"
|
||||
msgstr "Utilisateurs"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#. openerp-web
|
||||
#: code:addons/pdf_print_preview/static/src/js/pdf_preview.js:15
|
||||
#, python-format
|
||||
msgid "You need to start OpenERP with at least two \n"
|
||||
"workers to print a pdf version of the reports."
|
||||
msgstr "Vous devez démarrer Odoo avec au moins 2 workers pour imprimer une version PDF des rapports."
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#. openerp-web
|
||||
#: code:addons/pdf_print_preview/static/src/js/pdf_preview.js:16
|
||||
#, python-format
|
||||
msgid "You should upgrade your version of\n"
|
||||
"Wkhtmltopdf to at least 0.12.0 in order to get a correct display of headers and footers as well as\n"
|
||||
"support for table-breaking between pages.<br><br><a href='http://wkhtmltopdf.org/' \n"
|
||||
"target='_blank'>wkhtmltopdf.org</a>"
|
||||
msgstr "Vous devriez mettre à jour la version de \n"
|
||||
"Wkhtmltopdf (0.12.0 min.) pour avoir un affichage correct des entêtes et des pieds de page\n"
|
||||
"ainsi que le support de la table des sauts de page <br><br><a href=\"http://wkhtmltopdf.org/\" target=\"_blank\">wkhtmltopdf.org</a>"
|
||||
|
||||
#. module: pdf_print_preview
|
||||
#. openerp-web
|
||||
#: code:addons/pdf_print_preview/static/src/js/pdf_preview.js:17
|
||||
#, python-format
|
||||
msgid "Your installation of Wkhtmltopdf seems to be broken. The report will be shown in html.<br><br><a href='http://wkhtmltopdf.org/' target='_blank'>wkhtmltopdf.org</a>"
|
||||
msgstr "Your installation of Wkhtmltopdf seems to be broken. The report will be shown in html.<br><br><a href='http://wkhtmltopdf.org/' target='_blank'>wkhtmltopdf.org</a>"
|
||||
|
||||
5
pdf_print_preview/models/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import res_users
|
||||
from . import ir_http
|
||||
from . import ir_actions_report
|
||||
28
pdf_print_preview/models/ir_actions_report.py
Normal file
@@ -0,0 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import models, tools
|
||||
from odoo.exceptions import ValidationError, UserError
|
||||
import traceback
|
||||
|
||||
|
||||
class Http(models.Model):
|
||||
_inherit = "ir.actions.report"
|
||||
|
||||
def _render_qweb_pdf(self, report_ref, res_ids=None, data=None):
|
||||
if tools.config['test_enable'] or tools.config['test_file']:
|
||||
return super()._render_qweb_pdf(report_ref, res_ids=res_ids, data=data)
|
||||
|
||||
result = False, False
|
||||
messageError = False
|
||||
try:
|
||||
result = super()._render_qweb_pdf(report_ref, res_ids=res_ids, data=data)
|
||||
except (UserError, ValidationError) as e:
|
||||
messageError = str(e)
|
||||
except Exception as e:
|
||||
messageError = traceback.format_exc()
|
||||
|
||||
if messageError:
|
||||
report_ref = "pdf_print_preview.report_error_catcher"
|
||||
data = {'error': messageError}
|
||||
result = super()._render_qweb_pdf(report_ref, res_ids=[], data=data)
|
||||
return result
|
||||
19
pdf_print_preview/models/ir_http.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import models
|
||||
|
||||
class Http(models.AbstractModel):
|
||||
_inherit = "ir.http"
|
||||
|
||||
def session_info(self):
|
||||
result = super(Http, self).session_info()
|
||||
|
||||
user = self.env.user
|
||||
|
||||
result.update({
|
||||
"preview_print": user.preview_print,
|
||||
"automatic_printing": user.automatic_printing,
|
||||
"report_layout": bool(user.company_id.external_report_layout_id)
|
||||
})
|
||||
|
||||
return result
|
||||
36
pdf_print_preview/models/res_users.py
Normal file
@@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResUsers(models.Model):
|
||||
_inherit = "res.users"
|
||||
|
||||
preview_print = fields.Boolean(
|
||||
string="Preview print",
|
||||
default=True
|
||||
)
|
||||
|
||||
automatic_printing = fields.Boolean(
|
||||
string="Automatic printing"
|
||||
)
|
||||
|
||||
def preview_reload(self):
|
||||
return {
|
||||
"type": "ir.actions.client",
|
||||
"tag": "reload"
|
||||
}
|
||||
|
||||
def preview_print_save(self):
|
||||
return {
|
||||
"type": "ir.actions.client",
|
||||
"tag": "reload_context"
|
||||
}
|
||||
|
||||
@property
|
||||
def SELF_READABLE_FIELDS(self):
|
||||
return super().SELF_READABLE_FIELDS + ["preview_print", "automatic_printing"]
|
||||
|
||||
@property
|
||||
def SELF_WRITEABLE_FIELDS(self):
|
||||
return super().SELF_WRITEABLE_FIELDS + ["preview_print", "automatic_printing"]
|
||||
9
pdf_print_preview/report/ir_actions_report.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="action_report_pdf_print_preview" model="ir.actions.report">
|
||||
<field name="name">Pdf print preview</field>
|
||||
<field name="model">res.users</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">pdf_print_preview.report_error_catcher</field>
|
||||
</record>
|
||||
</odoo>
|
||||
19
pdf_print_preview/report/ir_actions_report_templates.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<template id="report_error_catcher">
|
||||
<t t-set="company" t-value="env.company"/>
|
||||
<t t-call="web.html_container">
|
||||
<t t-call="web.internal_layout">
|
||||
<div class="page">
|
||||
<h5><b>Oops</b> Something went wrong when we printing the PDF:</h5>
|
||||
<br/>
|
||||
<div class="alert alert-danger">
|
||||
<p><t t-esc="error" /></p>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
</data>
|
||||
</odoo>
|
||||
BIN
pdf_print_preview/static/description/assets/Config_6_.png
Normal file
|
After Width: | Height: | Size: 130 KiB |
BIN
pdf_print_preview/static/description/assets/Config_8_.png
Normal file
|
After Width: | Height: | Size: 128 KiB |
BIN
pdf_print_preview/static/description/assets/config_1.PNG
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
pdf_print_preview/static/description/assets/config_10.PNG
Normal file
|
After Width: | Height: | Size: 80 KiB |
BIN
pdf_print_preview/static/description/assets/config_11.png
Normal file
|
After Width: | Height: | Size: 65 KiB |
BIN
pdf_print_preview/static/description/assets/config_12.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
pdf_print_preview/static/description/assets/config_2.PNG
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
pdf_print_preview/static/description/assets/config_3.PNG
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
pdf_print_preview/static/description/assets/config_4.PNG
Normal file
|
After Width: | Height: | Size: 80 KiB |
BIN
pdf_print_preview/static/description/assets/config_5.PNG
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
pdf_print_preview/static/description/assets/config_7.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
pdf_print_preview/static/description/assets/config_9.PNG
Normal file
|
After Width: | Height: | Size: 87 KiB |
BIN
pdf_print_preview/static/description/assets/icon.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
161
pdf_print_preview/static/description/assets/index.html
Normal file
@@ -0,0 +1,161 @@
|
||||
<section class="oe_container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h4 class="oe_slogan">
|
||||
<span class="label label-info orders_label_text_align">
|
||||
<span class="fa fa-star-o fa-spin"></span>
|
||||
Pdf Print Preview
|
||||
</span>
|
||||
</h4>
|
||||
<section style="text-align: center;font-size: 24px;">
|
||||
<b> Preview and print PDF report in your browser </b>
|
||||
</section>
|
||||
|
||||
<h4 class="oe_slogan">
|
||||
<span class="label label-success orders_label_text_align">
|
||||
<span class="fa fa-certificate fa-spin"></span>
|
||||
Feature
|
||||
</span>
|
||||
|
||||
</h4>
|
||||
<ul class="list-unstyled" style="font-size: 21px;">
|
||||
<li><i class="fa fa-check text-primary"></i> <b>PDF report preview, in current tab.</b></li>
|
||||
<li><i class="fa fa-check text-primary"></i> <b>PDF report preview, in another tab.</b></li>
|
||||
<li><i class="fa fa-check text-primary"></i> <b>Load report in another tab with print by default.</b></li>
|
||||
<li><i class="fa fa-check text-primary"></i> <b>Pos, point of sale pdf report support. All odoo app like sale, purchase support.</b></li>
|
||||
</ul>
|
||||
<h4 class="oe_slogan">
|
||||
<span class="label label-warning orders_label_text_align">
|
||||
<span class="fa fa-cog fa-spin"></span>
|
||||
Configuration
|
||||
</span>
|
||||
</h4>
|
||||
<div class="oe_span12">
|
||||
<h4><i class="fa fa-star-o fa-spin"></i> <b>When a user is administrator he can update report preview for each user.</b></h4>
|
||||
<div class="oe_demo oe_picture oe_screenshot">
|
||||
<img src="config_1.PNG">
|
||||
</div>
|
||||
<h4><i class="fa fa-star-o fa-spin"></i> <b>When a user is administrator Or not administrator he can update report preview with this shortcut.</b></h4>
|
||||
<div class="oe_demo oe_picture oe_screenshot">
|
||||
<img src="config_2.PNG" />
|
||||
</div>
|
||||
<div class="oe_demo oe_picture oe_screenshot">
|
||||
<img src="config_3.PNG" />
|
||||
</div>
|
||||
<h4><i class="fa fa-star-o fa-spin"></i><b>Try to allow <b style='color: red;'>pop up</b> in your browser before preview report in another tab.</b>
|
||||
<div class="oe_demo oe_picture oe_screenshot">
|
||||
<img src="config_12.png" />
|
||||
</div>
|
||||
<div class="oe_demo oe_picture oe_screenshot">
|
||||
<img src="config_11.png" />
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="oe_slogan">
|
||||
<span class="label label-success orders_label_text_align">
|
||||
Demo test
|
||||
</span>
|
||||
|
||||
</h4>
|
||||
|
||||
<div class="oe_span12">
|
||||
|
||||
<div class="oe_demo oe_picture oe_screenshot">
|
||||
<img src="config_4.PNG">
|
||||
</div>
|
||||
<h4 class="oe_slogan">
|
||||
<span class="orders_label_text_align">
|
||||
<b> Report preview </b>
|
||||
</span>
|
||||
</h4>
|
||||
<div class="oe_demo oe_picture oe_screenshot">
|
||||
<img src="config_5.PNG">
|
||||
</div>
|
||||
<h4 class="oe_slogan">
|
||||
<span class="orders_label_text_align">
|
||||
<b> Full screen 1 </b>
|
||||
</span>
|
||||
</h4>
|
||||
<div class="oe_demo oe_picture oe_screenshot">
|
||||
<img src="report.png">
|
||||
</div>
|
||||
<h4 class="oe_slogan">
|
||||
<span class="orders_label_text_align">
|
||||
<b> Full screen 2 </b>
|
||||
</span>
|
||||
</h4>
|
||||
<div class="oe_demo oe_picture oe_screenshot">
|
||||
<img src="config_7.png">
|
||||
</div>
|
||||
<h4 class="oe_slogan">
|
||||
<span class="orders_label_text_align">
|
||||
<b> Print report </b>
|
||||
</span>
|
||||
</h4>
|
||||
<div class="oe_demo oe_picture oe_screenshot">
|
||||
<img src="print_report.png">
|
||||
</div>
|
||||
<h4 class="oe_slogan">
|
||||
<span class="orders_label_text_align">
|
||||
<b> Load report in another tab with print by default </b>
|
||||
</span>
|
||||
</h4>
|
||||
<div class="oe_demo oe_picture oe_screenshot">
|
||||
<img src="config_9.PNG">
|
||||
</div>
|
||||
<h4 class="oe_slogan">
|
||||
<span class="orders_label_text_align">
|
||||
<b> Load report in another tab </b>
|
||||
</span>
|
||||
</h4>
|
||||
<div class="oe_demo oe_picture oe_screenshot">
|
||||
<img src="config_10.PNG">
|
||||
</div>
|
||||
|
||||
<h4 class="oe_slogan">
|
||||
<span class="label label-warning orders_label_text_align">
|
||||
HTML5 Browser Support
|
||||
</span>
|
||||
</h4>
|
||||
<h4>
|
||||
<span>
|
||||
<i class="fa fa-check text-primary"> Print by default( <b>Automatic printing</b> ) is tested just with Chrome and Opera.
|
||||
</span>
|
||||
</h4>
|
||||
<h4>
|
||||
<span>
|
||||
<i class="fa fa-check text-primary"> Pdf print preview Compatible with all browser.
|
||||
</span>
|
||||
</h4>
|
||||
<div class="oe_row oe_spaced text-center">
|
||||
<a class="btn btn-warning btn-lg" href="https://www.youtube.com/watch?v=hEXqt4moKts" target="_blank"><i class="fa fa-youtube" style="padding: 3px"></i>Click here to see it on youtube
|
||||
</a>
|
||||
<img src="https://www.itechgroup.info/web/image/product.product/10/image_1024/Pdf%20Print%20Preview%20%2817.0%29?unique=64031cc&utm_source=odoo-apps&utm_medium=link&utm_campaign=pdf-preview-17" style="display: none;"/>
|
||||
</div>
|
||||
<center>
|
||||
<img src="youtube.gif">
|
||||
</center>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="oe_container oe_dark">
|
||||
<div class="oe_row oe_spaced text-center">
|
||||
<div class="oe_span12">
|
||||
<h2 class="oe_slogan">Technical Help & Support</h2>
|
||||
</div>
|
||||
<div class="col-md-12 pad0">
|
||||
<div class="oe_mt16">
|
||||
<p><h4>For any type of technical help & support requests, Feel free to contact us</h4></p>
|
||||
<p><h4><span class="fa fa-language fa-spin"></span> <b>For custom translate please contact us</b></h4></p>
|
||||
<a class="btn btn-warning btn-lg" rel="nofollow" href="mailto:support@itechgroup.info"><span
|
||||
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||
<i class="fa fa-envelope" style="padding: 3px"></i> support@itechgroup.info
|
||||
</a>
|
||||
<a class="btn btn-warning btn-lg" rel="nofollow" href="mailto:contact@itechgroup.info"><span
|
||||
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||
<i class="fa fa-envelope" style="padding: 3px"></i> contact@itechgroup.info
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
BIN
pdf_print_preview/static/description/assets/print_report.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
pdf_print_preview/static/description/assets/report.png
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
pdf_print_preview/static/description/assets/youtube.gif
Normal file
|
After Width: | Height: | Size: 6.0 MiB |
BIN
pdf_print_preview/static/description/banner.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
pdf_print_preview/static/description/icon.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
473
pdf_print_preview/static/description/index.html
Normal file
@@ -0,0 +1,473 @@
|
||||
<section>
|
||||
<div class="row justify-content-center pt-4">
|
||||
<div class="col-12 text-center">
|
||||
<h4>Boost Efficiency with Odoo's Pdf Print Preview Module</h4>
|
||||
</div>
|
||||
<div class="col align-self-center">
|
||||
<p>
|
||||
Streamline your Odoo workflow and save time with the Pdf Print Preview
|
||||
module. This powerful tool allows you to conveniently preview reports
|
||||
directly within your browser, eliminating the need for constant
|
||||
downloads.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="oe_container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<h4
|
||||
style="
|
||||
font-size: 24px;
|
||||
font-family: 'Lato', 'Open Sans', 'Helvetica', Sans;
|
||||
text-align: center;
|
||||
"
|
||||
>
|
||||
<span
|
||||
class="d-none d-sm-inline-block"
|
||||
style="
|
||||
width: 10%;
|
||||
margin: 32px 20px;
|
||||
border-top: solid 1px;
|
||||
vertical-align: middle;
|
||||
opacity: 0.3;
|
||||
"
|
||||
></span>
|
||||
<i class="fa fa-star-o fa-spin"></i>
|
||||
<b class="ps-2 pe-2">Features</b>
|
||||
<i class="fa fa-star-o fa-spin"></i>
|
||||
<span
|
||||
class="d-none d-sm-inline-block"
|
||||
style="
|
||||
width: 10%;
|
||||
margin: 32px 20px;
|
||||
border-top: solid 1px;
|
||||
vertical-align: middle;
|
||||
opacity: 0.3;
|
||||
"
|
||||
></span>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-12">
|
||||
<div class="container" style="border-radius: 10px; padding: 10px 0px">
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<div class="pl-md-0 pr-md-0 pl-3 pr-3">
|
||||
<h5>Download Smart: Preview First</h5>
|
||||
<p>
|
||||
No more downloading unnecessary files! Preview PDF reports
|
||||
with our module before download, saving you time and storage
|
||||
space
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12">
|
||||
<div class="container" style="border-radius: 10px; padding: 10px 0px">
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<div class="pl-md-0 pr-md-0 pl-3 pr-3">
|
||||
<h5>One-Click Printing</h5>
|
||||
<p>
|
||||
Ditch the printing headaches! One-Click Printing streamlines your
|
||||
workflow, saving you time and letting you focus on what matters
|
||||
most finishing tasks faster.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12">
|
||||
<div class="container" style="border-radius: 10px; padding: 10px 0px">
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<div class="pl-md-0 pr-md-0 pl-3 pr-3">
|
||||
<h5>Manage Docs Efficiently</h5>
|
||||
<p>
|
||||
Our module eliminates wasted time and resources by preventing
|
||||
unnecessary downloads and re-downloads
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12">
|
||||
<div class="container" style="border-radius: 10px; padding: 10px 0px">
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<div class="pl-md-0 pr-md-0 pl-3 pr-3">
|
||||
<h5>Document Verification</h5>
|
||||
<p>
|
||||
Reduce Download Frustration: Preview documents to ensure
|
||||
accuracy and avoid unnecessary downloads
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12">
|
||||
<div class="container" style="border-radius: 10px; padding: 10px 0px">
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<div class="pl-md-0 pr-md-0 pl-3 pr-3">
|
||||
<h5>Batch Preview: See Them All at Once</h5>
|
||||
<p>
|
||||
With our module, users can easily view multiple documents at
|
||||
the same time, eliminating the need to download them one by
|
||||
one
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12">
|
||||
<div class="container" style="border-radius: 10px; padding: 10px 0px">
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<div class="pl-md-0 pr-md-0 pl-3 pr-3">
|
||||
<h5>Set your preferred preview and print options</h5>
|
||||
<p>
|
||||
With our module, you can tailor your printing experience!
|
||||
Customize settings for perfect printouts, or simply preview
|
||||
documents before sending them to the printer
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="oe_container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<h4
|
||||
style="
|
||||
font-size: 24px;
|
||||
font-family: 'Lato', 'Open Sans', 'Helvetica', Sans;
|
||||
text-align: center;
|
||||
"
|
||||
>
|
||||
<span
|
||||
class="d-none d-sm-inline-block"
|
||||
style="
|
||||
width: 10%;
|
||||
margin: 32px 20px;
|
||||
border-top: solid 1px;
|
||||
vertical-align: middle;
|
||||
opacity: 0.3;
|
||||
"
|
||||
></span>
|
||||
<i class="fa fa-cog fa-spin"></i>
|
||||
<b class="ps-2 pe-2">Configuration</b>
|
||||
<i class="fa fa-cog fa-spin"></i>
|
||||
<span
|
||||
class="d-none d-sm-inline-block"
|
||||
style="
|
||||
width: 10%;
|
||||
margin: 32px 20px;
|
||||
border-top: solid 1px;
|
||||
vertical-align: middle;
|
||||
opacity: 0.3;
|
||||
"
|
||||
></span>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="oe_container pb-2">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 pt-sm-4 pb-sm-4 pl-sm-1 pr-sm-5 pl-5 pr-5">
|
||||
<h5>Take control of your report previews</h5>
|
||||
As an administrator, you can now customize everyone's view for maximum
|
||||
efficiency. And don't worry, everyone can still personalize their own
|
||||
report previews with a quick and easy shortcut.
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="oe_row_img oe_centered">
|
||||
<img
|
||||
class="oe_picture oe_screenshot"
|
||||
src="assets/config_1.PNG"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="oe_container pb-2">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 pt-sm-4 pb-sm-4 pl-sm-1 pr-sm-5 pl-5 pr-5">
|
||||
<h5>Everyone Can Personalize</h5>
|
||||
No matter your role in Odoo, a convenient shortcut allows you to
|
||||
personalize your report preview. This means everyone can quickly
|
||||
adjust how they see reports, ensuring they have the information they
|
||||
need in the clearest format. this handy feature empowers you to take
|
||||
control and optimize your Odoo experience.
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="oe_row_img oe_centered">
|
||||
<img
|
||||
class="oe_picture oe_screenshot pb-2"
|
||||
src="assets/config_2.PNG"
|
||||
style="width: 100%"
|
||||
/>
|
||||
<img
|
||||
class="oe_picture oe_screenshot"
|
||||
src="assets/config_3.PNG"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="oe_container pb-2">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 pt-sm-4 pb-sm-4 pl-sm-1 pr-sm-5 pl-5 pr-5">
|
||||
<h5>Open PDF report in other tab & print</h5>
|
||||
This means the report wouldn't download to your computer, but instead,
|
||||
it would open within another browser tab, separate from the original
|
||||
webpage where you found the link or button.
|
||||
<b>Print mode: </b>The report would be displayed with the layout and
|
||||
formatting adjusted as if it were ready for printing.
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="oe_row_img oe_centered">
|
||||
<img
|
||||
class="oe_picture oe_screenshot pb-2"
|
||||
src="assets/config_12.png"
|
||||
style="width: 100%"
|
||||
/>
|
||||
<img
|
||||
class="oe_picture oe_screenshot"
|
||||
src="assets/config_11.png"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="oe_container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<h4
|
||||
style="
|
||||
font-size: 24px;
|
||||
font-family: 'Lato', 'Open Sans', 'Helvetica', Sans;
|
||||
text-align: center;
|
||||
"
|
||||
>
|
||||
<span
|
||||
class="d-none d-sm-inline-block"
|
||||
style="
|
||||
width: 10%;
|
||||
margin: 32px 20px;
|
||||
border-top: solid 1px;
|
||||
vertical-align: middle;
|
||||
opacity: 0.3;
|
||||
"
|
||||
></span>
|
||||
<b class="ps-2 pe-2">Demo test</b>
|
||||
<span
|
||||
class="d-none d-sm-inline-block"
|
||||
style="
|
||||
width: 10%;
|
||||
margin: 32px 20px;
|
||||
border-top: solid 1px;
|
||||
vertical-align: middle;
|
||||
opacity: 0.3;
|
||||
"
|
||||
></span>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="oe_container pb-2">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 pt-sm-4 pb-sm-4 pl-sm-1 pr-sm-5 pl-5 pr-5">
|
||||
<h5>Select one or more documents to preview</h5>
|
||||
This helps you verify the document is indeed what you need, saving you
|
||||
time and avoiding unnecessary downloads
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="oe_row_img oe_centered">
|
||||
<img
|
||||
class="oe_picture oe_screenshot"
|
||||
src="assets/config_4.PNG"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="oe_container pb-2">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 pt-sm-4 pb-sm-4 pl-sm-1 pr-sm-5 pl-5 pr-5">
|
||||
<h5>Report preview</h5>
|
||||
Provides view of a report's content before downloading or processing
|
||||
it further. This helps users save time, improve workflow, and make
|
||||
informed decisions about the report's use
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="oe_row_img oe_centered">
|
||||
<img
|
||||
class="oe_picture oe_screenshot"
|
||||
src="assets/config_5.PNG"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="oe_container pb-2">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 pt-sm-4 pb-sm-4 pl-sm-1 pr-sm-5 pl-5 pr-5">
|
||||
<h5>Full Screen</h5>
|
||||
The <b>Full Screen</b> option in our module allows you to maximize the
|
||||
document view for improved readability, focus, and clarity when
|
||||
reviewing documents. This is a convenient feature that enhances the
|
||||
user experience and facilitates better interaction with document
|
||||
content.
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="oe_row_img oe_centered">
|
||||
<img
|
||||
class="oe_picture oe_screenshot pb-2"
|
||||
src="assets/report.png"
|
||||
style="width: 100%"
|
||||
/>
|
||||
<img
|
||||
class="oe_picture oe_screenshot"
|
||||
src="assets/config_7.png"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="oe_container pb-2">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 pt-sm-4 pb-sm-4 pl-sm-1 pr-sm-5 pl-5 pr-5">
|
||||
<h5>Print report</h5>
|
||||
<b>Print report</b> within document previews allow users to see how a
|
||||
document will appear when printed, facilitating verification of
|
||||
layout, formatting, and page breaks before sending it to the printer.
|
||||
This helps save time, reduce paper waste, and ensure a more
|
||||
professional-looking final document.
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="oe_row_img oe_centered">
|
||||
<img
|
||||
class="oe_picture oe_screenshot pb-2"
|
||||
src="assets/print_report.png"
|
||||
style="width: 100%"
|
||||
/>
|
||||
<img
|
||||
class="oe_picture oe_screenshot"
|
||||
src="assets/config_9.PNG"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="oe_container pb-2">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 pt-sm-4 pb-sm-4 pl-sm-1 pr-sm-5 pl-5 pr-5">
|
||||
<h5>Load report in another tab with print by default</h5>
|
||||
Instead of loading the report within the current workspace, it opens
|
||||
in a separate browser tab. This allows you to keep working in the
|
||||
original tab while viewing the report.
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="oe_row_img oe_centered">
|
||||
<img
|
||||
class="oe_picture oe_screenshot pb-2"
|
||||
src="assets/config_10.PNG"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="oe_container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<div class="oe_span12">
|
||||
<div class="oe_row oe_spaced text-center">
|
||||
<a
|
||||
class="btn btn-warning btn-lg"
|
||||
href="https://youtu.be/aPYgzADUDKs"
|
||||
target="_blank"
|
||||
><i class="fa fa-youtube" style="padding: 3px"></i>Watch demo on
|
||||
YouTube!
|
||||
</a>
|
||||
<img
|
||||
src="https://tech58.odoo.com/r/uFs"
|
||||
style="display: none"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-center pb-2">
|
||||
<img src="assets/youtube.gif" class="oe_screenshot "/>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="oe_container oe_dark">
|
||||
<div class="oe_row oe_spaced text-center">
|
||||
<div class="oe_span12">
|
||||
<h2 class="oe_slogan">Technical Help & Support</h2>
|
||||
</div>
|
||||
<div class="col-md-12 pad0">
|
||||
<div class="oe_mt16">
|
||||
<h4>
|
||||
For any type of technical help & support requests, Feel free to
|
||||
contact us
|
||||
</h4>
|
||||
<h4>
|
||||
<span class="fa fa-language fa-spin"></span>
|
||||
<b>For custom translate please contact us</b>
|
||||
</h4>
|
||||
<a
|
||||
class="btn btn-warning btn-lg"
|
||||
rel="nofollow"
|
||||
href="mailto:support@itechgroup.info"
|
||||
><span
|
||||
style="
|
||||
height: 354px;
|
||||
width: 354px;
|
||||
top: -147.433px;
|
||||
left: -6.93335px;
|
||||
"
|
||||
class="o_ripple"
|
||||
></span>
|
||||
<i class="fa fa-envelope" style="padding: 3px"></i>
|
||||
support@itechgroup.info
|
||||
</a>
|
||||
<a
|
||||
class="btn btn-warning btn-lg"
|
||||
rel="nofollow"
|
||||
href="mailto:contact@itechgroup.info"
|
||||
><span
|
||||
style="
|
||||
height: 354px;
|
||||
width: 354px;
|
||||
top: -147.433px;
|
||||
left: -6.93335px;
|
||||
"
|
||||
class="o_ripple"
|
||||
></span>
|
||||
<i class="fa fa-envelope" style="padding: 3px"></i>
|
||||
contact@itechgroup.info
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
177
pdf_print_preview/static/lib/pdfjs/LICENSE
Normal file
@@ -0,0 +1,177 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||