Skip to content

Commit fb2b6b8

Browse files
committed
fix
1 parent 2d61749 commit fb2b6b8

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

sale_order_line_multi_warehouse/tests/test_so_line_multiwarehouse.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,25 @@ def setUpClass(cls):
6565
cls.alternative_warehouse_1.id,
6666
cls.alternative_warehouse_2.id,
6767
]
68+
cls.vendor = cls.env["res.partner"].create(dict(name="The Replenisher"))
69+
cls.supplierinfo = cls.env["product.supplierinfo"].create(
70+
{
71+
"partner_id": cls.vendor.id,
72+
"price": 1.0,
73+
}
74+
)
6875
cls.product_1, cls.product_2 = cls.env["product.product"].create(
6976
[
70-
{"name": "Product-1", "detailed_type": "product"},
71-
{"name": "Product-2", "detailed_type": "product"},
77+
{
78+
"name": "Product-1",
79+
"detailed_type": "product",
80+
"seller_ids": [(4, cls.supplierinfo.id, 0)],
81+
},
82+
{
83+
"name": "Product-2",
84+
"detailed_type": "product",
85+
"seller_ids": [(4, cls.supplierinfo.id, 0)],
86+
},
7287
]
7388
)
7489

0 commit comments

Comments
 (0)