From 2b976983ef04e252ab5bd245e8f0360cc7da36b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Ra=C3=AFch?= Date: Mon, 25 Nov 2024 13:53:05 +0100 Subject: [PATCH] [FIX] sale_procurement_group_by_line: update to odoo Adapt to https://github.com/odoo/odoo/commit/4cc2b3bcca613dfb37bb77e5fef6de6e044e3399. --- sale_procurement_group_by_line/model/sale.py | 2 +- .../tests/test_sale_procurement_group_by_line.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sale_procurement_group_by_line/model/sale.py b/sale_procurement_group_by_line/model/sale.py index d825dac3c08..a58382985b0 100644 --- a/sale_procurement_group_by_line/model/sale.py +++ b/sale_procurement_group_by_line/model/sale.py @@ -93,7 +93,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.display_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 c7d9f890dbd..ff833fdce23 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.display_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.display_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(