fixup! [MIG] : Migration to 13.0

This commit is contained in:
Lois Rilo
2020-11-09 12:56:46 +01:00
committed by Mateu Griful
parent 6f5c45adf4
commit 092bf32610
4 changed files with 8 additions and 11 deletions

View File

@@ -20,10 +20,10 @@ class TestPullListCommon(TransactionCase):
self.customer_loc = self.env.ref("stock.stock_location_customers")
self.warehouse_2 = self.wh_obj.create(
{"code": "WH-T", "name": "Warehouse Test",}
{"code": "WH-T", "name": "Warehouse Test"}
)
self.product_a = self.env["product.product"].create(
{"name": "test product A", "default_code": "TEST-A", "type": "product",}
{"name": "test product A", "default_code": "TEST-A", "type": "product"}
)
route_vals = {
@@ -59,6 +59,7 @@ class TestPullListCommon(TransactionCase):
"picking_type_id": self.ref("stock.picking_type_out"),
"location_id": self.warehouse.lot_stock_id.id,
"location_dest_id": self.customer_loc.id,
"scheduled_date": date_move,
"move_lines": [
(
0,

View File

@@ -22,7 +22,7 @@ class TestStockPullList(TestPullListCommon):
def test_02_consolidate(self):
self._generate_moves()
wiz = self.wiz_obj.create({"consolidate_by_product": True,})
wiz = self.wiz_obj.create({"consolidate_by_product": True})
wiz.action_prepare()
line = wiz.line_ids.filtered(lambda l: l.product_id == self.product_a)
self.assertEqual(len(line), 1)