Browse Source
[FIX] product_contract: Fix mock usage in tests
pull/72/head
Dave Lasley
8 years ago
No known key found for this signature in database
GPG Key ID: 7DDBA4BA81B934CF
1 changed files with
5 additions and
0 deletions
-
product_contract/tests/test_sale_order.py
|
|
@ -20,6 +20,11 @@ class TestSaleOrder(TransactionCase): |
|
|
|
self.product.product_tmpl_id.is_contract = True |
|
|
|
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): |
|
|
|
""" It should create a contract when the sale for a contract is set |
|
|
|
to done for the first time """ |
|
|
|