From 0461fde85c9115f619fd8feb8b3dcfd6f25d1773 Mon Sep 17 00:00:00 2001 From: SHEREEF PT Date: Thu, 9 Nov 2017 17:26:56 +0530 Subject: [PATCH] [FIX] Time Issue Fix --- login_user_detail/__manifest__.py | 5 ++- login_user_detail/__manifest__.py~ | 39 ------------------- login_user_detail/doc/changelog.rst | 8 ++++ .../models/login_user_details.py | 2 +- .../static/description/index.html | 26 +++++++++---- 5 files changed, 30 insertions(+), 50 deletions(-) delete mode 100644 login_user_detail/__manifest__.py~ create mode 100644 login_user_detail/doc/changelog.rst diff --git a/login_user_detail/__manifest__.py b/login_user_detail/__manifest__.py index 599466b96..741e9cc25 100644 --- a/login_user_detail/__manifest__.py +++ b/login_user_detail/__manifest__.py @@ -22,11 +22,12 @@ ############################################################################## { 'name': "User Log Details", - 'version': '10.0.1.0.0', - 'summary': """Login User Details""", + 'version': '10.0.2.0.0', + 'summary': """Login User Details & IP Address""", 'description': """This module records login information of user""", 'author': "Cybrosys Techno Solutions ", 'company': "Cybrosys Techno Solutions ", + 'maintainer': 'Cybrosys Techno Solutions', 'website': "https://www.cybrosys.com", 'category': 'Tools', 'depends': ['base'], diff --git a/login_user_detail/__manifest__.py~ b/login_user_detail/__manifest__.py~ deleted file mode 100644 index b602a603b..000000000 --- a/login_user_detail/__manifest__.py~ +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2016-TODAY Cybrosys Technologies(). -# Author: Saritha Sahadevan() -# you can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. -# -# It is forbidden to publish, distribute, sublicense, or sell copies -# of the Software or modified copies of the Software. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. -# If not, see . -# -############################################################################## -{ - 'name': "User Log Details", - 'version': '10.0.1.0.0', - 'summary': """Login User Details""", - 'description': """This module records login information of user""", - 'author': "Cybrosys Techno Solutions ", - 'company': "Cybrosys Techno Solutions ", - 'website': "https://www.cybrosys.com", - 'category': 'Tools', - 'depends': ['base'], - 'license': 'AGPL-3', - 'data': ['views/login_user_views.xml'], - 'demo': [], - 'images': ['static/description/banner.jpg'], - 'installable': True, - 'auto_install': False, -} diff --git a/login_user_detail/doc/changelog.rst b/login_user_detail/doc/changelog.rst new file mode 100644 index 000000000..f674be671 --- /dev/null +++ b/login_user_detail/doc/changelog.rst @@ -0,0 +1,8 @@ +Changelog +========= +* Saritha Sahadevan contact: saritha@cybrosys.in + + +`10.0.2.0.0` +------------ +- Time Issue fix. \ No newline at end of file diff --git a/login_user_detail/models/login_user_details.py b/login_user_detail/models/login_user_details.py index 213f6aa21..809f1cf81 100644 --- a/login_user_detail/models/login_user_details.py +++ b/login_user_detail/models/login_user_details.py @@ -49,6 +49,6 @@ class LoginUpdate(models.Model): _name = 'login.detail' name = fields.Char(string="User Name") - date_time = fields.Datetime(string="Login Date And Time", default=datetime.now()) + date_time = fields.Datetime(string="Login Date And Time", default=lambda self: fields.datetime.now()) ip_address = fields.Char(string="IP Address") diff --git a/login_user_detail/static/description/index.html b/login_user_detail/static/description/index.html index ae7daf401..6e51e730c 100644 --- a/login_user_detail/static/description/index.html +++ b/login_user_detail/static/description/index.html @@ -2,7 +2,7 @@

User Log Details

Records User Log Details

-

Cybrosys Technologies , www.cybrosys.com

+

Cybrosys Technologies

@@ -31,17 +31,27 @@

Need Any Help?

+
+ +
+ + + + + +
-