From 7c1a92ef7072f88e72eae45fcc34a36628f52d42 Mon Sep 17 00:00:00 2001 From: Nikul-Chaudhary Date: Thu, 24 Jan 2019 21:02:50 +0530 Subject: [PATCH] [IMP] Imp Code --- contract_section/tests/test_contract.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contract_section/tests/test_contract.py b/contract_section/tests/test_contract.py index eab0d10c..61c09bce 100644 --- a/contract_section/tests/test_contract.py +++ b/contract_section/tests/test_contract.py @@ -13,7 +13,12 @@ class TestContract(TestContractBase): # contract line super(TestContract, cls).setUpClass() cls.acct_line.unlink() - cls.section = cls.env.ref('sale.sale_layout_cat_2') + cls.section = cls.env['sale.layout_category'].create({ + 'name': 'Services', + 'subtotal': True, + 'pagebreak': True, + 'sequence': 1 + }) cls.line_vals.update({ 'layout_category_id': cls.section.id, })