Browse Source

Nov 21: [FIX] Bug Fixed 'sale_product_image'

pull/357/head
Cybrosys Technologies 5 months ago
parent
commit
893d0ecc9a
  1. 3
      sale_product_image/__manifest__.py
  2. 6
      sale_product_image/doc/RELEASE_NOTES.md
  3. 3
      sale_product_image/report/sale_order_report.xml
  4. 2
      sale_product_image/views/sale_order_line_views.xml

3
sale_product_image/__manifest__.py

@ -21,7 +21,7 @@
############################################################################# #############################################################################
{ {
"name": "Sale Order Line Images", "name": "Sale Order Line Images",
"version": "18.0.1.0.0", "version": "18.0.1.0.1",
"category": 'Sales', "category": 'Sales',
"summary": "Order Line Images In Sale and Sale Report", "summary": "Order Line Images In Sale and Sale Report",
"description": """Order Line Images In Sale and Sale Report, odoo 17, order line images""", "description": """Order Line Images In Sale and Sale Report, odoo 17, order line images""",
@ -43,4 +43,3 @@
'auto_install': False, 'auto_install': False,
'application': False, 'application': False,
} }

6
sale_product_image/doc/RELEASE_NOTES.md

@ -3,5 +3,9 @@
#### 05.10.2024 #### 05.10.2024
#### Version 18.0.1.0.0 #### Version 18.0.1.0.0
##### ADD ##### ADD
- Initial commit for Sale Order Line Images - Initial commit for Sale Order Line Images
#### 20.11.2024
#### Version 18.0.1.0.1
##### FIX
- Fixed the issue in printing product images in the pdf report.

3
sale_product_image/report/sale_order_report.xml

@ -14,8 +14,7 @@
position="after"> position="after">
<t t-if="request.env['ir.config_parameter'].sudo().get_param('sale_product_image.is_show_product_image_in_sale_report')"> <t t-if="request.env['ir.config_parameter'].sudo().get_param('sale_product_image.is_show_product_image_in_sale_report')">
<td style="height:100px !important;width:100px !important;"> <td style="height:100px !important;width:100px !important;">
<span t-field="line.order_line_image" <img t-att-src="image_data_uri(line.product_id.image_1920)" class="img-fluid"/>
t-options='{"widget": "image"}'/>
</td> </td>
</t> </t>
</xpath> </xpath>

2
sale_product_image/views/sale_order_line_views.xml

@ -15,7 +15,7 @@
<xpath expr="//field[@name='order_line']/list/field[@name='product_template_id']" <xpath expr="//field[@name='order_line']/list/field[@name='product_template_id']"
position="after"> position="after">
<field name="order_line_image" widget="image" <field name="order_line_image" widget="image"
style="height:20px ;width:20px;" readonly="1" column_invisible="not parent.is_image_true"/> style="height:30px ;width:30px;" readonly="1" column_invisible="not parent.is_image_true"/>
</xpath> </xpath>
</field> </field>
</record> </record>

Loading…
Cancel
Save