diff --git a/web_login_styles/README.rst b/web_login_styles/README.rst new file mode 100644 index 000000000..b0fdf8647 --- /dev/null +++ b/web_login_styles/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Customize Login Page Style +========================== +This module will helps you to customize the login page with different styles. + +Configuration +============= +- www.odoo.com/documentation/17.0/setup/install.html +- Install our custom addon + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL V3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +Developer: (V18) Ayana KP, + (V17) Mohammed Dilshad Tk, +Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ diff --git a/web_login_styles/__init__.py b/web_login_styles/__init__.py new file mode 100644 index 000000000..398079ef5 --- /dev/null +++ b/web_login_styles/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP () +# +# 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 +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import controllers +from . import models diff --git a/web_login_styles/__manifest__.py b/web_login_styles/__manifest__.py new file mode 100644 index 000000000..6d3d33e52 --- /dev/null +++ b/web_login_styles/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KPk () +# +# 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 +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +{ + 'name': 'Customize Login Page Style', + 'version': '18.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'Customize The Login Page With Different Styles', + 'description': 'The Module helps to customize login page with different ' + 'styles', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base','base_setup','web'], + 'data': [ + 'views/res_config_settings_views.xml', + 'views/webclient_templates_right.xml', + 'views/webclient_templates_left.xml', + 'views/webclient_templates_middle.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/web_login_styles/controllers/__init__.py b/web_login_styles/controllers/__init__.py new file mode 100644 index 000000000..e507f8611 --- /dev/null +++ b/web_login_styles/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP () +# +# 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 +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import main diff --git a/web_login_styles/controllers/main.py b/web_login_styles/controllers/main.py new file mode 100644 index 000000000..0b0b5a369 --- /dev/null +++ b/web_login_styles/controllers/main.py @@ -0,0 +1,134 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: MAyana KP () +# +# 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 +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +import hashlib +import odoo +from odoo import http +from odoo.tools import pycompat +from odoo.tools.translate import _ +from odoo.http import request +from odoo.addons.web.controllers.home import Home as WebHome +from odoo.addons.web.controllers.utils import ensure_db, _get_login_redirect_url + +# Shared parameters for all login/signup flows +SIGN_UP_REQUEST_PARAMS = {'db', 'login', 'debug', 'token', 'message', 'error', + 'scope', 'mode', 'redirect', 'redirect_hostname', + 'email', 'name', 'partner_id', 'password', + 'confirm_password', 'city', 'country_id', 'lang'} + + +class Home(WebHome): + @http.route(route='/web/login', type='http', auth="none") + def web_login(self, redirect=None, **kw): + """Override web_login function to add features of this module.""" + ensure_db() + request.params['login_success'] = False + if request.httprequest.method == 'GET' and redirect and request.session.uid: + return request.redirect(redirect) + if not request.uid: + request.update_env(user=odoo.SUPERUSER_ID) + values = {val: item for val, item in request.params.items() if + val in SIGN_UP_REQUEST_PARAMS} + try: + values['databases'] = http.db_list() + except odoo.exceptions.AccessDenied: + values['databases'] = None + if request.httprequest.method == 'POST': + old_uid = request.update_env(user=request.session.uid) + try: + credential = {'login': request.params['login'], 'password': request.params['password'], + 'type': 'password'} + uid = request.session.authenticate(request.session.db, credential) + request.params['login_success'] = True + return request.redirect( + self._login_redirect(uid, redirect=redirect)) + except odoo.exceptions.AccessDenied as e: + request.update_env = old_uid + if e.args == odoo.exceptions.AccessDenied().args: + values['error'] = _("Wrong login/password") + else: + values['error'] = e.args[0] + else: + if 'error' in request.params and request.params.get( + 'error') == 'access': + values['error'] = _( + 'Only employees can access this database. ' + 'Please contact the administrator.') + if 'login' not in values and request.session.get('auth_login'): + values['login'] = request.session.get('auth_login') + if not odoo.tools.config['list_db']: + values['disable_database_manager'] = True + conf_param = request.env['ir.config_parameter'].sudo() + orientation = conf_param.get_param('web_login_styles.orientation') + image = conf_param.get_param('web_login_styles.image') + url = conf_param.get_param('web_login_styles.url') + background_type = conf_param.get_param('web_login_styles.background') + if background_type == 'color': + values['bg'] = '' + values['color'] = conf_param.sudo().get_param( + 'web_login_styles.color') + elif background_type == 'image': + exist_rec = request.env['ir.attachment'].sudo().search( + [('is_background', '=', True)]) + if exist_rec: + exist_rec.unlink() + attachments = request.env['ir.attachment'].sudo().create({ + 'name': 'Background Image', + 'datas': image, + 'type': 'binary', + 'mimetype': 'image/png', + 'public': True, + 'is_background': True + }) + base_url = conf_param.sudo().get_param('web.base.url') + url = base_url + '/web/image?' + 'model=ir.attachment&id=' + str( + attachments.id) + '&field=datas' + values['bg_img'] = url or '' + elif background_type == 'url': + pre_exist = request.env['ir.attachment'].sudo().search( + [('url', '=', url)]) + if not pre_exist: + attachments = request.env['ir.attachment'].sudo().create({ + 'name': 'Background Image URL', + 'url': url, + 'type': 'url', + 'public': True + }) + else: + attachments = pre_exist + encode = hashlib.md5( + pycompat.to_text(attachments.url).encode("utf-8")).hexdigest()[ + 0:7] + encode_url = "/web/image/{}-{}".format(attachments.id, encode) + values['bg_img'] = encode_url or '' + if orientation == 'right': + response = request.render('web_login_styles.login_template_right', + values) + elif orientation == 'left': + response = request.render('web_login_styles.login_template_left', + values) + elif orientation == 'middle': + response = request.render('web_login_styles.login_template_middle', + values) + else: + response = request.render('web.login', values) + response.headers['X-Frame-Options'] = 'DENY' + return response diff --git a/web_login_styles/doc/RELEASE_NOTES.md b/web_login_styles/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..2ce574035 --- /dev/null +++ b/web_login_styles/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 08.10.2024 +#### Version 18.0.1.0.0 +#### ADD +- Initial Commit for Customize Login Page Style. diff --git a/web_login_styles/models/__init__.py b/web_login_styles/models/__init__.py new file mode 100644 index 000000000..af45ab767 --- /dev/null +++ b/web_login_styles/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP () +# +# 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 +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import res_config_settings +from . import ir_attachment + diff --git a/web_login_styles/models/ir_attachment.py b/web_login_styles/models/ir_attachment.py new file mode 100644 index 000000000..9c41c5bb2 --- /dev/null +++ b/web_login_styles/models/ir_attachment.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP () +# +# 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 +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import fields, models + + +class IrAttachment(models.Model): + """Inherit 'ir.attachment' to add field""" + _inherit = 'ir.attachment' + + is_background = fields.Boolean(string="Is Background", default=False, + help="To check is background option added") diff --git a/web_login_styles/models/res_config_settings.py b/web_login_styles/models/res_config_settings.py new file mode 100644 index 000000000..518388fa1 --- /dev/null +++ b/web_login_styles/models/res_config_settings.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP () +# +# 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 +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import api, fields, models + + +class ResConfigSettings(models.TransientModel): + """Inherits 'res.config.settings' to add fields for customize login page.""" + _inherit = 'res.config.settings' + + orientation = fields.Selection(selection=[('default', 'Default'), + ('left', 'Left'), + ('middle', 'Middle'), + ('right', 'Right')], + string="Orientation", + help="Type of login page visibility", + config_parameter="web_login_styles.orientation") + background = fields.Selection(selection=[('color', 'Color Picker'), + ('image', 'Image'), + ('url', 'URL')], + string="Background", + help="Background of the login page", + config_parameter="web_login_styles.background") + image = fields.Binary(string="Image", help="Select background image " + "of login page") + url = fields.Char(string="URL", help="Select and url of image", + config_parameter="web_login_styles.url") + color = fields.Char(string="Color", help="Set a colour for background " + "of login page", + config_parameter="web_login_styles.color") + + @api.model + def get_values(self): + """Super the get_values function to get the field values.""" + res = super(ResConfigSettings, self).get_values() + params = self.env['ir.config_parameter'].sudo() + res.update(image=params.get_param('web_login_styles.image')) + return res + + def set_values(self): + """Super the set_values function to save the field values.""" + super(ResConfigSettings, self).set_values() + params = self.env['ir.config_parameter'].sudo() + params.set_param('web_login_styles.image', self.image) + + @api.onchange('orientation') + def onchange_orientation(self): + """Set background field to false for hiding option to customize login + page background """ + if self.orientation == 'default': + self.background = False diff --git a/web_login_styles/static/description/assets/cybro-icon.png b/web_login_styles/static/description/assets/cybro-icon.png new file mode 100644 index 000000000..06e73e11d Binary files /dev/null and b/web_login_styles/static/description/assets/cybro-icon.png differ diff --git a/web_login_styles/static/description/assets/cybro-odoo.png b/web_login_styles/static/description/assets/cybro-odoo.png new file mode 100644 index 000000000..ed02e07a4 Binary files /dev/null and b/web_login_styles/static/description/assets/cybro-odoo.png differ diff --git a/web_login_styles/static/description/assets/h2.png b/web_login_styles/static/description/assets/h2.png new file mode 100644 index 000000000..0bfc4707d Binary files /dev/null and b/web_login_styles/static/description/assets/h2.png differ diff --git a/web_login_styles/static/description/assets/icons/arrows-repeat.svg b/web_login_styles/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/banner-1.png b/web_login_styles/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/banner-1.png differ diff --git a/web_login_styles/static/description/assets/icons/banner-2.svg b/web_login_styles/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/banner-bg.png b/web_login_styles/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/banner-bg.png differ diff --git a/web_login_styles/static/description/assets/icons/banner-bg.svg b/web_login_styles/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/web_login_styles/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/banner-call.svg b/web_login_styles/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/web_login_styles/static/description/assets/icons/banner-mail.svg b/web_login_styles/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/web_login_styles/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/web_login_styles/static/description/assets/icons/banner-pattern.svg b/web_login_styles/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/banner-promo.svg b/web_login_styles/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/brand-pair.svg b/web_login_styles/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/web_login_styles/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/check.png b/web_login_styles/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/web_login_styles/static/description/assets/icons/check.png differ diff --git a/web_login_styles/static/description/assets/icons/chevron.png b/web_login_styles/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/chevron.png differ diff --git a/web_login_styles/static/description/assets/icons/close-icon.svg b/web_login_styles/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/web_login_styles/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/web_login_styles/static/description/assets/icons/cogs.png b/web_login_styles/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/cogs.png differ diff --git a/web_login_styles/static/description/assets/icons/collabarate-icon.svg b/web_login_styles/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/web_login_styles/static/description/assets/icons/consultation.png b/web_login_styles/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/web_login_styles/static/description/assets/icons/consultation.png differ diff --git a/web_login_styles/static/description/assets/icons/cybro-logo.png b/web_login_styles/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/cybro-logo.png differ diff --git a/web_login_styles/static/description/assets/icons/down.svg b/web_login_styles/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/web_login_styles/static/description/assets/icons/ecom-black.png b/web_login_styles/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/ecom-black.png differ diff --git a/web_login_styles/static/description/assets/icons/education-black.png b/web_login_styles/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/web_login_styles/static/description/assets/icons/education-black.png differ diff --git a/web_login_styles/static/description/assets/icons/faq.png b/web_login_styles/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/faq.png differ diff --git a/web_login_styles/static/description/assets/icons/feature-icon.svg b/web_login_styles/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/feature.png b/web_login_styles/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/feature.png differ diff --git a/web_login_styles/static/description/assets/icons/gear.svg b/web_login_styles/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/web_login_styles/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/hero.gif b/web_login_styles/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..380654dfe Binary files /dev/null and b/web_login_styles/static/description/assets/icons/hero.gif differ diff --git a/web_login_styles/static/description/assets/icons/hire-odoo.svg b/web_login_styles/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/hotel-black.png b/web_login_styles/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/web_login_styles/static/description/assets/icons/hotel-black.png differ diff --git a/web_login_styles/static/description/assets/icons/license.png b/web_login_styles/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/web_login_styles/static/description/assets/icons/license.png differ diff --git a/web_login_styles/static/description/assets/icons/life-ring-icon.svg b/web_login_styles/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/lifebuoy.png b/web_login_styles/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/web_login_styles/static/description/assets/icons/lifebuoy.png differ diff --git a/web_login_styles/static/description/assets/icons/mail.svg b/web_login_styles/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/web_login_styles/static/description/assets/icons/manufacturing-black.png b/web_login_styles/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/web_login_styles/static/description/assets/icons/manufacturing-black.png differ diff --git a/web_login_styles/static/description/assets/icons/notes.png b/web_login_styles/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/notes.png differ diff --git a/web_login_styles/static/description/assets/icons/notification icon.svg b/web_login_styles/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/odoo-consultancy.svg b/web_login_styles/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/web_login_styles/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/web_login_styles/static/description/assets/icons/odoo-licencing.svg b/web_login_styles/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/web_login_styles/static/description/assets/icons/odoo-logo.png b/web_login_styles/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/web_login_styles/static/description/assets/icons/odoo-logo.png differ diff --git a/web_login_styles/static/description/assets/icons/patter.svg b/web_login_styles/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/web_login_styles/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/pattern1.png b/web_login_styles/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/web_login_styles/static/description/assets/icons/pattern1.png differ diff --git a/web_login_styles/static/description/assets/icons/pos-black.png b/web_login_styles/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/pos-black.png differ diff --git a/web_login_styles/static/description/assets/icons/puzzle-piece-icon.svg b/web_login_styles/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/puzzle.png b/web_login_styles/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/puzzle.png differ diff --git a/web_login_styles/static/description/assets/icons/replace-icon.svg b/web_login_styles/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/restaurant-black.png b/web_login_styles/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/restaurant-black.png differ diff --git a/web_login_styles/static/description/assets/icons/screenshot-main.png b/web_login_styles/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/screenshot-main.png differ diff --git a/web_login_styles/static/description/assets/icons/screenshot.png b/web_login_styles/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/screenshot.png differ diff --git a/web_login_styles/static/description/assets/icons/service-black.png b/web_login_styles/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/web_login_styles/static/description/assets/icons/service-black.png differ diff --git a/web_login_styles/static/description/assets/icons/skype-fill.svg b/web_login_styles/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/skype.png b/web_login_styles/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/skype.png differ diff --git a/web_login_styles/static/description/assets/icons/skype.svg b/web_login_styles/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/web_login_styles/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/web_login_styles/static/description/assets/icons/star-1.svg b/web_login_styles/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/star-2.svg b/web_login_styles/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/web_login_styles/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/support.png b/web_login_styles/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/support.png differ diff --git a/web_login_styles/static/description/assets/icons/test-1 - Copy.png b/web_login_styles/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/test-1 - Copy.png differ diff --git a/web_login_styles/static/description/assets/icons/test-1.png b/web_login_styles/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/web_login_styles/static/description/assets/icons/test-1.png differ diff --git a/web_login_styles/static/description/assets/icons/test-2.png b/web_login_styles/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/web_login_styles/static/description/assets/icons/test-2.png differ diff --git a/web_login_styles/static/description/assets/icons/trading-black.png b/web_login_styles/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/trading-black.png differ diff --git a/web_login_styles/static/description/assets/icons/training.png b/web_login_styles/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/web_login_styles/static/description/assets/icons/training.png differ diff --git a/web_login_styles/static/description/assets/icons/translate.svg b/web_login_styles/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/web_login_styles/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/update.png b/web_login_styles/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/web_login_styles/static/description/assets/icons/update.png differ diff --git a/web_login_styles/static/description/assets/icons/user.png b/web_login_styles/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/web_login_styles/static/description/assets/icons/user.png differ diff --git a/web_login_styles/static/description/assets/icons/video.png b/web_login_styles/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/video.png differ diff --git a/web_login_styles/static/description/assets/icons/whatsapp.png b/web_login_styles/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/web_login_styles/static/description/assets/icons/whatsapp.png differ diff --git a/web_login_styles/static/description/assets/icons/wrench-icon.svg b/web_login_styles/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/web_login_styles/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/web_login_styles/static/description/assets/icons/wrench.png b/web_login_styles/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/web_login_styles/static/description/assets/icons/wrench.png differ diff --git a/web_login_styles/static/description/assets/modules/1.gif b/web_login_styles/static/description/assets/modules/1.gif new file mode 100644 index 000000000..ae3a880a2 Binary files /dev/null and b/web_login_styles/static/description/assets/modules/1.gif differ diff --git a/web_login_styles/static/description/assets/modules/2.gif b/web_login_styles/static/description/assets/modules/2.gif new file mode 100644 index 000000000..d19e2b352 Binary files /dev/null and b/web_login_styles/static/description/assets/modules/2.gif differ diff --git a/web_login_styles/static/description/assets/modules/3.png b/web_login_styles/static/description/assets/modules/3.png new file mode 100644 index 000000000..8513873ea Binary files /dev/null and b/web_login_styles/static/description/assets/modules/3.png differ diff --git a/web_login_styles/static/description/assets/modules/4.png b/web_login_styles/static/description/assets/modules/4.png new file mode 100644 index 000000000..3bedf7981 Binary files /dev/null and b/web_login_styles/static/description/assets/modules/4.png differ diff --git a/web_login_styles/static/description/assets/modules/5.png b/web_login_styles/static/description/assets/modules/5.png new file mode 100644 index 000000000..0e311ca87 Binary files /dev/null and b/web_login_styles/static/description/assets/modules/5.png differ diff --git a/web_login_styles/static/description/assets/modules/6.jpg b/web_login_styles/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/web_login_styles/static/description/assets/modules/6.jpg differ diff --git a/web_login_styles/static/description/assets/screenshots/1.png b/web_login_styles/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..a96d06d1d Binary files /dev/null and b/web_login_styles/static/description/assets/screenshots/1.png differ diff --git a/web_login_styles/static/description/assets/screenshots/2.png b/web_login_styles/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..5c489bc2e Binary files /dev/null and b/web_login_styles/static/description/assets/screenshots/2.png differ diff --git a/web_login_styles/static/description/assets/screenshots/V-18-GIF.gif b/web_login_styles/static/description/assets/screenshots/V-18-GIF.gif new file mode 100644 index 000000000..3ec544a11 Binary files /dev/null and b/web_login_styles/static/description/assets/screenshots/V-18-GIF.gif differ diff --git a/web_login_styles/static/description/assets/screenshots/img1.png b/web_login_styles/static/description/assets/screenshots/img1.png new file mode 100644 index 000000000..1dd37d365 Binary files /dev/null and b/web_login_styles/static/description/assets/screenshots/img1.png differ diff --git a/web_login_styles/static/description/assets/screenshots/img10.png b/web_login_styles/static/description/assets/screenshots/img10.png new file mode 100644 index 000000000..17bec6c23 Binary files /dev/null and b/web_login_styles/static/description/assets/screenshots/img10.png differ diff --git a/web_login_styles/static/description/assets/screenshots/img2.png b/web_login_styles/static/description/assets/screenshots/img2.png new file mode 100644 index 000000000..603a785f6 Binary files /dev/null and b/web_login_styles/static/description/assets/screenshots/img2.png differ diff --git a/web_login_styles/static/description/assets/screenshots/img3.png b/web_login_styles/static/description/assets/screenshots/img3.png new file mode 100644 index 000000000..3f0e754e1 Binary files /dev/null and b/web_login_styles/static/description/assets/screenshots/img3.png differ diff --git a/web_login_styles/static/description/assets/screenshots/img4.png b/web_login_styles/static/description/assets/screenshots/img4.png new file mode 100644 index 000000000..8219cedda Binary files /dev/null and b/web_login_styles/static/description/assets/screenshots/img4.png differ diff --git a/web_login_styles/static/description/assets/screenshots/img5.png b/web_login_styles/static/description/assets/screenshots/img5.png new file mode 100644 index 000000000..1e31c37c9 Binary files /dev/null and b/web_login_styles/static/description/assets/screenshots/img5.png differ diff --git a/web_login_styles/static/description/assets/screenshots/img6.png b/web_login_styles/static/description/assets/screenshots/img6.png new file mode 100644 index 000000000..640c9d670 Binary files /dev/null and b/web_login_styles/static/description/assets/screenshots/img6.png differ diff --git a/web_login_styles/static/description/assets/screenshots/img7.png b/web_login_styles/static/description/assets/screenshots/img7.png new file mode 100644 index 000000000..85164d79a Binary files /dev/null and b/web_login_styles/static/description/assets/screenshots/img7.png differ diff --git a/web_login_styles/static/description/assets/screenshots/img8.png b/web_login_styles/static/description/assets/screenshots/img8.png new file mode 100644 index 000000000..a1218b549 Binary files /dev/null and b/web_login_styles/static/description/assets/screenshots/img8.png differ diff --git a/web_login_styles/static/description/assets/screenshots/img9.png b/web_login_styles/static/description/assets/screenshots/img9.png new file mode 100644 index 000000000..2c188a82e Binary files /dev/null and b/web_login_styles/static/description/assets/screenshots/img9.png differ diff --git a/web_login_styles/static/description/assets/y18.jpg b/web_login_styles/static/description/assets/y18.jpg new file mode 100644 index 000000000..eea1714f2 Binary files /dev/null and b/web_login_styles/static/description/assets/y18.jpg differ diff --git a/web_login_styles/static/description/banner.png b/web_login_styles/static/description/banner.png new file mode 100644 index 000000000..696582fa8 Binary files /dev/null and b/web_login_styles/static/description/banner.png differ diff --git a/web_login_styles/static/description/icon.png b/web_login_styles/static/description/icon.png new file mode 100644 index 000000000..505f95dad Binary files /dev/null and b/web_login_styles/static/description/icon.png differ diff --git a/web_login_styles/static/description/index.html b/web_login_styles/static/description/index.html new file mode 100644 index 000000000..bb097895d --- /dev/null +++ b/web_login_styles/static/description/index.html @@ -0,0 +1,1159 @@ + + + + + + Customize Login Page Style + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+ + + + +
+
+ +
+
+
+
+

+ Customize The Login Page With Different Styles +

+

Customize Login Page Style +

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

Key + Heighlights

+
+
+
+
+ +
+
+ Custom Style +
+

+ Change the alignment of the login to right, + left, middle or default.

+
+
+
+
+
+ +
+
+ Advanced Style +
+

+ Set up background with color, image, or url of + the images. +

+
+
+
+
+
+ +
+
+ Compatibility +
+

+ Designed to work with both Odoo Community and Enterprise editions. +

+
+
+ +
+
+ +
+
+
+ Customize Login Page Style +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ Login Page Set-Up + +

+
+
+

+ From the general settings one can find the + login page set up to configure + the login option.The alignments can be set + to right, left, middle or as default. +

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

+ + Alignment of the Login +

+
+
+

+ Login Layout set to default. +

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

+ Login Layout set to Left + +

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

+ Login Layout set to Middle + +

+
+
+

+ Login Layout set to Middle(it can include + the changes in background) +

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

+ Login Layout set to Right + +

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

+ Background Styles + +

+
+
+

+ There are 3 types of background setup. They + are Color Picker, Image, URL. +

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

+ Set a colour for the background. + +

+
+
+

+ Using Color picker we can select the color + as we need to set up as the background of + login page. +

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

+ Login page color + +

+
+
+

+ After selecting the color the login page + automatically set up its background to the + color we selected. +

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

+ Set a background Image + +

+
+
+

+ Using Image option we can select the + background image from our system. + Then selected image will set as login + background image. +

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

+ Set a background Image as url in the set-up + +

+
+
+

+ Using the 'URL' option we can set the background image from the mentioned url of the image. + Then the selected image will be set as the background image of the login layout. +

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

+ Custom Background + Styles.

+
+ +
+
+
+
+
+
+ +
+

+ There are 3 + types of background setup. They are color + picker, image, URL.

+
+
+
+
+
+
+
+ +
+

+ Enable/Disable + Validation from settings.

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

+ You can access the login page setup by navigating to the "General Settings" in your Odoo app. Look for the "Login Page Setup" option, where you can configure various settings for the login page. +

+
+
+ +
+ +
+

+ The login page allows you to set the alignment of elements to either the left, right, middle, or you can choose the default alignment. Simply select your preferred option in the "Login Page Setup" section to customize the appearance.

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

+ Latest Release 18.0.1.0.0 +

+ + 1st October, 2024 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + + + + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/web_login_styles/views/res_config_settings_views.xml b/web_login_styles/views/res_config_settings_views.xml new file mode 100644 index 000000000..0365147c6 --- /dev/null +++ b/web_login_styles/views/res_config_settings_views.xml @@ -0,0 +1,37 @@ + + + + + res.config.settings.view.form.inherit.web.login.styles + res.config.settings + + + + + + + + + + + + diff --git a/web_login_styles/views/webclient_templates_left.xml b/web_login_styles/views/webclient_templates_left.xml new file mode 100644 index 000000000..9402f9dcd --- /dev/null +++ b/web_login_styles/views/webclient_templates_left.xml @@ -0,0 +1,129 @@ + + + + + diff --git a/web_login_styles/views/webclient_templates_middle.xml b/web_login_styles/views/webclient_templates_middle.xml new file mode 100644 index 000000000..db8ddd7fb --- /dev/null +++ b/web_login_styles/views/webclient_templates_middle.xml @@ -0,0 +1,119 @@ + + + + + diff --git a/web_login_styles/views/webclient_templates_right.xml b/web_login_styles/views/webclient_templates_right.xml new file mode 100644 index 000000000..d2f882802 --- /dev/null +++ b/web_login_styles/views/webclient_templates_right.xml @@ -0,0 +1,127 @@ + + + + +