diff options
| author | Yannick Tivisse <yti@odoo.com> | 2019-11-04 16:40:44 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-11-05 16:18:10 +0100 |
| commit | e78dca56907fea43bf1ae631891969a94a57f02c (patch) | |
| tree | 531caa42d68f3f768187907d970aa7a844d01f35 /addons/purchase_mrp | |
| parent | 89cbc25a342f951caa3fcfd4e4b39c75e70273f7 (diff) | |
[IMP] purchase_mrp: Adapt tests to work with/without demo data
Diffstat (limited to 'addons/purchase_mrp')
| -rw-r--r-- | addons/purchase_mrp/tests/test_purchase_mrp_flow.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/purchase_mrp/tests/test_purchase_mrp_flow.py b/addons/purchase_mrp/tests/test_purchase_mrp_flow.py index dd0d05f4990..daf8ffc299d 100644 --- a/addons/purchase_mrp/tests/test_purchase_mrp_flow.py +++ b/addons/purchase_mrp/tests/test_purchase_mrp_flow.py @@ -223,7 +223,7 @@ class TestSaleMrpFlow(TransactionCase): # |- component_e x1 # Creation of a sale order for x7 kit_parent - partner = self.env.ref('base.res_partner_1') + partner = self.env['res.partner'].create({'name': 'My Test Partner'}) f = Form(self.env['purchase.order']) f.partner_id = partner with f.order_line.new() as line: |
