diff --git a/base_user_gravatar/__manifest__.py b/base_user_gravatar/__manifest__.py index fb9204ec3..e712fc3d8 100644 --- a/base_user_gravatar/__manifest__.py +++ b/base_user_gravatar/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Synchronize Gravatar Image', - 'version': '10.0.1.0.0', + 'version': '10.0.1.0.1', 'author': 'LasLabs, Endika Iglesias, Odoo Community Association (OCA)', 'category': 'Tools', 'website': 'https://odoo-community.org/', diff --git a/base_user_gravatar/models/res_users.py b/base_user_gravatar/models/res_users.py index 3a7afc202..2227bb780 100644 --- a/base_user_gravatar/models/res_users.py +++ b/base_user_gravatar/models/res_users.py @@ -15,7 +15,7 @@ class ResUsers(models.Model): _inherit = 'res.users' def _get_gravatar_base64(self, email=''): - url = 'http://www.gravatar.com/avatar/{}?s=200' + url = 'https://www.gravatar.com/avatar/{}?s=200' _hash = hashlib.md5(email).hexdigest() try: res = urllib2.urlopen(url.format(_hash)) diff --git a/base_user_gravatar/tests/test_res_users.py b/base_user_gravatar/tests/test_res_users.py index ca1fadca9..993d9511b 100755 --- a/base_user_gravatar/tests/test_res_users.py +++ b/base_user_gravatar/tests/test_res_users.py @@ -24,7 +24,7 @@ class TestResUsers(TransactionCase): 'name': 'Test', 'login': 'test_login', } - self.url = 'http://www.gravatar.com/avatar/{}?s=200' + self.url = 'https://www.gravatar.com/avatar/{}?s=200' def _test_record(self, ): partner_id = self.env['res.partner'].create(self.partner_vals)