diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-08-01 22:39:16 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-08-01 22:39:16 +0200 |
| commit | d1cf4f9672d3d974d9e8a23145e2787c6e3e18a7 (patch) | |
| tree | d486e55ec1309be374e0f74462de1ff2f12542cc | |
| parent | 39892cdaa17707afc9528ca332abbb944806acc7 (diff) | |
| parent | ed369292653ac58a22501da310df93401818ca37 (diff) | |
[MERGE] forward port branch saas-11 up to ed369292653
| -rw-r--r-- | odoo/tests/common.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/odoo/tests/common.py b/odoo/tests/common.py index 883904cd8c1..b27d7a6ba49 100644 --- a/odoo/tests/common.py +++ b/odoo/tests/common.py @@ -155,6 +155,8 @@ class TransactionCase(BaseCase): self.cr.rollback() self.cr.close() + self.patch(type(self.env['res.partner']), '_get_gravatar_image', lambda *a: False) + def patch(self, obj, key, val): """ Do the patch ``setattr(obj, key, val)``, and prepare cleanup. """ old = getattr(obj, key) |
