New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] product_contract: Fix mock usage in tests #72
[FIX] product_contract: Fix mock usage in tests #72
Conversation
7775525
to
ecd6b2d
Compare
ecd6b2d
to
86a5b11
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lasley
@@ -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( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this do? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh forget it, it's reverting https://github.com/OCA/contract/pull/72/files#diff-f8a2fa2a1e36a08f8fecab38bfbd417bR32; thanks!
@@ -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( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh forget it, it's reverting https://github.com/OCA/contract/pull/72/files#diff-f8a2fa2a1e36a08f8fecab38bfbd417bR32; thanks!
This fixes #71 (comment) by @pedrobaeza