diff --git a/sale_procurement_group_by_line/model/sale.py b/sale_procurement_group_by_line/model/sale.py index b422de67537..56b260053c3 100644 --- a/sale_procurement_group_by_line/model/sale.py +++ b/sale_procurement_group_by_line/model/sale.py @@ -90,7 +90,7 @@ def _action_launch_stock_rule(self, previous_product_uom_qty=False): product_qty, procurement_uom, line.order_id.partner_shipping_id.property_stock_customer, - line.name, + line.product_id.display_name, line.order_id.name, line.order_id.company_id, values, diff --git a/sale_procurement_group_by_line/tests/test_sale_procurement_group_by_line.py b/sale_procurement_group_by_line/tests/test_sale_procurement_group_by_line.py index f916bc07d3e..acae12fa3de 100644 --- a/sale_procurement_group_by_line/tests/test_sale_procurement_group_by_line.py +++ b/sale_procurement_group_by_line/tests/test_sale_procurement_group_by_line.py @@ -92,9 +92,9 @@ def test_02_action_launch_procurement_rule_1(self): self.sale.action_confirm() self.assertEqual(self.sale.state, "sale") self.assertEqual(len(self.line1.move_ids), 1) - self.assertEqual(self.line1.move_ids.name, self.line1.name) + self.assertEqual(self.line1.move_ids.name, self.line1.product_id.display_name) self.assertEqual(len(self.line2.move_ids), 1) - self.assertEqual(self.line2.move_ids.name, self.line2.name) + self.assertEqual(self.line2.move_ids.name, self.line2.product_id.display_name) def test_03_action_launch_procurement_rule_2(self): group_id = self.proc_group_model.create(