diff --git a/change_password/__init__.py b/change_password/__init__.py deleted file mode 100644 index dc19d55fa..000000000 --- a/change_password/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2015-TODAY Cybrosys Technologies(). -# Author: Niyas Raphy() -# 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 . -# -############################################################################## -import models diff --git a/change_password/__openerp__.py b/change_password/__openerp__.py deleted file mode 100644 index ef2e53036..000000000 --- a/change_password/__openerp__.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2015-TODAY Cybrosys Technologies(). -# Author: Niyas Raphy() -# 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': 'Change Password for Users', - 'version': '9.0.1.0.0', - 'summary': """Option for Users to Change Their Password""", - 'description': """Option for Users to Change Their Password""", - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': 'http://www.cybrosys.com', - 'category': 'Tools', - 'depends': ['hr'], - 'data': ['views/change_password.xml'], - 'qweb': ['static/src/xml/*.xml'], - 'demo': [], - 'images': ['static/description/banner.jpg'], - 'license': 'LGPL-3', - 'installable': True, - 'auto_install': False, -} diff --git a/change_password/models/__init__.py b/change_password/models/__init__.py deleted file mode 100644 index 5cda8b776..000000000 --- a/change_password/models/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2015-TODAY Cybrosys Technologies(). -# Author: Niyas Raphy() -# 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 . -# -############################################################################## -import change_password diff --git a/change_password/models/change_password.py b/change_password/models/change_password.py deleted file mode 100644 index c679ba048..000000000 --- a/change_password/models/change_password.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2015-TODAY Cybrosys Technologies(). -# Author: Niyas Raphy() -# 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 . -# -############################################################################## -from openerp import fields, models, api - - -class Wizard(models.TransientModel): - - _name = 'change.password' - - new_password = fields.Char(String='Enter New Password') - - @api.one - def change_password(self, new_password): - user = self.env.user - user_id = user.id - obj = self.env['res.users'].browse(user_id) - obj.write({'password': new_password}) diff --git a/change_password/static/description/banner.jpg b/change_password/static/description/banner.jpg deleted file mode 100644 index 74f79d20f..000000000 Binary files a/change_password/static/description/banner.jpg and /dev/null differ diff --git a/change_password/static/description/cybro_logo.png b/change_password/static/description/cybro_logo.png deleted file mode 100644 index bb309114c..000000000 Binary files a/change_password/static/description/cybro_logo.png and /dev/null differ diff --git a/change_password/static/description/icon.png b/change_password/static/description/icon.png deleted file mode 100644 index 4d975d9ce..000000000 Binary files a/change_password/static/description/icon.png and /dev/null differ diff --git a/change_password/static/description/index.html b/change_password/static/description/index.html deleted file mode 100644 index b84b83bbf..000000000 --- a/change_password/static/description/index.html +++ /dev/null @@ -1,47 +0,0 @@ -
-
-

Change Password Option To Users

-

It gives an option to change their own password

-

Author : Cybrosys Techno Solutions , www.cybrosys.com

-
-
- -
-
-

Changing Password

-
-

- ☛ User can change password from his own account
-

-
- -
-
-
-
- -
-

Need Any Help?

- -
diff --git a/change_password/static/description/new_change_password.png b/change_password/static/description/new_change_password.png deleted file mode 100644 index d90319622..000000000 Binary files a/change_password/static/description/new_change_password.png and /dev/null differ diff --git a/change_password/static/src/js/development_support.js b/change_password/static/src/js/development_support.js deleted file mode 100644 index b28bc24a2..000000000 --- a/change_password/static/src/js/development_support.js +++ /dev/null @@ -1,19 +0,0 @@ -odoo.define('change_password.UserMenu', function (require) { - -var new_support = require('web.UserMenu'); -var Model = require('web.DataModel'); - -new_support.include({ - -on_menu_new_password: function () { - - var new_password = prompt("Please enter your new password:", "Password"); - if (new_password){ - var Users = new Model('change.password'); - Users.call('change_password', [1, new_password]).then(function (result) { - location.reload(); - }); - } - }, -}); -}); diff --git a/change_password/static/src/xml/add_to_usermenu.xml b/change_password/static/src/xml/add_to_usermenu.xml deleted file mode 100644 index b119a6b9a..000000000 --- a/change_password/static/src/xml/add_to_usermenu.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - diff --git a/change_password/views/change_password.xml b/change_password/views/change_password.xml deleted file mode 100644 index 6fd68440e..000000000 --- a/change_password/views/change_password.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -