diff options
| author | Yannick Tivisse <yti@odoo.com> | 2019-11-04 16:37:01 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-11-05 13:08:03 +0100 |
| commit | 14a6fc9ce90d789e0d7e6ea64dcfe2d896834faf (patch) | |
| tree | fc741e960e4631b8826d4939582d17cb5a0184ef /addons/mrp/tests/common.py | |
| parent | ca32dd2bda751867e4c56008947dcf95115f0f26 (diff) | |
[IMP] mrp: Adapt tests to work with/without demo data
Diffstat (limited to 'addons/mrp/tests/common.py')
| -rw-r--r-- | addons/mrp/tests/common.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/addons/mrp/tests/common.py b/addons/mrp/tests/common.py index b9592d4720e..382bbb849fe 100644 --- a/addons/mrp/tests/common.py +++ b/addons/mrp/tests/common.py @@ -154,3 +154,27 @@ class TestMrpCommon(common2.TestStockCommon): (0, 0, {'product_id': cls.product_4.id, 'product_qty': 8}), (0, 0, {'product_id': cls.product_2.id, 'product_qty': 12}) ]}) + cls.stock_location_14 = cls.env['stock.location'].create({ + 'name': 'Shelf 2', + 'location_id': cls.env.ref('stock.warehouse0').lot_stock_id.id, + }) + cls.stock_location_components = cls.env['stock.location'].create({ + 'name': 'Shelf 1', + 'location_id': cls.env.ref('stock.warehouse0').lot_stock_id.id, + }) + cls.laptop = cls.env['product.product'].create({ + 'name': 'Acoustic Bloc Screens', + 'uom_id': cls.env.ref("uom.product_uom_unit").id, + 'uom_po_id': cls.env.ref("uom.product_uom_unit").id, + 'type': 'product', + 'tracking': 'none', + 'categ_id': cls.env.ref('product.product_category_all').id, + }) + cls.graphics_card = cls.env['product.product'].create({ + 'name': 'Individual Workplace', + 'uom_id': cls.env.ref("uom.product_uom_unit").id, + 'uom_po_id': cls.env.ref("uom.product_uom_unit").id, + 'type': 'product', + 'tracking': 'none', + 'categ_id': cls.env.ref('product.product_category_all').id, + })
\ No newline at end of file |
