From ca8017085394193192a2aed4590925cef695abf0 Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Wed, 28 Nov 2018 12:38:09 +0100 Subject: [PATCH] [IMP] name of remotes should be case insensitive --- base_remote/__manifest__.py | 2 +- base_remote/models/res_remote.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base_remote/__manifest__.py b/base_remote/__manifest__.py index cc4917c6b..f0dd4aa93 100644 --- a/base_remote/__manifest__.py +++ b/base_remote/__manifest__.py @@ -3,7 +3,7 @@ { 'name': "Remote Base", - 'version': '11.0.1.0.2', + 'version': '11.0.1.0.3', 'category': 'Generic Modules/Base', 'author': "Creu Blanca, Odoo Community Association (OCA)", 'website': 'http://github.com/OCA/server-tools', diff --git a/base_remote/models/res_remote.py b/base_remote/models/res_remote.py index 0abc850da..bd90ee4fe 100644 --- a/base_remote/models/res_remote.py +++ b/base_remote/models/res_remote.py @@ -40,7 +40,7 @@ class ResRemote(models.Model): except socket.herror: logging.warning('Remote with ip %s could not be found' % addr) hostname = False - remote = self.search([('name', '=', hostname or addr)]) + remote = self.search([('name', '=ilike', hostname or addr)]) if not remote: remote = self.create(self._create_vals(addr, hostname)) if remote.ip != addr: