diff --git a/10.0 b/10.0 new file mode 160000 index 000000000..cc8c454a1 --- /dev/null +++ b/10.0 @@ -0,0 +1 @@ +Subproject commit cc8c454a11e3d61a50d8fc04c4b7c09442af28ea diff --git a/8.0 b/8.0 new file mode 160000 index 000000000..51ea6fd9c --- /dev/null +++ b/8.0 @@ -0,0 +1 @@ +Subproject commit 51ea6fd9c5e39b80cb6d6cb1d805d8df3e6ad186 diff --git a/9.0 b/9.0 new file mode 160000 index 000000000..f764cd32e --- /dev/null +++ b/9.0 @@ -0,0 +1 @@ +Subproject commit f764cd32e32ed55bed1d07ba678ef3377ab87108 diff --git a/README.md b/README.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/access_restriction_by_ip/README.rst b/access_restriction_by_ip/README.rst deleted file mode 100644 index ff9a2b61f..000000000 --- a/access_restriction_by_ip/README.rst +++ /dev/null @@ -1,17 +0,0 @@ -Access Restriction By IP V11 -============================ - -This module will restrict users access to his account from the specified IP only. If user access his -account from non-specified IP, login will be restricted and a warning message will be displayed in -login page. - -If no IP is specified for a user, then there will not be restriction by IP. He can access from any IP. - - -Credits -======= -Cybrosys Techno Solutions - -Author ------- -* Niyas Raphy diff --git a/access_restriction_by_ip/__init__.py b/access_restriction_by_ip/__init__.py deleted file mode 100644 index f2c9590e3..000000000 --- a/access_restriction_by_ip/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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 controllers -import models - - diff --git a/access_restriction_by_ip/__manifest__.py b/access_restriction_by_ip/__manifest__.py deleted file mode 100644 index a4dba3eae..000000000 --- a/access_restriction_by_ip/__manifest__.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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': 'Access Restriction By IP', - 'summary': """User Can Access His Account Only From Specified IP Address""", - 'version': '11.0.1.0.0', - 'description': """User Can Access His Account Only From Specified IP Address""", - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': 'https://www.cybrosys.com', - 'category': 'Tools', - 'depends': ['base', 'mail'], - 'license': 'AGPL-3', - 'data': [ - 'views/allowed_ips_view.xml', - ], - 'images': ['static/description/banner.jpg'], - 'demo': [], - 'installable': True, - 'auto_install': False, -} - diff --git a/access_restriction_by_ip/controllers/__init__.py b/access_restriction_by_ip/controllers/__init__.py deleted file mode 100644 index d62672370..000000000 --- a/access_restriction_by_ip/controllers/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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 main - diff --git a/access_restriction_by_ip/controllers/main.py b/access_restriction_by_ip/controllers/main.py deleted file mode 100644 index e8a62f848..000000000 --- a/access_restriction_by_ip/controllers/main.py +++ /dev/null @@ -1,80 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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 odoo.addons.web.controllers import main -from odoo.http import request -from odoo.exceptions import Warning -import odoo -import odoo.modules.registry -from odoo.tools.translate import _ -from odoo import http - - -class Home(main.Home): - - @http.route('/web/login', type='http', auth="public") - def web_login(self, redirect=None, **kw): - main.ensure_db() - request.params['login_success'] = False - if request.httprequest.method == 'GET' and redirect and request.session.uid: - return http.redirect_with_hash(redirect) - - if not request.uid: - request.uid = odoo.SUPERUSER_ID - - values = request.params.copy() - try: - values['databases'] = http.db_list() - except odoo.exceptions.AccessDenied: - values['databases'] = None - if request.httprequest.method == 'POST': - old_uid = request.uid - ip_address = request.httprequest.environ['REMOTE_ADDR'] - if request.params['login']: - user_rec = request.env['res.users'].sudo().search([('login', '=', request.params['login'])]) - if user_rec.allowed_ips: - ip_list = [] - for rec in user_rec.allowed_ips: - ip_list.append(rec.ip_address) - if ip_address in ip_list: - uid = request.session.authenticate(request.session.db, request.params['login'], request.params['password']) - if uid is not False: - request.params['login_success'] = True - if not redirect: - redirect = '/web' - return http.redirect_with_hash(redirect) - request.uid = old_uid - values['error'] = _("Wrong login/password") - request.uid = old_uid - values['error'] = _("Not allowed to login from this IP") - else: - uid = request.session.authenticate(request.session.db, request.params['login'], - request.params['password']) - if uid is not False: - request.params['login_success'] = True - if not redirect: - redirect = '/web' - return http.redirect_with_hash(redirect) - request.uid = old_uid - values['error'] = _("Wrong login/password") - - return request.render('web.login', values) diff --git a/access_restriction_by_ip/models/__init__.py b/access_restriction_by_ip/models/__init__.py deleted file mode 100644 index d8abd2496..000000000 --- a/access_restriction_by_ip/models/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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 allowed_ips - - diff --git a/access_restriction_by_ip/models/allowed_ips.py b/access_restriction_by_ip/models/allowed_ips.py deleted file mode 100644 index e5dff635d..000000000 --- a/access_restriction_by_ip/models/allowed_ips.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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 odoo import models, fields - - -class ResUsersInherit(models.Model): - _inherit = 'res.users' - - allowed_ips = fields.One2many('allowed.ips', 'users_ip', string='IP') - - -class AllowedIPs(models.Model): - _name = 'allowed.ips' - - users_ip = fields.Many2one('res.users', string='IP') - ip_address = fields.Char(string='Allowed IP') diff --git a/access_restriction_by_ip/static/description/access_non_set_ip.png b/access_restriction_by_ip/static/description/access_non_set_ip.png deleted file mode 100644 index 1b8f41526..000000000 Binary files a/access_restriction_by_ip/static/description/access_non_set_ip.png and /dev/null differ diff --git a/access_restriction_by_ip/static/description/banner.jpg b/access_restriction_by_ip/static/description/banner.jpg deleted file mode 100644 index f5bbd4859..000000000 Binary files a/access_restriction_by_ip/static/description/banner.jpg and /dev/null differ diff --git a/access_restriction_by_ip/static/description/cybro_logo.png b/access_restriction_by_ip/static/description/cybro_logo.png deleted file mode 100644 index bb309114c..000000000 Binary files a/access_restriction_by_ip/static/description/cybro_logo.png and /dev/null differ diff --git a/access_restriction_by_ip/static/description/icon.png b/access_restriction_by_ip/static/description/icon.png deleted file mode 100644 index 401fd1ed3..000000000 Binary files a/access_restriction_by_ip/static/description/icon.png and /dev/null differ diff --git a/access_restriction_by_ip/static/description/index.html b/access_restriction_by_ip/static/description/index.html deleted file mode 100644 index 9f03c006e..000000000 --- a/access_restriction_by_ip/static/description/index.html +++ /dev/null @@ -1,69 +0,0 @@ -
-
-

Access Restriction By IP

-

User can access his account only from specified IP's

-

Cybrosys Technologies

-
-

This module will restrict the users access to his account from specified IP address only

-
-
-

Features:

-
    -
  •    Administrator can set a IP or a group of IP address for each users
  • -
  •    Users can access their account only from the specified IP's
  • -
  •    Accessing system from a non-specified IP will restrict the user login
  • -
  •    A warning message will be displayed
  • -
  •    If no IP is set to user means there is no any restriction by IP
  • -
  •    IP Address for each users can be set from users form view
  • -
-
-
-
- -
-
-

Setting IP address for User

-
-

Setting IP address for user from users form view

-

User will be able to access his account only from this IP's

-
- -
-
-

User accessing his account

-
-

On accessing account from a non specified IP

-
- -
-

Warning message will be displayed

-
-
-
- - -
-

Need Any Help?

- -
diff --git a/access_restriction_by_ip/static/description/index.html~ b/access_restriction_by_ip/static/description/index.html~ deleted file mode 100644 index 7f747cbbb..000000000 --- a/access_restriction_by_ip/static/description/index.html~ +++ /dev/null @@ -1,82 +0,0 @@ -
-
-

Birthday Notification By E-mail

-

This module will wish the employees on their birthday

- -

Author : Cybrosys Techno Solutions , www.cybrosys.com

-
-

Features:

-
    -
  •    Adds a cron job to invoke email
  • -
  •    Adds an email template
  • -
-
-
-
- -
-
-
-

Overview

-

- HR departments need not worry to wish their employees for their Birthday. In this module we have included the feature to send an email Birthday notification to the employee. -

-
-
-
- -
-
-

Employee Form

-
-

- ☛ Give Date of Birth for employee.
- ☛ Give work email.
-

-
- -
-
-
-
- -
-
-

Email Template

-
-

- ☛ The cron job will invoke the email
- ☛ Email template is very simple
-

-
- -
-
-
-
- -
-

Need Any Help?

- -
diff --git a/access_restriction_by_ip/static/description/user_set_ip.png b/access_restriction_by_ip/static/description/user_set_ip.png deleted file mode 100644 index e6f03f8d1..000000000 Binary files a/access_restriction_by_ip/static/description/user_set_ip.png and /dev/null differ diff --git a/access_restriction_by_ip/views/allowed_ips_view.xml b/access_restriction_by_ip/views/allowed_ips_view.xml deleted file mode 100644 index 3b7f244d4..000000000 --- a/access_restriction_by_ip/views/allowed_ips_view.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - res.users - res.users - - - - - - - - - - - - - - - diff --git a/hide_cost_price/README.rst b/hide_cost_price/README.rst deleted file mode 100644 index 65d39dfd8..000000000 --- a/hide_cost_price/README.rst +++ /dev/null @@ -1,13 +0,0 @@ -Hide Product Cost Price v11 -=========================== -The cost price of the product will be only visible for the users added in the group "view cost price". -If user is not there in the group, the cost price of the product will remain invisible for the user. -By default administrator will be added to this group - -Credits -======= -Cybrosys Techno Solutions - -Author ------- -* Niyas Raphy diff --git a/hide_cost_price/__init__.py b/hide_cost_price/__init__.py deleted file mode 100644 index b01e120da..000000000 --- a/hide_cost_price/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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 . -# -############################################################################## diff --git a/hide_cost_price/__manifest__.py b/hide_cost_price/__manifest__.py deleted file mode 100644 index 9e5c12ad1..000000000 --- a/hide_cost_price/__manifest__.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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': 'Hide Product Cost Price', - 'summary': """Product Cost Price Will be Visible Only for Specified Group""", - 'version': '11.0.1.0.0', - 'description': """Product cost price will be visible only for specified group""", - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': 'https://www.cybrosys.com', - 'category': 'Sales', - 'depends': ['base', 'purchase'], - 'license': 'AGPL-3', - 'data': [ - 'security/view_cost_price.xml', - 'views/hide_product_cost.xml' - ], - 'images': ['static/description/banner.jpg'], - 'demo': [], - 'installable': True, - 'auto_install': False, - -} diff --git a/hide_cost_price/__manifest__.py~ b/hide_cost_price/__manifest__.py~ deleted file mode 100644 index cba482d02..000000000 --- a/hide_cost_price/__manifest__.py~ +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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': 'Hide Product Cost Price', - 'summary': """Product Cost Price Will be Visible Only for Specified Users in the Group""", - 'version': '10.0.1.0.0', - 'description': """Product cost price will be visible only users in group""", - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': 'http://www.cybrosys.com', - 'category': 'Sales', - 'depends': ['base', 'purchase'], - 'license': 'AGPL-3', - 'data': [ - 'security/view_cost_price.xml', - 'views/hide_product_cost.xml' - ], - 'images': ['static/description/banner.jpg'], - 'demo': [], - 'installable': True, - 'auto_install': False, - -} diff --git a/hide_cost_price/security/view_cost_price.xml b/hide_cost_price/security/view_cost_price.xml deleted file mode 100644 index 2c6f33666..000000000 --- a/hide_cost_price/security/view_cost_price.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - View Cost Price - - - - \ No newline at end of file diff --git a/hide_cost_price/static/description/banner.jpg b/hide_cost_price/static/description/banner.jpg deleted file mode 100644 index 27b4163a3..000000000 Binary files a/hide_cost_price/static/description/banner.jpg and /dev/null differ diff --git a/hide_cost_price/static/description/cybro_logo.png b/hide_cost_price/static/description/cybro_logo.png deleted file mode 100644 index bb309114c..000000000 Binary files a/hide_cost_price/static/description/cybro_logo.png and /dev/null differ diff --git a/hide_cost_price/static/description/icon.png b/hide_cost_price/static/description/icon.png deleted file mode 100644 index fbd832ad0..000000000 Binary files a/hide_cost_price/static/description/icon.png and /dev/null differ diff --git a/hide_cost_price/static/description/index.html b/hide_cost_price/static/description/index.html deleted file mode 100644 index 622c16803..000000000 --- a/hide_cost_price/static/description/index.html +++ /dev/null @@ -1,75 +0,0 @@ -
-
-

Hide Product Cost Price

-

Cost price will be visible only for selected users

-

Cybrosys Technologies

-
-

This module will create a new group and the users added in this group can only view the - cost price of the product

-
-
-

Features:

-
    -
  •    Cost price visibility restricted
  • -
  •    Visible only for the users in the group
  • -
  •    By default administrator will be added to this group
  • -
-
-
-
- -
-
-

Working

-
-

Adding user to the View Cost Price group

-

User will see the product cost price only if he is added in this group

-
- -
-
- -
-

Product View for users not in the Group

-
-

Product form view without cost price

-
- - - -
-

Product tree view without cost price

-
- -
-
-
-
-
- - -
-

Need Any Help?

- -
diff --git a/hide_cost_price/static/description/index.html~ b/hide_cost_price/static/description/index.html~ deleted file mode 100644 index 7f747cbbb..000000000 --- a/hide_cost_price/static/description/index.html~ +++ /dev/null @@ -1,82 +0,0 @@ -
-
-

Birthday Notification By E-mail

-

This module will wish the employees on their birthday

- -

Author : Cybrosys Techno Solutions , www.cybrosys.com

-
-

Features:

-
    -
  •    Adds a cron job to invoke email
  • -
  •    Adds an email template
  • -
-
-
-
- -
-
-
-

Overview

-

- HR departments need not worry to wish their employees for their Birthday. In this module we have included the feature to send an email Birthday notification to the employee. -

-
-
-
- -
-
-

Employee Form

-
-

- ☛ Give Date of Birth for employee.
- ☛ Give work email.
-

-
- -
-
-
-
- -
-
-

Email Template

-
-

- ☛ The cron job will invoke the email
- ☛ Email template is very simple
-

-
- -
-
-
-
- -
-

Need Any Help?

- -
diff --git a/hide_cost_price/static/description/product_form_view.png b/hide_cost_price/static/description/product_form_view.png deleted file mode 100644 index f9be7a8ab..000000000 Binary files a/hide_cost_price/static/description/product_form_view.png and /dev/null differ diff --git a/hide_cost_price/static/description/product_tree_view.png b/hide_cost_price/static/description/product_tree_view.png deleted file mode 100644 index 31881c6fe..000000000 Binary files a/hide_cost_price/static/description/product_tree_view.png and /dev/null differ diff --git a/hide_cost_price/static/description/user_adding_group.png b/hide_cost_price/static/description/user_adding_group.png deleted file mode 100644 index 29bfab572..000000000 Binary files a/hide_cost_price/static/description/user_adding_group.png and /dev/null differ diff --git a/hide_cost_price/views/hide_product_cost.xml b/hide_cost_price/views/hide_product_cost.xml deleted file mode 100644 index 2e8129852..000000000 --- a/hide_cost_price/views/hide_product_cost.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - product.template.cost - product.template - - - - hide_cost_price.view_cost_price - - - hide_cost_price.view_cost_price - - - - - - product.template.cost - product.template - - - - hide_cost_price.view_cost_price - - - - - diff --git a/user_login_alert/README.rst b/user_login_alert/README.rst deleted file mode 100644 index a10dc3527..000000000 --- a/user_login_alert/README.rst +++ /dev/null @@ -1,26 +0,0 @@ -User Login Alert v11 -==================== - -This module will help to send the notification to users on successful login to his account. - - -Working -======= -if user is continuously using the same system the user will be notified only once. If he changes - the browser or the OS from same system he will receive the mail. -If user logged from another system and if he come back to his original system, for the first time -he will receive the email -Configuration -============= -For the working of this module, the outgoing mail configuration has to be configured . The Email will be send -to Users related partners Email ID. If the Email ID for the related partner of the user is not given, -then the notification mail will not send. - -Also install the "httpagentparser" python package, sudo pip install httpagentparser - -Credits -======= -Cybrosys Techno Solutions -Author ------- -* Cybrosys Techno Solutions diff --git a/user_login_alert/__init__.py b/user_login_alert/__init__.py deleted file mode 100644 index a4f070906..000000000 --- a/user_login_alert/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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 controllers -import models - diff --git a/user_login_alert/__manifest__.py b/user_login_alert/__manifest__.py deleted file mode 100644 index 18ae58ae4..000000000 --- a/user_login_alert/__manifest__.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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': 'User Login Alert', - 'summary': """Secure your Odoo account by alerts at right time. If any successful login to your - account happens, an alert mail will be send to you with the browser and IP details.""", - 'version': '11.0.1.0.0', - 'description': """Secure your Odoo account by alerts at right time. If any successful login to your - account happens, an alert mail will be send to you with the browser and IP details.""", - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': 'https://www.cybrosys.com', - 'category': 'Tools', - 'depends': ['base', 'mail'], - 'license': 'AGPL-3', - 'data': [ - 'security/notification_group.xml', - 'views/logged_details_view.xml', - ], - 'images': ['static/description/banner.jpg'], - 'demo': [], - 'installable': True, - 'auto_install': False, - 'external_dependencies': { - 'python': ['httpagentparser'], - }, - - -} - diff --git a/user_login_alert/__manifest__.py~ b/user_login_alert/__manifest__.py~ deleted file mode 100644 index 839a3d54b..000000000 --- a/user_login_alert/__manifest__.py~ +++ /dev/null @@ -1,18 +0,0 @@ -{ - 'name': 'Login Notification', - 'summary': """Send login notification E-mail to user""", - 'version': '10.0.1.0.0', - 'description': """Send login notification E-mail to user""", - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': 'http://www.cybrosys.com', - 'category': 'Tools', - 'depends': ['base', 'web'], - 'license': 'AGPL-3', - 'data': [ - ], - 'demo': [], - 'installable': True, - 'auto_install': False, - -} \ No newline at end of file diff --git a/user_login_alert/controllers/__init__.py b/user_login_alert/controllers/__init__.py deleted file mode 100644 index 58987f200..000000000 --- a/user_login_alert/controllers/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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 main diff --git a/user_login_alert/controllers/main.py b/user_login_alert/controllers/main.py deleted file mode 100644 index bc256da01..000000000 --- a/user_login_alert/controllers/main.py +++ /dev/null @@ -1,109 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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 httpagentparser -from time import gmtime, strftime -from odoo.addons.web.controllers import main -from odoo.http import request -from odoo.exceptions import Warning -import odoo -import odoo.modules.registry -from odoo.tools.translate import _ -from odoo import http - - -class Home(main.Home): - - @http.route('/web/login', type='http', auth="public") - def web_login(self, redirect=None, **kw): - main.ensure_db() - request.params['login_success'] = False - if request.httprequest.method == 'GET' and redirect and request.session.uid: - return http.redirect_with_hash(redirect) - - if not request.uid: - request.uid = odoo.SUPERUSER_ID - - values = request.params.copy() - try: - values['databases'] = http.db_list() - except odoo.exceptions.AccessDenied: - values['databases'] = None - if request.httprequest.method == 'POST': - old_uid = request.uid - uid = request.session.authenticate(request.session.db, request.params['login'], request.params['password']) - if uid is not False: - user_rec = request.env['res.users'].sudo().search([('id', '=', uid)]) - if user_rec.partner_id.email and user_rec.has_group('user_login_alert.receive_login_notification'): - send_mail = 0 - agent = request.httprequest.environ.get('HTTP_USER_AGENT') - agent_details = httpagentparser.detect(agent) - user_os = agent_details['os']['name'] - browser_name = agent_details['browser']['name'] - ip_address = request.httprequest.environ['REMOTE_ADDR'] - if user_rec.last_logged_ip and user_rec.last_logged_browser and user_rec.last_logged_os: - if user_rec.last_logged_ip != ip_address or user_rec.last_logged_browser != browser_name or user_rec.last_logged_os != user_os: - send_mail = 1 - user_rec.last_logged_ip = ip_address - user_rec.last_logged_browser = browser_name - user_rec.last_logged_os = user_os - else: - send_mail = 0 - else: - send_mail = 1 - user_rec.last_logged_ip = ip_address - user_rec.last_logged_browser = browser_name - user_rec.last_logged_os = user_os - if send_mail == 1: - email_to = user_rec.partner_id.email - current_date_time = strftime("%Y-%m-%d %H:%M:%S", gmtime()) - message_body = 'Hi ' + user_rec.name + ' , Your account has been ' \ - 'accessed successfully. The details of the ' \ - 'system from which the account is accessed ...,' - message_body += '' - message_body += '' \ - '' \ - ''\ - '' \ - '' \ - ''\ - '' \ - '' \ - '' - message_body += '
' + 'OS' + '' + user_os + '
' + 'Browser' + '' + browser_name + '
' + 'IP Address' + '' + ip_address + '
' - message_body += 'Thank you' - template_obj = request.env['mail.mail'] - template_data = { - 'subject': 'Login Alert : ' + current_date_time, - 'body_html': message_body, - 'email_from': request.env.user.company_id.email, - 'email_to': email_to - } - template_id = template_obj.create(template_data) - template_obj.send(template_id) - request.params['login_success'] = True - if not redirect: - redirect = '/web' - return http.redirect_with_hash(redirect) - request.uid = old_uid - values['error'] = _("Wrong login/password") - return request.render('web.login', values) diff --git a/user_login_alert/models/__init__.py b/user_login_alert/models/__init__.py deleted file mode 100644 index 03078d885..000000000 --- a/user_login_alert/models/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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 logged_details - diff --git a/user_login_alert/models/logged_details.py b/user_login_alert/models/logged_details.py deleted file mode 100644 index 1f3bb6461..000000000 --- a/user_login_alert/models/logged_details.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-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 odoo import models, fields - - -class ResUsersInherit(models.Model): - _inherit = 'res.users' - - last_logged_ip = fields.Char(string='IP') - last_logged_browser = fields.Char(string='Browser') - last_logged_os = fields.Char(string='OS') diff --git a/user_login_alert/security/notification_group.xml b/user_login_alert/security/notification_group.xml deleted file mode 100644 index 5867cb807..000000000 --- a/user_login_alert/security/notification_group.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - Receive Login Notification - - - \ No newline at end of file diff --git a/user_login_alert/static/description/banner.jpg b/user_login_alert/static/description/banner.jpg deleted file mode 100644 index 91c8a6fa3..000000000 Binary files a/user_login_alert/static/description/banner.jpg and /dev/null differ diff --git a/user_login_alert/static/description/cybro_logo.png b/user_login_alert/static/description/cybro_logo.png deleted file mode 100644 index bb309114c..000000000 Binary files a/user_login_alert/static/description/cybro_logo.png and /dev/null differ diff --git a/user_login_alert/static/description/icon.png b/user_login_alert/static/description/icon.png deleted file mode 100644 index f5418fd92..000000000 Binary files a/user_login_alert/static/description/icon.png and /dev/null differ diff --git a/user_login_alert/static/description/index.html b/user_login_alert/static/description/index.html deleted file mode 100644 index 491abedb3..000000000 --- a/user_login_alert/static/description/index.html +++ /dev/null @@ -1,86 +0,0 @@ -
-
-

User Login Alert

-

User will be notified on Successful login

-

Cybrosys Technologies

-
-

This module will send a notification email to the users email. The notification email contains the IP - of the system, browser name and OS from which the account is accessed.

-
-
-

Features:

-
    -
  •    Email notification on Log in
  • -
  •    Details of the system that accessed the account
  • -
  •    IP, OS and browser as well as log in time will be there in the notification email
  • -
  •    User will receive notification only if user exist in group receive login notification
  • -
-
-
-
- -
-
-

Notification E-Mail

-
-

Adding user to the login notification group

-

user will receive notification only if he is added in this group

-
- -
-
- -
-

User received e-mail on successful login

-
- -
-
-
-
- -
-
-

Working

-
-
    -
  •    If the user is logging in from the same system, user will be only notified for the first time
  • -
  •    If the user changes the browser or OS from the same system, the notification email will be received
  • -
  •    if user logged in from a new system , notification mail will send.
  • -
  •    Users IP, OS ad browser details will be stored in User form.
  • -
  •    Logging in from above IP ,browser and OS user wont be notified
  • -
  •    This will get updated based on users latest login
  • -
  •    This will details be visible only in developer mode
  • -
-
-
-
- - - - -
-

Need Any Help?

- -
diff --git a/user_login_alert/static/description/index.html~ b/user_login_alert/static/description/index.html~ deleted file mode 100644 index 7f747cbbb..000000000 --- a/user_login_alert/static/description/index.html~ +++ /dev/null @@ -1,82 +0,0 @@ -
-
-

Birthday Notification By E-mail

-

This module will wish the employees on their birthday

- -

Author : Cybrosys Techno Solutions , www.cybrosys.com

-
-

Features:

-
    -
  •    Adds a cron job to invoke email
  • -
  •    Adds an email template
  • -
-
-
-
- -
-
-
-

Overview

-

- HR departments need not worry to wish their employees for their Birthday. In this module we have included the feature to send an email Birthday notification to the employee. -

-
-
-
- -
-
-

Employee Form

-
-

- ☛ Give Date of Birth for employee.
- ☛ Give work email.
-

-
- -
-
-
-
- -
-
-

Email Template

-
-

- ☛ The cron job will invoke the email
- ☛ Email template is very simple
-

-
- -
-
-
-
- -
-

Need Any Help?

- -
diff --git a/user_login_alert/static/description/notified_email.png b/user_login_alert/static/description/notified_email.png deleted file mode 100644 index f4a6c8284..000000000 Binary files a/user_login_alert/static/description/notified_email.png and /dev/null differ diff --git a/user_login_alert/static/description/tick_to_receive.png b/user_login_alert/static/description/tick_to_receive.png deleted file mode 100644 index 8afb7253e..000000000 Binary files a/user_login_alert/static/description/tick_to_receive.png and /dev/null differ diff --git a/user_login_alert/views/logged_details_view.xml b/user_login_alert/views/logged_details_view.xml deleted file mode 100644 index cf8b3c27a..000000000 --- a/user_login_alert/views/logged_details_view.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - res.users - res.users - - - - - - - - - - - - - - - - - - -