Skip to content

Commit

Permalink
[FIX] stock_ux: now origin description is searched in the sale line
Browse files Browse the repository at this point in the history
  • Loading branch information
vib-adhoc committed Jun 5, 2023
1 parent 5589849 commit 6e90fa6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stock_ux/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Stock UX',
'version': "15.0.1.3.0",
'version': "15.0.1.4.0",
'category': 'Warehouse Management',
'sequence': 14,
'summary': '',
Expand Down
8 changes: 6 additions & 2 deletions stock_ux/views/report_deliveryslip.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
</xpath>
<xpath expr="//table[@name='stock_move_table']/tbody/tr/td[1]" position="after">
<td t-if="o.env['ir.config_parameter'].sudo().get_param('stock_ux.delivery_slip_use_origin') == 'True'">
<span t-field="move.name"/>
<p t-if="move.sale_line_id.name != move.product_id.name">
<span t-field="move.sale_line_id.name"/>
</p>
<p t-if="move.description_picking != move.product_id.name">
<span t-field="move.description_picking"/>
</p>
Expand All @@ -32,7 +34,9 @@
</xpath>
<xpath expr="//td[1]" position="after">
<td t-if="o.env['ir.config_parameter'].sudo().get_param('stock_ux.delivery_slip_use_origin') == 'True'">
<span t-field="move_line.move_id.name"/>
<p t-if="move_line.move_id.sale_line_id.name != move_line.product_id.name">
<span t-field="move_line.move_id.sale_line_id.name"/>
</p>
<p t-if="move_line.move_id.description_picking != move_line.product_id.name">
<span t-field="move_line.move_id.description_picking"/>
</p>
Expand Down

0 comments on commit 6e90fa6

Please sign in to comment.