Browse Source

Merge PR #1814 into 12.0

Signed-off-by pedrobaeza
12.0-mig-module_prototyper_last
OCA-git-bot 5 years ago
parent
commit
bdce9305bc
  1. 2
      base_remote/models/res_remote.py

2
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:

Loading…
Cancel
Save