Skip to content

Commit

Permalink
[FIX] stock_ux: deliveryslip fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vib-adhoc committed Aug 2, 2023
1 parent 50e7000 commit e35eee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stock_ux/models/stock_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _get_aggregated_product_quantities(self, **kwargs):
if bool(self.env['ir.config_parameter'].sudo().get_param('stock_ux.delivery_slip_use_origin', 'False')) == True:
for line in aggregated_move_lines:
moves = self.filtered(lambda sml: sml.product_id == aggregated_move_lines[line]['product']).mapped('move_id')
if moves.mapped('origin_description'):
if len(moves.mapped('origin_description')) >= 1 and moves.mapped('origin_description')[0]:
aggregated_move_lines[line]['description'] = False
aggregated_move_lines[line]['name'] =', '.join(moves.mapped('origin_description'))
return aggregated_move_lines

0 comments on commit e35eee1

Please sign in to comment.