diff --git a/ext/3rd-party-addons/login_user_detail/README.rst b/ext/3rd-party-addons/login_user_detail/README.rst new file mode 100644 index 00000000..a7b12abd --- /dev/null +++ b/ext/3rd-party-addons/login_user_detail/README.rst @@ -0,0 +1,20 @@ +User Log Details v11 +==================== + +This module developed to record login details of user. + +Installation +============ + +Just select it from available modules to install it, there is no need to extra installations. + +Configuration +============= + +Nothing to configure. + +Credits +======= + +Developer: Saritha @ cybrosys + diff --git a/ext/3rd-party-addons/login_user_detail/__init__.py b/ext/3rd-party-addons/login_user_detail/__init__.py new file mode 100644 index 00000000..86a0349d --- /dev/null +++ b/ext/3rd-party-addons/login_user_detail/__init__.py @@ -0,0 +1,20 @@ +# -*- 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. + +# 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 . +# +############################################################################## +from . import models diff --git a/ext/3rd-party-addons/login_user_detail/__manifest__.py b/ext/3rd-party-addons/login_user_detail/__manifest__.py new file mode 100644 index 00000000..0664f7ea --- /dev/null +++ b/ext/3rd-party-addons/login_user_detail/__manifest__.py @@ -0,0 +1,39 @@ +# -*- 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. + +# 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': '11.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'], + 'license': 'AGPL-3', + 'data': [ + 'security/ir.model.access.csv', + 'views/login_user_views.xml'], + 'demo': [], + 'images': ['static/description/banner.png'], + 'installable': True, + 'auto_install': False, +} diff --git a/ext/3rd-party-addons/login_user_detail/doc/changelog.rst b/ext/3rd-party-addons/login_user_detail/doc/changelog.rst new file mode 100644 index 00000000..be9f4d0a --- /dev/null +++ b/ext/3rd-party-addons/login_user_detail/doc/changelog.rst @@ -0,0 +1,8 @@ +Changelog +========= +* Saritha Sahadevan contact: saritha@cybrosys.in + + +`10.0.2.0.0` +------------ +- Access Right Issue fix. \ No newline at end of file diff --git a/ext/3rd-party-addons/login_user_detail/models/__init__.py b/ext/3rd-party-addons/login_user_detail/models/__init__.py new file mode 100644 index 00000000..5f7ea718 --- /dev/null +++ b/ext/3rd-party-addons/login_user_detail/models/__init__.py @@ -0,0 +1,20 @@ +# -*- 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. + +# 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 . +# +############################################################################## +from . import login_user_details diff --git a/ext/3rd-party-addons/login_user_detail/models/login_user_details.py b/ext/3rd-party-addons/login_user_detail/models/login_user_details.py new file mode 100644 index 00000000..550d0ce8 --- /dev/null +++ b/ext/3rd-party-addons/login_user_detail/models/login_user_details.py @@ -0,0 +1,49 @@ +# -*- 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. + +# 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 . +# +############################################################################## +import logging +from itertools import chain +from odoo.http import request +from odoo import models, fields, api + +_logger = logging.getLogger(__name__) +USER_PRIVATE_FIELDS = ['password'] +concat = chain.from_iterable + + +class LoginUserDetail(models.Model): + _inherit = 'res.users' + + @api.model + def check_credentials(self, password): + result = super(LoginUserDetail, self).check_credentials(password) + ip_address = request.httprequest.environ['REMOTE_ADDR'] + vals = {'name': self.name, + 'ip_address': ip_address + } + self.env['login.detail'].sudo().create(vals) + return result + + +class LoginUpdate(models.Model): + _name = 'login.detail' + + name = fields.Char(string="User Name") + 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/ext/3rd-party-addons/login_user_detail/security/ir.model.access.csv b/ext/3rd-party-addons/login_user_detail/security/ir.model.access.csv new file mode 100644 index 00000000..7935bc9e --- /dev/null +++ b/ext/3rd-party-addons/login_user_detail/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_login_user_detail,login_user_detail_login_detail,model_login_detail,,1,1,1,1 diff --git a/ext/3rd-party-addons/login_user_detail/static/description/banner.png b/ext/3rd-party-addons/login_user_detail/static/description/banner.png new file mode 100644 index 00000000..65f71eaa Binary files /dev/null and b/ext/3rd-party-addons/login_user_detail/static/description/banner.png differ diff --git a/ext/3rd-party-addons/login_user_detail/static/description/cybro_logo.png b/ext/3rd-party-addons/login_user_detail/static/description/cybro_logo.png new file mode 100644 index 00000000..bb309114 Binary files /dev/null and b/ext/3rd-party-addons/login_user_detail/static/description/cybro_logo.png differ diff --git a/ext/3rd-party-addons/login_user_detail/static/description/cybrosys-login-user-details.png b/ext/3rd-party-addons/login_user_detail/static/description/cybrosys-login-user-details.png new file mode 100644 index 00000000..38477eee Binary files /dev/null and b/ext/3rd-party-addons/login_user_detail/static/description/cybrosys-login-user-details.png differ diff --git a/ext/3rd-party-addons/login_user_detail/static/description/icon.png b/ext/3rd-party-addons/login_user_detail/static/description/icon.png new file mode 100644 index 00000000..724a2717 Binary files /dev/null and b/ext/3rd-party-addons/login_user_detail/static/description/icon.png differ diff --git a/ext/3rd-party-addons/login_user_detail/static/description/index.html b/ext/3rd-party-addons/login_user_detail/static/description/index.html new file mode 100644 index 00000000..495e37db --- /dev/null +++ b/ext/3rd-party-addons/login_user_detail/static/description/index.html @@ -0,0 +1,310 @@ +
+
+

+ User Log Details +

+

+ Records User Log Details +

+
+ Cybrosys Technologies +
+ +
+ cybrosys technologies +
+
+
+
+ +
+
+

+ Overview +

+

+ User Log Details, Record login date,IP Address of login user. +

+
+
+
+
+

+ Screenshots +

+

+ + Login Details +

+
+ +
+
+
+ +
+
+ cybrosys technologies +
+
+
+
+

+ Our Services +

+
+ + + +
+ +
+ + + +
+

+ + Odoo Support +

+ +
+ +
+
+
+
+
+

+ Our Industries +

+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Trading + +

+

+ Easily procure and sell your products. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Manufacturing +

+

+ Plan, track and schedule your operations. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Restaurant +

+

+ Run your bar or restaurant methodical. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + POS +

+

+ Easy configuring and convivial selling. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + E-commerce & Website +

+

+ Mobile friendly, awe-inspiring product pages. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Hotel Management +

+

+ An all-inclusive hotel management application. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Education +

+

+ A Collaborative platform for educational management. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Service Management +

+

+ Keep track of services and invoice accordingly. +

+
+
+
+
+
+
+ +
+ diff --git a/ext/3rd-party-addons/login_user_detail/views/login_user_views.xml b/ext/3rd-party-addons/login_user_detail/views/login_user_views.xml new file mode 100644 index 00000000..1b49d4f1 --- /dev/null +++ b/ext/3rd-party-addons/login_user_detail/views/login_user_views.xml @@ -0,0 +1,42 @@ + + + + + Login User Details + login.detail + +
+ + + + + + + +
+
+
+ + + Login User Details + login.detail + + + + + + + + + + + Login User Details + login.detail + tree,form + + + + +
+
\ No newline at end of file