[FIX] product_contract: Fix mock usage in tests

This commit is contained in:
Dave Lasley
2017-05-25 17:51:46 -07:00
parent b694c9c2ad
commit 86a5b1153b

View File

@@ -20,6 +20,11 @@ class TestSaleOrder(TransactionCase):
self.product.product_tmpl_id.is_contract = True self.product.product_tmpl_id.is_contract = True
self.product.product_tmpl_id.contract_template_id = self.contract.id self.product.product_tmpl_id.contract_template_id = self.contract.id
def tearDown(self):
self.env['account.analytic.account']._revert_method(
'create',
)
def test_action_done(self): def test_action_done(self):
""" It should create a contract when the sale for a contract is set """ It should create a contract when the sale for a contract is set
to done for the first time """ to done for the first time """