mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
Merge pull request #72 from LasLabs/bugfix/10.0/product_contract-mock-test
[FIX] product_contract: Fix mock usage in tests
This commit is contained in:
@@ -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 """
|
||||
|
||||
Reference in New Issue
Block a user