[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
This commit is contained in:
pilarvargas-tecnativa
2023-07-10 17:10:46 +02:00
parent 6d0bb77431
commit b031256746

View File

@@ -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}
)