[MERGE] forward port branch saas-11 up to ed36929265

This commit is contained in:
Christophe Simonis
2017-08-01 22:39:16 +02:00
+2
View File
@@ -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)