summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sales_report_product_image/LICENSE/LICENSE166
-rw-r--r--sales_report_product_image/README.rst35
-rw-r--r--sales_report_product_image/__init__.py3
-rw-r--r--sales_report_product_image/__manifest__.py23
-rw-r--r--sales_report_product_image/models/__init__.py3
-rw-r--r--sales_report_product_image/models/sale_product.py29
-rw-r--r--sales_report_product_image/static/description/fb.jpgbin0 -> 4632 bytes
-rw-r--r--sales_report_product_image/static/description/icon.pngbin0 -> 13176 bytes
-rw-r--r--sales_report_product_image/static/description/in.jpgbin0 -> 8533 bytes
-rw-r--r--sales_report_product_image/static/description/index.html286
-rw-r--r--sales_report_product_image/static/description/insta.jpgbin0 -> 8005 bytes
-rw-r--r--sales_report_product_image/static/description/large1.pngbin0 -> 105419 bytes
-rw-r--r--sales_report_product_image/static/description/medium.pngbin0 -> 92099 bytes
-rw-r--r--sales_report_product_image/static/description/odooqa32.pngbin0 -> 1767 bytes
-rw-r--r--sales_report_product_image/static/description/serpent32.pngbin0 -> 1147 bytes
-rw-r--r--sales_report_product_image/static/description/serpent_logo.pngbin0 -> 9506 bytes
-rw-r--r--sales_report_product_image/static/description/small.pngbin0 -> 53295 bytes
-rw-r--r--sales_report_product_image/static/description/tick.pngbin0 -> 19433 bytes
-rw-r--r--sales_report_product_image/static/description/tree_pro_image.pngbin0 -> 59019 bytes
-rw-r--r--sales_report_product_image/static/description/twitter.jpgbin0 -> 11155 bytes
-rw-r--r--sales_report_product_image/static/description/youtube.jpgbin0 -> 15608 bytes
-rw-r--r--sales_report_product_image/tests/__init__.py3
-rw-r--r--sales_report_product_image/tests/test_sales_report_product_image.py37
-rw-r--r--sales_report_product_image/views/report_saleorder.xml29
-rw-r--r--sales_report_product_image/views/sale_product_view.xml22
25 files changed, 636 insertions, 0 deletions
diff --git a/sales_report_product_image/LICENSE/LICENSE b/sales_report_product_image/LICENSE/LICENSE
new file mode 100644
index 0000000..84bb10a
--- /dev/null
+++ b/sales_report_product_image/LICENSE/LICENSE
@@ -0,0 +1,166 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Copyright (C) 2019-TODAY Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>).
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
diff --git a/sales_report_product_image/README.rst b/sales_report_product_image/README.rst
new file mode 100644
index 0000000..25db0a2
--- /dev/null
+++ b/sales_report_product_image/README.rst
@@ -0,0 +1,35 @@
+
+======================
+Product Image for Sale
+======================
+
+* Product images for sale order/quotation and report.
+* To display images of product in report, you need to tick print image and image size you want to display in report.
+
+========
+Features
+========
+
+Product Images In Quotation and Sale Order
+Product Images in Big, Medium and Small
+Product Images in Quotation and Sale Report
+Option to Print Images in Report Or Not
+
+============
+Similar Apps
+============
+
+Product Image for Sale
+Product Image
+Sales Product Image
+Sales Report Product Image
+sales product image
+sales product image in report
+product image in report
+image in sales report
+serpent product image report
+SCS product image option in report
+product images for quotation
+image in report
+Print image option in odoo
+image option in report
diff --git a/sales_report_product_image/__init__.py b/sales_report_product_image/__init__.py
new file mode 100644
index 0000000..a14d237
--- /dev/null
+++ b/sales_report_product_image/__init__.py
@@ -0,0 +1,3 @@
+# See LICENSE file for full copyright and licensing details.
+
+from . import models
diff --git a/sales_report_product_image/__manifest__.py b/sales_report_product_image/__manifest__.py
new file mode 100644
index 0000000..e2de257
--- /dev/null
+++ b/sales_report_product_image/__manifest__.py
@@ -0,0 +1,23 @@
+# See LICENSE file for full copyright and licensing details.
+
+{
+ # Module information
+ "name": "Product Image for Sale",
+ "version": "14.0.1.0.0",
+ "category": "Sales Management",
+ "sequence": "1",
+ "summary": """Product Image for Quatation/Sale Reports.""",
+ "description": """Product Image for Quatation/Sale Reports.""",
+ "license": "LGPL-3",
+ # Author
+ "author": "Serpent Consulting Services Pvt. Ltd.",
+ "website": "http://www.serpentcs.com",
+ "maintainer": "Serpent Consulting Services Pvt. Ltd.",
+ # Dependencies
+ "depends": ["sale_management"],
+ # Views
+ "data": ["views/sale_product_view.xml", "views/report_saleorder.xml"],
+ # Techical
+ "installable": True,
+ "auto_install": False,
+}
diff --git a/sales_report_product_image/models/__init__.py b/sales_report_product_image/models/__init__.py
new file mode 100644
index 0000000..5aec2aa
--- /dev/null
+++ b/sales_report_product_image/models/__init__.py
@@ -0,0 +1,3 @@
+# See LICENSE file for full copyright and licensing details.
+
+from . import sale_product
diff --git a/sales_report_product_image/models/sale_product.py b/sales_report_product_image/models/sale_product.py
new file mode 100644
index 0000000..cb7596c
--- /dev/null
+++ b/sales_report_product_image/models/sale_product.py
@@ -0,0 +1,29 @@
+# See LICENSE file for full copyright and licensing details.
+
+from odoo import fields, models
+
+
+class SaleOrder(models.Model):
+ _inherit = "sale.order"
+
+ print_image = fields.Boolean(
+ "Print Image",
+ help="""If ticked, you can see the product image in
+ report of sale order/quotation""",
+ )
+ image_sizes = fields.Selection(
+ [
+ ("image", "Big sized Image"),
+ ("image_medium", "Medium Sized Image"),
+ ("image_small", "Small Sized Image"),
+ ],
+ "Image Sizes",
+ default="image_small",
+ help="Image size to be displayed in report",
+ )
+
+
+class SaleOrderLine(models.Model):
+ _inherit = "sale.order.line"
+
+ image_small = fields.Binary("Product Image", related="product_id.image_1920")
diff --git a/sales_report_product_image/static/description/fb.jpg b/sales_report_product_image/static/description/fb.jpg
new file mode 100644
index 0000000..8fa52d3
--- /dev/null
+++ b/sales_report_product_image/static/description/fb.jpg
Binary files differ
diff --git a/sales_report_product_image/static/description/icon.png b/sales_report_product_image/static/description/icon.png
new file mode 100644
index 0000000..7a4a5bb
--- /dev/null
+++ b/sales_report_product_image/static/description/icon.png
Binary files differ
diff --git a/sales_report_product_image/static/description/in.jpg b/sales_report_product_image/static/description/in.jpg
new file mode 100644
index 0000000..d9b9a80
--- /dev/null
+++ b/sales_report_product_image/static/description/in.jpg
Binary files differ
diff --git a/sales_report_product_image/static/description/index.html b/sales_report_product_image/static/description/index.html
new file mode 100644
index 0000000..0a30218
--- /dev/null
+++ b/sales_report_product_image/static/description/index.html
@@ -0,0 +1,286 @@
+<section class="container oe_dark" style="background-color: #d8d5d6;">
+ <div class='row'>
+ <div class="col-sm-12 mt32 col-12 col-lg-12">
+ <a class="float-right" href="https://www.serpentcs.com" target="_blank"><img
+ src="serpent_logo.png"/></a>
+ </div>
+ </div>
+
+ <div class="oe_row">
+ <div class="col-sm-12 col-12 col-lg-12 text-center">
+ <h2 style="color: #875A7B;font-size: calc(14.4px + 2.5vw); font-family:
+ 'Lato', 'Open Sans', 'Helvetica', Sans; margin-top: 0px;">Product Images For Sale</h2>
+ </div>
+ <div class="text-center" style="margin: 16px 8%;">
+ <h2 class="text-left"
+ style="font-size: calc(16px + 0.3vw); font-family:
+ 'Lato', 'Open Sans', 'Helvetica', Sans; margin-top: 0px;">
+ This module provide feature to show the images in Sales and Quotations order lines, also we can print all the ordered product's images in Quotation and Sales order Report.
+ </h2>
+ </div>
+ </div>
+ <div class="col-sm-12 col-12 col-lg-12 text-center">
+ <ul style="margin-left: 0%; padding-left: 5%;">
+ <li>
+ <h3 style="margin-right: 4px; color: black; font-size: calc(16px + 0.3vw); text-align: justify;
+ font-family: Times New Roman;">You can see the below image of sale order/quotation having product's image.
+ </h3>
+ </li>
+ </ul>
+ <div class="text-center">
+ <img class="img img-responsive center-block oe_demo oe_screenshot" src="tree_pro_image.png" width="90%"/>
+ </div>
+ </div>
+ <br/>
+ <div class="col-sm-12 col-12 col-lg-12 text-center">
+ <ul style="margin-left: 0%; padding-left: 5%;">
+ <li>
+ <h3 style="margin-right: 4px; color: black; font-size: calc(16px + 0.3vw); text-align: justify;
+ font-family: Times New Roman;">To display images of product in report, you need to tick print image and image size you want to display in report.
+ </h3>
+ </li>
+ </ul>
+ <div class="text-center">
+ <img class="img img-responsive center-block oe_demo oe_screenshot" src="tick.png" width="90%"/>
+ </div>
+ </div>
+ <br/>
+ <div class="col-sm-12 col-12 col-lg-12 text-center">
+ <ul style="margin-left: 0%; padding-left: 5%;">
+ <li>
+ <h3 style="margin-right: 4px; color: black; font-size: calc(16px + 0.3vw); text-align: justify;
+ font-family: Times New Roman;">See the below image with small product size in report.
+ </h3>
+ </li>
+ </ul>
+ <div class="text-center">
+ <img class="img img-responsive center-block oe_demo oe_screenshot" src="small.png" width="90%"/>
+ </div>
+ <br/>
+ <ul style="margin-left: 0%; padding-left: 5%;">
+ <li>
+ <h3 style="margin-right: 4px; color: black; font-size: calc(16px + 0.3vw); text-align: justify;
+ font-family: Times New Roman;">See the below image with medium product size in report.
+ </h3>
+ </li>
+ </ul>
+ <div class="text-center">
+ <img class="img img-responsive center-block oe_demo oe_screenshot" src="medium.png" width="90%"/>
+ </div>
+ </div>
+ <br/>
+ <div class="col-sm-12 col-12 col-lg-12 text-center">
+ <ul style="margin-left: 0%; padding-left: 5%;">
+ <li>
+ <h3 style="margin-right: 4px; color: black; font-size: calc(16px + 0.3vw); text-align: justify;
+ font-family: Times New Roman;">See the below image with large product size in report.
+ </h3>
+ </li>
+ </ul>
+ <div class="text-center">
+ <img class="img img-responsive center-block oe_demo oe_screenshot" src="large1.png" width="90%"/>
+ </div>
+ <br/><br/><br/>
+ </div>
+</section>
+
+<!-- LEFT::LEFT PHOTO - MEDIUM -->
+<section class="container mt32">
+ <div class="row mt32">
+ <!-- LEFT::LEFT PHOTO - MEDIUM -->
+ <table style="font-family: 'Helvetica Neue', Helvetica, Arial,
+ sans-serif;" cellpadding="0" cellspacing="0" border="0" width="100%">
+
+ <tbody>
+ <tr>
+ <td style="font-size:16px; color:#d74930; font-weight:bold;text-align: center;" width="100%">
+ <span class="fa fa-certificate fa-1x mt8" style="color:#1f2327;">Check out our various Odoo Services below</spam>
+
+ </td>
+ </tr>
+ <tr>
+ <td style="border-bottom:#d74930 solid 1px; line-height:10px;">&nbsp;
+ </td>
+ </tr>
+ <tr>
+ <td >
+ <table style="font-size:11px; color:#697582; line-height:20px;" cellpadding="0" cellspacing="0" border="0" width="100%">
+ <tbody>
+ <tr>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.com/services/odoo-openerp-services/consulting"
+ style="color:#697582; text-decoration:none;">Odoo Consulting</a></span></td>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.com/services/odoo-openerp-services/gap-analysis"
+ style="color:#697582; text-decoration:none;">Gap Analysis and BPR</a></span></td>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.com/services/odoo-openerp-services/implementation"
+ style="color:#697582; text-decoration:none;">Odoo Implementation</a></span></td>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.com/services/ecommerce-integrations/magento-integration"
+ style="color:#697582; text-decoration:none;">Integration with E-Commerce</a></span></td>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.com/services/trainings/openerp-odoo-technical-training"
+ style="color:#697582; text-decoration:none;">Odoo Technical Training</a></span></td>
+ </tr>
+ <tr>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.com/services/odoo-openerp-services/offshore-development-partnership"
+ style="color:#697582; text-decoration:none;">Offshore & Onsite Development</a></span></td>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.com/odoo-packages/odoo-support-package"
+ style="color:#697582; text-decoration:none;">Support and Maintenance</a></span></td>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.com/services/odoo-openerp-services/hire-odoo-openerp-developer"
+ style="color:#697582; text-decoration:none;">Hire Dedicated Odoo Developer</a></span></td>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.com/services/ecommerce-integrations/paymentech-elavon-paypal-integration"
+ style="color:#697582; text-decoration:none;">Payment Gateway Integrations</a></span></td>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.com/services/trainings/openerpodoo-functional-training"
+ style="color:#697582; text-decoration:none;">Odoo Functional Training</a></span></td>
+ </tr>
+ <tr>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.com/services/community/aios-mobile-client"
+ style="color:#697582; text-decoration:none;">Odoo Mobile App Development</a></span></td>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.odooqa.com/page/manual-functional-testing"
+ style="color:#697582; text-decoration:none;">Odoo Manual Testing</a></span></td>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.odooqa.com/page/automated-functional-testing"
+ style="color:#697582; text-decoration:none;">Odoo Automated Testing</a></span></td>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.com/services/ecommerce-integrations/fedex-ups-usps-integration"
+ style="color:#697582; text-decoration:none;">Integration with Shipping API</a></span></td>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.com/services/odoo-openerp-services/installation-and-hosting"
+ style="color:#697582; text-decoration:none;">Installation & Hosting</a></span></td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td style="border-bottom:#d74930 solid 1px; line-height:10px;">&nbsp;
+ </td>
+ </tr>
+
+
+ <tr>
+ <td style="font-size:16px; color:#d74930; font-weight:bold;text-align: center;" width="100%">
+ <span class="fa fa-certificate fa-1x mt8" style="color:#1f2327;">Check out our various Odoo Based Products</spam>
+
+ </td>
+ </tr>
+ <tr>
+ <td style="border-bottom:#d74930 solid 1px; line-height:10px;">&nbsp;
+ </td>
+ </tr>
+ <tr>
+ <td >
+ <table style="font-size:11px; color:#697582; line-height:20px;" cellpadding="0" cellspacing="0" border="0" width="100%">
+ <tbody>
+ <tr>
+ <td width="20%"><span class="fa fa-coffee fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/restaurant-management-system"
+ style="color:#697582; text-decoration:none;">Restaurant Management</a></span></td>
+ <td width="20%"><span class="fa fa-building fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/property-management-system"
+ style="color:#697582; text-decoration:none;">Property Management</a></span></td>
+ <td width="20%"><span class="fa fa-plane fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/visa-management-system"
+ style="color:#697582; text-decoration:none;">Visa Agency Management</a></span></td>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/odoo-singapore-localization"
+ style="color:#697582; text-decoration:none;">Singapore Localization</a></span></td>
+ <td width="20%"><span class="fa fa-graduation-cap fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/education-management-system"
+ style="color:#697582; text-decoration:none;">School, University Management</a></span></td>
+ </tr>
+ <tr>
+ <td width="20%"><span class="fa fa-cubes fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/construction-management-system"
+ style="color:#697582; text-decoration:none;">Construction Management</a></span></td>
+ <td width="20%"><span class="fa fa-bus fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/fleet-management-systems"
+ style="color:#697582; text-decoration:none;">Fleet Management</a></span></td>
+ <td width="20%"><span class="fa fa-stethoscope fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/healthcare-management-software"
+ style="color:#697582; text-decoration:none;">Medical ERP</a></span></td>
+ <td width="20%"><span class="fa fa-hotel fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/hotel-management-system"
+ style="color:#697582; text-decoration:none;">Hotel Management</a></span></td>
+ <td width="20%"><span class="fa fa-users fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/human-resource-management-system"
+ style="color:#697582; text-decoration:none;">Human Resource Management</a></span></td>
+ </tr>
+ <tr>
+ <td width="20%"><span class="fa fa-map-marker fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/odoo-tracking-system"
+ style="color:#697582; text-decoration:none;">Field Service Management</a></span></td>
+ <td width="20%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/spa-salon-management-system"
+ style="color:#697582; text-decoration:none;">Spa & Salon Management</a></span></td>
+ <td width="20%"><span class="fa fa-phone fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/odoo-ringcentral-integration"
+ style="color:#697582; text-decoration:none;">Ringcentral telephone integration</a></span></td>
+ <td width="20%"><span class="fa fa-heart fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/customer-relationship-management"
+ style="color:#697582; text-decoration:none;">Customer Relationship</a></span></td>
+ <td width="20%"><span class="fa fa-user fa-1x" style="color:#697582;"> <a href="http://serpentcs.in/product/talent-management-system"
+ style="color:#697582; text-decoration:none;">Talent Management</a></span></td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td style="border-bottom:#d74930 solid 1px; line-height:10px;">&nbsp;
+ </td>
+ </tr>
+
+ <tr>
+ <td style="font-size:16px; color:#d74930; font-weight:bold;text-align: center;" width="100%">
+ <span class="fa fa-certificate fa-1x mt8" style="color:#1f2327;">For any questions, support and development contact us.</spam>
+
+ </td>
+ </tr>
+ <tr>
+ <td style="border-bottom:#d74930 solid 1px; line-height:10px;">&nbsp;
+ </td>
+ </tr>
+
+ <tr>
+ <td >
+ <table style="font-size:11px; color:#697582; line-height:20px;" cellpadding="0" cellspacing="0" border="0" width="100%">
+ <tbody>
+ <tr>
+ <td width="38%"><span class="fa fa-whatsapp fa-1x" style="color:#697582;"> (+91) 98793-54457, (+91) 90334-72982 </span>
+ <span class="fa fa-phone fa-1x" style="color:#697582;"> +91-79-2975-0867</span></td>
+ <td width="17%"><span class="fa fa-envelope fa-1x" style="color:#697582;"> <a href="mailto:contact@serpentcs.com"
+ style="color:#697582; text-decoration:none;">contact@serpentcs.com</a></span></td>
+ <td width="15%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.com"
+ style="color:#697582; text-decoration:none;">www.serpentcs.com</a></span></td>
+ <td width="15%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.serpentcs.in"
+ style="color:#697582; text-decoration:none;">www.serpentcs.in</a></span></td>
+ <td width="15%"><span class="fa fa-globe fa-1x" style="color:#697582;"> <a href="http://www.odooqa.com"
+ style="color:#697582; text-decoration:none;">www.odooqa.com</a></span></td>
+ </tr>
+ <tr>
+ <td width="38%"><span class="fa fa-hand-pointer-o fa-1x" style="color:#697582;"> WhatsApp, Telegram or Call 24X7</span></td>
+ <td width="17%"><span class="fa fa-hand-pointer-o fa-1x" style="color:#697582;"> Help! Send Mail</span></td>
+ <td width="15%"><span class="fa fa-hand-pointer-o fa-1x" style="color:#697582;"> Browse our Services</span></td>
+ <td width="15%"><span class="fa fa-hand-pointer-o fa-1x" style="color:#697582;"> Browse our Products</span></td>
+ <td width="15%"><span class="fa fa-hand-pointer-o fa-1x" style="color:#697582;"> QA Services</span></td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ <tr >
+ <td style="border-bottom:#d74930 solid 1px; line-height:10px;">&nbsp;
+ </td>
+ </tr>
+ <tr >
+ <td style="padding-top:9px;">
+ <center>
+ <a href="https://www.facebook.com/Serpent-Consulting-Services-Pvt-Ltd-299017730141795/" style="text-decoration:none;"><img src="fb.jpg" style="vertical-align:middle; border-radius: 50%;" width="25">
+ </a>
+ <a href="https://twitter.com/Serpent_CS" style="text-decoration:none;"><img src="twitter.jpg" style="vertical-align:middle; border-radius: 50%;" width="25">
+ </a>
+ <a href="https://www.linkedin.com/company-beta/2435682/" style="text-decoration:none;"><img src="in.jpg" style="vertical-align:middle; border-radius: 50%;" width="25">
+ </a>
+ <a href="https://www.youtube.com/user/husendaudi123/videos" style="text-decoration:none;"><img src="youtube.jpg" style="vertical-align:middle; border-radius: 50%;" width="25">
+ </a>
+ <a href="https://www.instagram.com/explore/tags/serpentcs/" style="text-decoration:none;"><img src="insta.jpg" style="vertical-align:middle; border-radius: 50%;" width="25">
+ </a>
+ <a href="http://www.serpentcs.com" style="text-decoration:none;"><img src="serpent32.png" style="vertical-align:middle; border-radius: 50%;" width="25">
+ </a>
+ <a href="http://www.serpentcs.in" style="text-decoration:none;"><img src="serpent32.png" style="vertical-align:middle; border-radius: 50%;" width="25">
+ </a>
+ <a href="http://www.odooqa.com" style="text-decoration:none;"><img src="odooqa32.png" style="vertical-align:middle; border-radius: 50%;" width="25">
+ </a>
+ </center>
+ </td>
+ </tr>
+ <tr >
+ <td style="font-size:8px; color:#697582; line-height:15px;padding-top:10px; text-align:justify;">
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+</section>
diff --git a/sales_report_product_image/static/description/insta.jpg b/sales_report_product_image/static/description/insta.jpg
new file mode 100644
index 0000000..c89a251
--- /dev/null
+++ b/sales_report_product_image/static/description/insta.jpg
Binary files differ
diff --git a/sales_report_product_image/static/description/large1.png b/sales_report_product_image/static/description/large1.png
new file mode 100644
index 0000000..7c1808d
--- /dev/null
+++ b/sales_report_product_image/static/description/large1.png
Binary files differ
diff --git a/sales_report_product_image/static/description/medium.png b/sales_report_product_image/static/description/medium.png
new file mode 100644
index 0000000..2ac67be
--- /dev/null
+++ b/sales_report_product_image/static/description/medium.png
Binary files differ
diff --git a/sales_report_product_image/static/description/odooqa32.png b/sales_report_product_image/static/description/odooqa32.png
new file mode 100644
index 0000000..b0db6c2
--- /dev/null
+++ b/sales_report_product_image/static/description/odooqa32.png
Binary files differ
diff --git a/sales_report_product_image/static/description/serpent32.png b/sales_report_product_image/static/description/serpent32.png
new file mode 100644
index 0000000..14612ca
--- /dev/null
+++ b/sales_report_product_image/static/description/serpent32.png
Binary files differ
diff --git a/sales_report_product_image/static/description/serpent_logo.png b/sales_report_product_image/static/description/serpent_logo.png
new file mode 100644
index 0000000..68dacf8
--- /dev/null
+++ b/sales_report_product_image/static/description/serpent_logo.png
Binary files differ
diff --git a/sales_report_product_image/static/description/small.png b/sales_report_product_image/static/description/small.png
new file mode 100644
index 0000000..b0daf6c
--- /dev/null
+++ b/sales_report_product_image/static/description/small.png
Binary files differ
diff --git a/sales_report_product_image/static/description/tick.png b/sales_report_product_image/static/description/tick.png
new file mode 100644
index 0000000..437dd61
--- /dev/null
+++ b/sales_report_product_image/static/description/tick.png
Binary files differ
diff --git a/sales_report_product_image/static/description/tree_pro_image.png b/sales_report_product_image/static/description/tree_pro_image.png
new file mode 100644
index 0000000..82b8de8
--- /dev/null
+++ b/sales_report_product_image/static/description/tree_pro_image.png
Binary files differ
diff --git a/sales_report_product_image/static/description/twitter.jpg b/sales_report_product_image/static/description/twitter.jpg
new file mode 100644
index 0000000..6d938f6
--- /dev/null
+++ b/sales_report_product_image/static/description/twitter.jpg
Binary files differ
diff --git a/sales_report_product_image/static/description/youtube.jpg b/sales_report_product_image/static/description/youtube.jpg
new file mode 100644
index 0000000..05382a7
--- /dev/null
+++ b/sales_report_product_image/static/description/youtube.jpg
Binary files differ
diff --git a/sales_report_product_image/tests/__init__.py b/sales_report_product_image/tests/__init__.py
new file mode 100644
index 0000000..86c9c33
--- /dev/null
+++ b/sales_report_product_image/tests/__init__.py
@@ -0,0 +1,3 @@
+# See LICENSE file for full copyright and licensing details.
+
+from . import test_sales_report_product_image
diff --git a/sales_report_product_image/tests/test_sales_report_product_image.py b/sales_report_product_image/tests/test_sales_report_product_image.py
new file mode 100644
index 0000000..b5e24af
--- /dev/null
+++ b/sales_report_product_image/tests/test_sales_report_product_image.py
@@ -0,0 +1,37 @@
+# Copyright 2016-TODAY Serpent Consulting Services Pvt. Ltd.
+# See LICENSE file for full copyright and licensing details.
+
+from odoo.tests import common
+
+
+class SaleReportProductImageTestCase(common.TransactionCase):
+
+ def setup(self):
+ super(SaleReportProductImageTestCase, self).setup()
+
+ def test_sale_report_product(self):
+ self.product = self.env.ref("product.product_product_7")
+ self.partner = self.env.ref("base.res_partner_2")
+
+ self.sale_order = self.env["sale.order"].create(
+ {
+ "partner_id": self.partner.id,
+ "partner_invoice_id": self.partner.id,
+ "partner_shipping_id": self.partner.id,
+ "pricelist_id": self.env.ref("product.list0").id,
+ "print_image": "True",
+ "image_sizes": "image_medium",
+ }
+ )
+ self.sale_order_line = self.env["sale.order.line"].create(
+ {
+ "name": self.product and self.product.name or " ",
+ "product_id": self.product and self.product.id or False,
+ "product_uom_qty": 2,
+ "product_uom": self.product.uom_id.id,
+ "price_unit": self.product.list_price,
+ "order_id": self.sale_order.id,
+ "tax_id": False,
+ "image_small": self.product.image_1920,
+ }
+ )
diff --git a/sales_report_product_image/views/report_saleorder.xml b/sales_report_product_image/views/report_saleorder.xml
new file mode 100644
index 0000000..8bec945
--- /dev/null
+++ b/sales_report_product_image/views/report_saleorder.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <template id="report_saleorder_document_inherit" inherit_id="sale.report_saleorder_document">
+ <xpath expr="//table[hasclass('o_main_table')]/thead/tr/th[1]" position="before">
+ <t t-if="doc.print_image and doc.image_sizes in ('image', 'image_medium', 'image_small') ">
+ <th style="width:15%;">Product Image</th>
+ </t>
+ </xpath>
+ <xpath expr="//table/tbody[hasclass('sale_tbody')]/t[2]/tr/t/td[1]" position="before">
+ <t t-if="doc.image_sizes == 'image' and doc.print_image ">
+ <td class="text-center">
+ <img t-if="line.product_id.image_1920" t-attf-src="data:image/*;base64,{{line.product_id.image_1920}}" style="resize:both;width:95%;height:auto"/>
+ </td>
+ </t>
+ <t t-if="doc.image_sizes == 'image_medium' and doc.print_image">
+ <td class="text-center">
+ <img t-if="line.product_id.image_1920" t-attf-src="data:image/*;base64,{{line.product_id.image_1920}}" style="resize:both;width:70%;height:auto"/>
+ </td>
+ </t>
+ <t t-if="doc.image_sizes == 'image_small' and doc.print_image ">
+ <td class="text-center">
+ <img t-if="line.product_id.image_1920" t-attf-src="data:image/*;base64,{{line.product_id.image_1920}}" style="resize:both;width:50%;height:auto"/>
+ </td>
+ </t>
+ </xpath>
+ </template>
+
+</odoo>
diff --git a/sales_report_product_image/views/sale_product_view.xml b/sales_report_product_image/views/sale_product_view.xml
new file mode 100644
index 0000000..3dce6fe
--- /dev/null
+++ b/sales_report_product_image/views/sale_product_view.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<odoo>
+
+ <record id="view_order_image_form_inherit" model="ir.ui.view">
+ <field name="name">sale.order.form.sale.image</field>
+ <field name="model">sale.order</field>
+ <field name="inherit_id" ref="sale.view_order_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="//field[@name='order_line']/form//field[@name='product_id']" position="before">
+ <field name="image_small" widget="image" optional="hide"/>
+ </xpath>
+ <xpath expr="//field[@name='order_line']/tree//field[@name='product_id']" position="before">
+ <field name="image_small" widget="image" height="50" optional="hide"/>
+ </xpath>
+ <field name="medium_id" position="after">
+ <field name="print_image"/>
+ <field name="image_sizes" attrs="{'required': [('print_image', '!=', False)]}"/>
+ </field>
+ </field>
+ </record>
+
+</odoo>