From b031256746e289d8229d0ee828e1fa8d8d2d4833 Mon Sep 17 00:00:00 2001 From: pilarvargas-tecnativa Date: Mon, 10 Jul 2023 17:10:46 +0200 Subject: [PATCH] [FIX] stock_orderpoint_generator: fix test test_errors The Size attribute is already defined in the point_of_sale module so when both modules are installed an error occurs in the tests. This is solved by changing the name of the attribute in the tests of the stock_orderpoint_generator module. TT41548 --- stock_orderpoint_generator/tests/test_orderpoint_generator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stock_orderpoint_generator/tests/test_orderpoint_generator.py b/stock_orderpoint_generator/tests/test_orderpoint_generator.py index fceb13a49..bb97df28e 100644 --- a/stock_orderpoint_generator/tests/test_orderpoint_generator.py +++ b/stock_orderpoint_generator/tests/test_orderpoint_generator.py @@ -15,7 +15,9 @@ class TestOrderpointGenerator(TransactionCase): cls.orderpoint_model = cls.env["stock.warehouse.orderpoint"] cls.orderpoint_template_model = cls.env["stock.warehouse.orderpoint.template"] cls.product_model = cls.env["product.product"] - cls.attr = cls.env["product.attribute"].create({"name": "Size"}) + cls.attr = cls.env["product.attribute"].create( + {"name": "stock_orderpoint_generator attribute"} + ) cls.attr_value_a = cls.env["product.attribute.value"].create( {"name": "A", "attribute_id": cls.attr.id} )