Skip to content

Commit

Permalink
Merge pull request #72 from LasLabs/bugfix/10.0/product_contract-mock…
Browse files Browse the repository at this point in the history
…-test

[FIX] product_contract: Fix mock usage in tests
  • Loading branch information
pedrobaeza committed Jun 1, 2017
2 parents 77c04ba + 86a5b11 commit d633e93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions product_contract/tests/test_sale_order.py
Expand Up @@ -20,6 +20,11 @@ def setUp(self):
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 """
Expand Down

0 comments on commit d633e93

Please sign in to comment.