mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[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:
@@ -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}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user