Browse Source
Merge pull request #1438 from etobella/11.0-fix-remote
[IMP] name of remotes should be case insensitive
pull/1466/head
Jordi Ballester Alomar
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
base_remote/__manifest__.py
-
base_remote/models/res_remote.py
|
@ -3,7 +3,7 @@ |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
'name': "Remote Base", |
|
|
'name': "Remote Base", |
|
|
'version': '11.0.1.0.2', |
|
|
|
|
|
|
|
|
'version': '11.0.1.0.3', |
|
|
'category': 'Generic Modules/Base', |
|
|
'category': 'Generic Modules/Base', |
|
|
'author': "Creu Blanca, Odoo Community Association (OCA)", |
|
|
'author': "Creu Blanca, Odoo Community Association (OCA)", |
|
|
'website': 'http://github.com/OCA/server-tools', |
|
|
'website': 'http://github.com/OCA/server-tools', |
|
|
|
@ -40,7 +40,7 @@ class ResRemote(models.Model): |
|
|
except socket.herror: |
|
|
except socket.herror: |
|
|
logging.warning('Remote with ip %s could not be found' % addr) |
|
|
logging.warning('Remote with ip %s could not be found' % addr) |
|
|
hostname = False |
|
|
hostname = False |
|
|
remote = self.search([('name', '=', hostname or addr)]) |
|
|
|
|
|
|
|
|
remote = self.search([('name', '=ilike', hostname or addr)]) |
|
|
if not remote: |
|
|
if not remote: |
|
|
remote = self.create(self._create_vals(addr, hostname)) |
|
|
remote = self.create(self._create_vals(addr, hostname)) |
|
|
if remote.ip != addr: |
|
|
if remote.ip != addr: |
|
|