summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2019-11-04 16:40:57 +0100
committerYannick Tivisse <yti@odoo.com>2019-11-05 16:18:10 +0100
commitc1d93ddf04ec9d4896bf7d3fee8802e5adf4c92c (patch)
treec53d61354a84244daa2bf7e007d9e17986e25198 /addons
parente78dca56907fea43bf1ae631891969a94a57f02c (diff)
[IMP] purchase_requisition: Adapt tests to work with/without demo data
Diffstat (limited to 'addons')
-rw-r--r--addons/purchase_requisition/tests/common.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/addons/purchase_requisition/tests/common.py b/addons/purchase_requisition/tests/common.py
index 7ae6e1781d8..235208b8a89 100644
--- a/addons/purchase_requisition/tests/common.py
+++ b/addons/purchase_requisition/tests/common.py
@@ -35,7 +35,7 @@ class TestPurchaseRequisitionCommon(common.SavepointCase):
cls.product_09 = cls.env['product.product'].create({
'name': 'Pedal Bin',
- 'categ_id': cls.env.ref('product.product_category_5').id,
+ 'categ_id': cls.env.ref('product.product_category_all').id,
'standard_price': 10.0,
'list_price': 47.0,
'type': 'consu',
@@ -46,7 +46,7 @@ class TestPurchaseRequisitionCommon(common.SavepointCase):
cls.product_13 = cls.env['product.product'].create({
'name': 'Corner Desk Black',
- 'categ_id': cls.env.ref('product.product_category_5').id,
+ 'categ_id': cls.env.ref('product.product_category_all').id,
'standard_price': 78.0,
'list_price': 85.0,
'type': 'consu',
@@ -64,5 +64,7 @@ class TestPurchaseRequisitionCommon(common.SavepointCase):
'product_uom_id': cls.product_uom_id.id})]
})
- cls.res_partner_1 = cls.env.ref('base.res_partner_1')
+ cls.res_partner_1 = cls.env['res.partner'].create({
+ 'name': 'Wood Corner',
+ })
cls.env.user.company_id.currency_id = cls.env.ref("base.USD").id