From 479cecf5387d1959d74ffb243e963c254d180b93 Mon Sep 17 00:00:00 2001 From: sebalix Date: Mon, 14 Nov 2016 14:50:08 +0100 Subject: [PATCH] [FIX] auditlog - Lint --- auditlog/models/http_request.py | 4 ++-- auditlog/models/http_session.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/auditlog/models/http_request.py b/auditlog/models/http_request.py index ca896ea99..dd3ca30ba 100644 --- a/auditlog/models/http_request.py +++ b/auditlog/models/http_request.py @@ -12,7 +12,7 @@ class AuditlogHTTPRequest(models.Model): _order = "create_date DESC" _rec_name = 'display_name' - display_name = fields.Char(u"Name", compute="_display_name") + display_name = fields.Char(u"Name", compute="_compute_display_name") name = fields.Char(u"Path") root_url = fields.Char(u"Root URL") user_id = fields.Many2one( @@ -24,7 +24,7 @@ class AuditlogHTTPRequest(models.Model): 'auditlog.log', 'http_request_id', string=u"Logs") @api.multi - def _display_name(self): + def _compute_display_name(self): for httprequest in self: create_date = fields.Datetime.from_string(httprequest.create_date) tz_create_date = fields.Datetime.context_timestamp( diff --git a/auditlog/models/http_session.py b/auditlog/models/http_session.py index 872290afb..e89043bd2 100644 --- a/auditlog/models/http_session.py +++ b/auditlog/models/http_session.py @@ -12,7 +12,7 @@ class AuditlogtHTTPSession(models.Model): _order = "create_date DESC" _rec_name = 'display_name' - display_name = fields.Char(u"Name", compute="_display_name") + display_name = fields.Char(u"Name", compute="_compute_display_name") name = fields.Char(u"Session ID", index=True) user_id = fields.Many2one( 'res.users', string=u"User", index=True) @@ -20,7 +20,7 @@ class AuditlogtHTTPSession(models.Model): 'auditlog.http.request', 'http_session_id', string=u"HTTP Requests") @api.multi - def _display_name(self): + def _compute_display_name(self): for httpsession in self: create_date = fields.Datetime.from_string(httpsession.create_date) tz_create_date = fields.Datetime.context_timestamp(