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. 5
      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",
"version": "18.0.1.0.0",
"version": "18.0.1.0.1",
"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""",
@ -43,4 +43,3 @@
'auto_install': False,
'application': False,
}

6
sale_product_image/doc/RELEASE_NOTES.md

@ -3,5 +3,9 @@
#### 05.10.2024
#### Version 18.0.1.0.0
##### ADD
- 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.

5
sale_product_image/report/sale_order_report.xml

@ -14,10 +14,9 @@
position="after">
<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;">
<span t-field="line.order_line_image"
t-options='{"widget": "image"}'/>
<img t-att-src="image_data_uri(line.product_id.image_1920)" class="img-fluid"/>
</td>
</t>
</xpath>
</template>
</odoo>
</odoo>

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']"
position="after">
<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>
</field>
</record>

Loading…
Cancel
Save