From f424ec5a841a86a16948b45407ef4ee4dd8117ea Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Thu, 10 Oct 2019 19:22:29 +0200 Subject: [PATCH] [MIG] mail_environment to 13.0 --- mail_environment/__manifest__.py | 2 +- mail_environment/models/fetchmail_server.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mail_environment/__manifest__.py b/mail_environment/__manifest__.py index c224f93..8eee4dc 100644 --- a/mail_environment/__manifest__.py +++ b/mail_environment/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Mail configuration with server_environment", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "category": "Tools", "summary": "Configure mail servers with server_environment_files", "author": "Camptocamp, Odoo Community Association (OCA)", diff --git a/mail_environment/models/fetchmail_server.py b/mail_environment/models/fetchmail_server.py index 2e891c7..c2020f0 100644 --- a/mail_environment/models/fetchmail_server.py +++ b/mail_environment/models/fetchmail_server.py @@ -16,7 +16,7 @@ class FetchmailServer(models.Model): mail_fields = { "server": {}, "port": {}, - "type": {}, + "server_type": {}, "user": {}, "password": {}, "is_ssl": {}, @@ -26,7 +26,7 @@ class FetchmailServer(models.Model): mail_fields.update(base_fields) return mail_fields - type = fields.Selection(search='_search_type') + server_type = fields.Selection(search='_search_server_type') @api.model def _server_env_global_section_name(self): @@ -47,6 +47,6 @@ class FetchmailServer(models.Model): if oper not in operators: return [('id', 'in', [])] servers = self.search([]).filtered( - lambda s: operators[oper](value, s.type) + lambda s: operators[oper](value, s.server_type) ) return [('id', 'in', servers.ids)]