Browse Source

Feb 17 [UPDT] : Updated 'sale_product_image'

pull/317/merge
AjmalCybro 2 months ago
parent
commit
5dbc44937d
  1. 3
      sale_product_image/__manifest__.py
  2. 6
      sale_product_image/doc/RELEASE_NOTES.md
  3. 4
      sale_product_image/report/sale_order_report.xml
  4. 17
      sale_product_image/views/sale_portal_templates.xml

3
sale_product_image/__manifest__.py

@ -21,7 +21,7 @@
#############################################################################
{
"name": "Sale Order Line Images",
"version": "17.0.1.0.0",
"version": "17.0.1.1.0",
"category": 'Sales',
"summary": "Order Line Images In Sale and Sale Report",
"description": """Order Line Images In Sale and Sale Report, odoo 17, order line images""",
@ -36,6 +36,7 @@
'views/sale_order_line_views.xml',
'views/res_config_settings_views.xml',
'report/sale_order_report.xml',
'views/sale_portal_templates.xml',
],
'images': ['static/description/banner.jpg'],
'license': 'LGPL-3',

6
sale_product_image/doc/RELEASE_NOTES.md

@ -11,3 +11,9 @@
##### Bug fixes
- Updated the image size in the report
#### 10.12.2024
#### Version 17.0.1.1.0
##### Bug fixes
- Updated the image in the portal sale orders

4
sale_product_image/report/sale_order_report.xml

@ -14,8 +14,8 @@
position="after">
<t t-if="request.env['ir.config_parameter'].sudo().get_param('sale_product_image.is_show_product_image_in_sale_report')">
<td>
<span t-field="line.order_line_image"
t-options='{"widget": "image", "qweb_img_responsive": False, "class": "img img-fluid"}'/></td>
<img t-att-src="image_data_uri(line.order_line_image)" style="max-height:45pt;max-width:90%" alt="Company Logo"/>
</td>
</t>
</xpath>
</template>

17
sale_product_image/views/sale_portal_templates.xml

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Added Product Images in the portal sale orders -->
<template id="sale_order_portal_content_inherit"
inherit_id="sale.sale_order_portal_content">
<xpath expr="//th[@id='product_qty_header']" position="before">
<th t-if="request.env['ir.config_parameter'].sudo().get_param('sale_product_image.is_show_product_image_in_sale_report')" class="text-end">
Image
</th>
</xpath>
<xpath expr="//td[@id='quote_qty_td']" position="before">
<td t-if="request.env['ir.config_parameter'].sudo().get_param('sale_product_image.is_show_product_image_in_sale_report')" class="text-end">
<img t-att-src="image_data_uri(line.order_line_image)" style="height:50px;width:50px;"/>
</td>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save