@ -0,0 +1,48 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg |
||||
|
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html |
||||
|
:alt: License: AGPL-3 |
||||
|
|
||||
|
Advance Signup Page |
||||
|
==================== |
||||
|
The user can create the Sign-Up page for their Odoo website using the Odoo Advance Sign Up tool. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
* No additional configurations needed |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
Affero General Public License, Version 3 (AGPL v3) |
||||
|
( https://www.gnu.org/licenses/agpl-3.0-standalone.html) |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
* Developers: (V15): Mufeeda Shirin , |
||||
|
(V16): Amal Varghese , |
||||
|
* 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 `Our Website <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################### |
||||
|
from . import controllers |
||||
|
from . import models |
@ -0,0 +1,50 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################### |
||||
|
{ |
||||
|
'name': "Advance Signup Page", |
||||
|
'version': '15.0.1.0.0', |
||||
|
'category': 'Website', |
||||
|
'summary': """The user can design a more creative and distinctive sign-up |
||||
|
page for their Odoo website by using Odoo Advance Sign Up.""", |
||||
|
'description': """The user may create the Sign-Up page for their Odoo |
||||
|
website using the Odoo Advance Sign Up tool.Various dynamic fields can |
||||
|
be added by the Odoo admin as needed to the signup form.The website page |
||||
|
for signup, login, and password reset can have custom background picture |
||||
|
selected by the Odoo admin.Admins may also add content to the login, |
||||
|
register, and reset password pages from the Odoo backend.""", |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': "https://www.cybrosys.com", |
||||
|
'depends': ['website', 'auth_signup'], |
||||
|
'data': [ |
||||
|
'security/ir.model.access.csv', |
||||
|
'views/signup_configuration_views.xml', |
||||
|
'views/signup_fields_views.xml', |
||||
|
'views/auth_signup_templates.xml' |
||||
|
], |
||||
|
'images': ['static/description/banner.jpg'], |
||||
|
'license': 'AGPL-3', |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'application': False, |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################### |
||||
|
from . import advanced_login_signup |
||||
|
|
@ -0,0 +1,192 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################### |
||||
|
import logging |
||||
|
from werkzeug.urls import url_encode |
||||
|
import odoo |
||||
|
from odoo import http |
||||
|
from odoo.exceptions import UserError |
||||
|
from odoo.http import request |
||||
|
from odoo.tools.translate import _ |
||||
|
from odoo.addons.web.controllers.main import Home |
||||
|
from odoo.addons.auth_signup.models.res_users import SignupError |
||||
|
from odoo.addons.web.controllers.main import ensure_db |
||||
|
|
||||
|
_logger = logging.getLogger(__name__) |
||||
|
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', 'signup_email'} |
||||
|
LOGIN_SUCCESSFUL_PARAMS = set() |
||||
|
|
||||
|
|
||||
|
class AdvancedLoginSignup(Home): |
||||
|
"""Custom AdvancedLoginSignup Controller for Handling Login and Signup.This custom AdvancedLoginSignup |
||||
|
controller extends the default Odoo 'Home' controller to handle login and |
||||
|
signup functionality.It provides methods for web login and signup.""" |
||||
|
|
||||
|
@http.route('/web/login', type='http', auth="none") |
||||
|
def web_login(self, redirect=None, **kw): |
||||
|
"""Function to Handle web login. """ |
||||
|
ensure_db() |
||||
|
request.params['login_success'] = False |
||||
|
if request.httprequest.method == 'GET' and redirect and \ |
||||
|
request.session.uid: |
||||
|
return request.redirect(redirect) |
||||
|
# Simulate hybrid auth=user/auth=public, despite using auth=none to be, |
||||
|
# able to redirect users when no db is selected - cfr ensure_db() |
||||
|
if request.env.uid is None: |
||||
|
if request.session.uid is None: |
||||
|
request.env["ir.http"]._auth_method_public() |
||||
|
else: |
||||
|
request.update_env(user=request.session.uid) |
||||
|
values = {k: v for k, v in request.params.items() if |
||||
|
k in SIGN_UP_REQUEST_PARAMS} |
||||
|
try: |
||||
|
values['databases'] = http.db_list() |
||||
|
except odoo.exceptions.AccessDenied: |
||||
|
values['databases'] = None |
||||
|
if request.httprequest.method == 'POST': |
||||
|
try: |
||||
|
uid = request.session.authenticate(request.db, |
||||
|
request.params['login'], |
||||
|
request.params['password']) |
||||
|
request.params['login_success'] = True |
||||
|
return request.redirect( |
||||
|
self._login_redirect(uid, redirect=redirect)) |
||||
|
except odoo.exceptions.AccessDenied as e: |
||||
|
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 |
||||
|
values.update({ |
||||
|
'header': True, |
||||
|
'footer': True, |
||||
|
'signup_url': '/web/signup', |
||||
|
}) |
||||
|
response = request.render('web.login', values) |
||||
|
response.headers['X-Frame-Options'] = 'SAMEORIGIN' |
||||
|
response.headers['Content-Security-Policy'] = "frame-ancestors 'self'" |
||||
|
configuration = request.env['signup.configuration'].sudo().search([( |
||||
|
'website_id', '=', request.website.id)], limit=1) |
||||
|
response.qcontext.update(self.get_auth_signup_config()) |
||||
|
response.qcontext.update({ |
||||
|
'is_hide_footer': bool(configuration.is_hide_footer) |
||||
|
}) |
||||
|
if request.session.uid: |
||||
|
if request.httprequest.method == 'GET' and request.params.get( |
||||
|
'redirect'): |
||||
|
# Redirect if already logged in and redirect param is present |
||||
|
return request.redirect(request.params.get('redirect')) |
||||
|
# Add message for non-internal user account without redirect |
||||
|
# if account was just created |
||||
|
if response.location == '/web/login_successful' and kw.get( |
||||
|
'confirm_password'): |
||||
|
return request.redirect_query('/web/login_successful', |
||||
|
query={'account_created': True}) |
||||
|
return response |
||||
|
|
||||
|
@http.route('/web/signup', type='http', auth='public', website=True, |
||||
|
sitemap=False) |
||||
|
def web_auth_signup(self, *args, **kw): |
||||
|
"""Overridden the controller function to add the configuration into |
||||
|
the qcontext""" |
||||
|
qcontext = self.get_auth_signup_qcontext() |
||||
|
configuration = request.env['signup.configuration'].sudo(). \ |
||||
|
search([('website_id', '=', request.website.id)], limit=1) |
||||
|
for key in kw: |
||||
|
qcontext[key] = kw[key] |
||||
|
if configuration: |
||||
|
qcontext.update({ |
||||
|
'configuration': configuration |
||||
|
}) |
||||
|
if 'error' not in qcontext and request.httprequest.method == 'POST': |
||||
|
try: |
||||
|
self.do_signup(qcontext) |
||||
|
# Send an account creation confirmation email |
||||
|
user = request.env['res.users'] |
||||
|
user_sudo = user.sudo().search( |
||||
|
user._get_login_domain(qcontext.get('login')), |
||||
|
order=user._get_login_order(), limit=1 |
||||
|
) |
||||
|
template = request.env.ref( |
||||
|
'auth_signup.mail_template_user_signup_account_created', |
||||
|
raise_if_not_found=False) |
||||
|
if user_sudo and template: |
||||
|
template.sudo().send_mail(user_sudo.id, force_send=True) |
||||
|
return self.web_login(*args, **kw) |
||||
|
except UserError as e: |
||||
|
qcontext['error'] = e.args[0] |
||||
|
except (SignupError, AssertionError) as e: |
||||
|
if request.env["res.users"].sudo().search( |
||||
|
[("login", "=", qcontext.get("login"))]): |
||||
|
qcontext["error"] = _( |
||||
|
"Another user is already registered using this email " |
||||
|
"address.") |
||||
|
else: |
||||
|
_logger.error("%s", e) |
||||
|
qcontext['error'] = _("Could not create a new account.") |
||||
|
elif 'signup_email' in qcontext: |
||||
|
user = request.env['res.users'].sudo().search( |
||||
|
[('email', '=', qcontext.get('signup_email')), |
||||
|
('state', '!=', 'new')], limit=1) |
||||
|
if user: |
||||
|
return request.redirect('/web/login?%s' % url_encode( |
||||
|
{'login': user.login, 'redirect': '/web'})) |
||||
|
response = request.render('auth_signup.signup', qcontext) |
||||
|
response.headers['X-Frame-Options'] = 'SAMEORIGIN' |
||||
|
response.headers['Content-Security-Policy'] = "frame-ancestors 'self'" |
||||
|
return response |
||||
|
|
||||
|
def _prepare_signup_values(self, qcontext): |
||||
|
"""Updated the values with newly added fields""" |
||||
|
values = super()._prepare_signup_values(qcontext) |
||||
|
configuration = request.env['signup.configuration'].sudo().search([], limit=1) |
||||
|
for field in configuration.signup_field_ids: |
||||
|
field_name = field.field_id.name |
||||
|
values[field_name] = qcontext.get(field_name) |
||||
|
return values |
||||
|
|
||||
|
@http.route('/web/signup', type='http', auth="public", website=True, |
||||
|
sitemap=False) |
||||
|
def website_signup(self): |
||||
|
"""Perform website signup.""" |
||||
|
values = {} |
||||
|
configuration_signup = request.env[ |
||||
|
'configuration.signup'].sudo().search([], limit=1) |
||||
|
if configuration_signup.is_show_terms_conditions: |
||||
|
values[ |
||||
|
'terms_and_conditions'] = configuration_signup \ |
||||
|
.terms_and_conditions |
||||
|
return request.render( |
||||
|
"advance_signup_portal.advance_signup_portal.fields", values) |
@ -0,0 +1,6 @@ |
|||||
|
## Module <advance_signup_page> |
||||
|
|
||||
|
#### 08.07.2024 |
||||
|
#### Version 15.0.1.0.0 |
||||
|
#### ADD |
||||
|
- Initial Commit for Advance Signup Page |
@ -0,0 +1,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################### |
||||
|
from . import signup_configuration |
||||
|
from . import signup_field |
@ -0,0 +1,78 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################### |
||||
|
from odoo import api, fields, models |
||||
|
|
||||
|
|
||||
|
class SignupConfiguration(models.Model): |
||||
|
"""Model for Signup Configuration.This class represents the Signup |
||||
|
Configuration model for the Odoo website.It is used to configure the |
||||
|
signup page, including defining fields, content,and other settings.""" |
||||
|
_name = 'signup.configuration' |
||||
|
_description = 'Signup Configuration' |
||||
|
_sql_constraints = [('website_id', 'unique(website_id)', |
||||
|
'A record for this website is already exist')] |
||||
|
|
||||
|
name = fields.Char(string='Name', copy=False, required=True, |
||||
|
help='The name of the signup configuration.') |
||||
|
website_id = fields.Many2one(comodel_name='website', |
||||
|
string='Website', required=True, |
||||
|
help='The website associated with the signup' |
||||
|
' configuration.') |
||||
|
is_active = fields.Boolean(string='Active', default=True, |
||||
|
help='Specifies if the signup configuration is ' |
||||
|
'active or not.') |
||||
|
signup_field_ids = fields.One2many(comodel_name='signup.field', |
||||
|
inverse_name='configuration_id', |
||||
|
string='Signup Fields', |
||||
|
help='The fields associated with the ' |
||||
|
'signup configuration.') |
||||
|
signup_page_content = fields.Html(string='Signup Page Content', |
||||
|
help='The content of the signup page.') |
||||
|
login_page_content = fields.Html(string='Login Page Content', |
||||
|
help='The content of the login page.') |
||||
|
reset_password_content = fields.Html(string='Reset Password Content', |
||||
|
help='The content of the reset' |
||||
|
' password page.') |
||||
|
background_image = fields.Binary(string='Background Image', |
||||
|
help='The background image for the ' |
||||
|
'signup page.') |
||||
|
is_hide_footer = fields.Boolean(string='Hide Footer from Signup Page', |
||||
|
help='Specifies if the footer should be' |
||||
|
' hidden on the signup page.') |
||||
|
is_show_terms_conditions = fields.Boolean( |
||||
|
string='Show Terms and Condition in Signup Page', |
||||
|
help='Specifies if the terms and conditions ' |
||||
|
'should be shown on the signup page.') |
||||
|
terms_and_conditions = fields.Html(string='Terms and Conditions', |
||||
|
help='The terms and conditions' |
||||
|
' text for the signup page.') |
||||
|
signup_enabled=fields.Boolean(string='Is Signup Enabled', |
||||
|
compute='_compute_signup_permission') |
||||
|
|
||||
|
@api.depends('name') |
||||
|
def _compute_signup_permission(self): |
||||
|
"""Compute method for Customer Account Selection""" |
||||
|
for record in self: |
||||
|
if self.env['ir.config_parameter'].sudo().get_param('auth_signup.invitation_scope') == 'b2c': |
||||
|
record.signup_enabled = True |
||||
|
else: |
||||
|
record.signup_enabled = False |
@ -0,0 +1,87 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################### |
||||
|
from odoo import api, fields, models |
||||
|
|
||||
|
|
||||
|
class SignupFields(models.Model): |
||||
|
""" Model for Signup Fields.This class represents the Signup Fields model |
||||
|
for the Odoo website. It is used to define and manage the fields that |
||||
|
users can sign up with.""" |
||||
|
_name = 'signup.field' |
||||
|
_description = 'Signup Fields for Website' |
||||
|
|
||||
|
field_id = fields.Many2one(comodel_name='ir.model.fields', |
||||
|
string='Signup Field', |
||||
|
domain=[('model_id.model', '=', 'res.users'), |
||||
|
('ttype', 'in', ['char', 'integer', |
||||
|
'float', 'text', 'date', |
||||
|
'datetime', |
||||
|
'binary', 'boolean'])], |
||||
|
help='The field associated with the ' |
||||
|
'signup field.') |
||||
|
name = fields.Char(string='Field Label', |
||||
|
related='field_id.field_description', |
||||
|
help='The label of the signup field.') |
||||
|
placeholder = fields.Char(string='Placeholder', |
||||
|
help='The placeholder text for the ' |
||||
|
'signup field.') |
||||
|
help_description = fields.Text(string='Help', |
||||
|
help='Additional help or description ' |
||||
|
'for the signup field.') |
||||
|
field_type = fields.Char(string='Field Type', |
||||
|
readonly=True, |
||||
|
help='The type of the signup field.') |
||||
|
number_of_cols = fields.Selection(selection=[('2', '2'), ('3', '3'), |
||||
|
('4', '4'), ('6', '6'), |
||||
|
('12', '12')], |
||||
|
string='Number of Columns', |
||||
|
help='The number of columns for the ' |
||||
|
'signup field layout.') |
||||
|
is_required = fields.Boolean(string='Is Required', |
||||
|
help='Specifies if the signup field is ' |
||||
|
'required.') |
||||
|
configuration_id = fields.Many2one(comodel_name='signup.configuration', |
||||
|
help='The signup configuration ' |
||||
|
'associated with the signup field') |
||||
|
|
||||
|
@api.model_create_multi |
||||
|
def create(self, vals_list): |
||||
|
"""Create records for the SignupFields model.""" |
||||
|
field_ids = [vals['field_id'] for vals in vals_list if |
||||
|
'field_id' in vals] |
||||
|
field_types = self.env['ir.model.fields'].browse(field_ids).mapped( |
||||
|
'ttype') |
||||
|
for vals in vals_list: |
||||
|
if 'field_id' in vals: |
||||
|
vals['field_type'] = field_types[ |
||||
|
field_ids.index(vals['field_id'])] |
||||
|
records = super(SignupFields, self).create( |
||||
|
[vals for vals in vals_list if 'field_id' in vals]) |
||||
|
return records |
||||
|
|
||||
|
def write(self, vals): |
||||
|
"""Override the function to update the field type while saving the |
||||
|
record""" |
||||
|
if 'field_id' in vals: |
||||
|
vals['field_type'] = self.env['ir.model.fields'].browse( |
||||
|
vals['field_id']).ttype |
||||
|
return super(SignupFields, self).write(vals) |
|
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 589 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 77 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 55 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 157 KiB |
After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 573 KiB |
After Width: | Height: | Size: 598 KiB |
After Width: | Height: | Size: 564 KiB |
After Width: | Height: | Size: 376 KiB |
After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 7.7 KiB |
@ -0,0 +1,640 @@ |
|||||
|
<div class="container" style="padding: 1rem !important; margin-bottom: 1rem !important;"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between" |
||||
|
style="border-bottom: 1px solid #d5d5d5;"> |
||||
|
<div class="my-3"> |
||||
|
<img src="./assets/icons/logo.png" style="width: auto !important; height: 40px !important;"> |
||||
|
</div> |
||||
|
<div class="my-3 d-flex align-items-center"> |
||||
|
<div |
||||
|
style="background-color: #7C7BAD !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;"> |
||||
|
<i class="fa fa-check mr-1"></i>Community |
||||
|
</div> |
||||
|
<div |
||||
|
style="background-color: #875A7B !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;"> |
||||
|
<i class="fa fa-check mr-1"></i>Enterprise |
||||
|
</div> |
||||
|
<div |
||||
|
style="background-color: #017E84 !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;"> |
||||
|
<i class="fa fa-check mr-1"></i>Odoo.sh |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="container" style="padding: 0rem 1.5rem 4rem !important"> |
||||
|
<div class="row" style="height: 900px !important;"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12" |
||||
|
style="padding: 4rem 1rem !important; background-color: #714B67 !important; height: 600px !important; border-radius: 20px !important;"> |
||||
|
<h1 |
||||
|
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #FFFFFF !important; font-size: 3.5rem !important; text-align: center !important;"> |
||||
|
Advance Signup Page</h1> |
||||
|
<p |
||||
|
style="font-family: 'Montserrat', sans-serif !important; font-weight: 300 !important; color: #FFFFFF !important; font-size: 1.4rem !important; text-align: center !important;"> |
||||
|
Using Odoo Advance Sign Up, The User Can Generate a Creative and Unique Sign-Up Page. |
||||
|
</p> |
||||
|
<img src="./assets/screenshots/hero.gif" class="img-responsive" width="100%" height="auto" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="row"> |
||||
|
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin-bottom: 2rem !important"> |
||||
|
<h2 |
||||
|
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;"> |
||||
|
<i class="fa fa-compass mr-2"></i>Explore this module |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="col-md-6"> |
||||
|
<a href="#overview" style="text-decoration: none !important;"> |
||||
|
<div class="row" |
||||
|
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;"> |
||||
|
<div class="col-8"> |
||||
|
<h3 |
||||
|
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;"> |
||||
|
Overview</h3> |
||||
|
<p |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;"> |
||||
|
Learn more about this module</p> |
||||
|
</div> |
||||
|
<div class="col-4 text-right d-flex justify-content-end align-items-center"> |
||||
|
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i> |
||||
|
</div> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-md-6"> |
||||
|
<a href="#features" style="text-decoration: none !important;"> |
||||
|
<div class="row" |
||||
|
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;"> |
||||
|
<div class="col-8"> |
||||
|
<h3 |
||||
|
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;"> |
||||
|
Features</h3> |
||||
|
<p |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;"> |
||||
|
View features of this module</p> |
||||
|
</div> |
||||
|
<div class="col-4 text-right d-flex justify-content-end align-items-center"> |
||||
|
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i> |
||||
|
</div> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-md-6"> |
||||
|
<a href="#screenshots" style="text-decoration: none !important;"> |
||||
|
<div class="row" |
||||
|
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;"> |
||||
|
<div class="col-8"> |
||||
|
<h3 |
||||
|
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;"> |
||||
|
Screenshots</h3> |
||||
|
<p |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;"> |
||||
|
See key screenshots of this module</p> |
||||
|
</div> |
||||
|
<div class="col-4 text-right d-flex justify-content-end align-items-center"> |
||||
|
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i> |
||||
|
</div> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="row" id="overview"> |
||||
|
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important"> |
||||
|
<h2 |
||||
|
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;"> |
||||
|
<i class="fa fa-pie-chart mr-2"></i>Overview |
||||
|
</h2> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-mg-12 pl-3"> |
||||
|
<p |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important; line-height: 30px !important;"> |
||||
|
The user can design a more creative and distinctive sign-up page for their Odoo website by using Advance Signup. |
||||
|
</p> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="row" id="features"> |
||||
|
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important"> |
||||
|
<h2 |
||||
|
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;"> |
||||
|
<i class="fa fa-star mr-2"></i>Features |
||||
|
</h2> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-md-6 pl-3 py-3 d-flex"> |
||||
|
<div> |
||||
|
<img src="assets/icons/check.png"> |
||||
|
</div> |
||||
|
<div> |
||||
|
<h4 |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
||||
|
Advance Signup Facilitates the User to Design the Sign-Up Page for His/Her Odoo Website.</h4> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 pl-3 py-3 d-flex"> |
||||
|
<div> |
||||
|
<img src="assets/icons/check.png"> |
||||
|
</div> |
||||
|
<div> |
||||
|
<h4 |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
||||
|
Custom Background Image for the Signup/Login/Reset Password Website Page</h4> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-md-6 pl-3 py-3 d-flex"> |
||||
|
<div> |
||||
|
<img src="assets/icons/check.png"> |
||||
|
</div> |
||||
|
<div> |
||||
|
<h4 |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
||||
|
Available in Community , Enterprise and Odoo.sh</h4> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<div class="row" id="screenshots"> |
||||
|
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important"> |
||||
|
<h2 |
||||
|
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;"> |
||||
|
<i class="fa fa-image mr-2"></i>Screenshots |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="col-lg-12 my-2"> |
||||
|
<h4 class="mt-2" |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
||||
|
From Website Configuration -> Choose Signup Configuration</h4> |
||||
|
|
||||
|
<img src="assets/screenshots/advance_signup_1.png" class="img-responsive img-thumbnail border" |
||||
|
width="100%" height="auto" /> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-12 my-3"> |
||||
|
<h4 class="mt-3" |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
||||
|
Admin can Add any Dynamic Field in the Signup Page</h4> |
||||
|
|
||||
|
<img src="assets/screenshots/advance_signup_2.png" class="img-responsive img-thumbnail border" |
||||
|
width="100%" height="auto" /> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-12 my-3"> |
||||
|
<h4 class="mt-3" |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
||||
|
Also, Admin can Create Dynamic Fields in the Signup Page </h4> |
||||
|
|
||||
|
<img src="assets/screenshots/advance_signup_3.png" class="img-responsive img-thumbnail border" |
||||
|
width="100%" height="auto" /> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-lg-12 my-3"> |
||||
|
<h4 class="mt-3" |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
||||
|
Manage Content Settings of the Signup Page |
||||
|
</h4> |
||||
|
|
||||
|
<img src="assets/screenshots/advance_signup_4.png" class="img-responsive img-thumbnail border" |
||||
|
width="100%" height="auto" /> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-lg-12 my-3"> |
||||
|
<h4 class="mt-3" |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
||||
|
Manage Background Settings of the Signup Page</h4> |
||||
|
|
||||
|
<img src="assets/screenshots/advance_signup_5.png" class="img-responsive img-thumbnail border" |
||||
|
width="100%" height="auto" /> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-lg-12 my-3"> |
||||
|
<h4 class="mt-3" |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
||||
|
Manage Other Settings of the Signup Page </h4> |
||||
|
|
||||
|
<img src="assets/screenshots/advance_signup_6.png" class="img-responsive img-thumbnail border" |
||||
|
width="100%" height="auto" /> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-12 my-3"> |
||||
|
<h4 class="mt-3" |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
||||
|
After Saving the Changes, You Can Go to the Website Frontend and can Notice the Difference. </h4> |
||||
|
|
||||
|
<img src="assets/screenshots/advance_signup_7.png" class="img-responsive img-thumbnail border" |
||||
|
width="100%" height="auto" /> |
||||
|
</div> |
||||
|
<div class="col-lg-12 my-3"> |
||||
|
<h4 class="mt-3" |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
||||
|
Signup Page</h4> |
||||
|
|
||||
|
<img src="assets/screenshots/advance_signup_8.png" class="img-responsive img-thumbnail border" |
||||
|
width="100%" height="auto" /> |
||||
|
</div> |
||||
|
<div class="col-lg-12 my-3"> |
||||
|
<h4 class="mt-3" |
||||
|
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
||||
|
Reset Password Page</h4> |
||||
|
|
||||
|
<img src="assets/screenshots/advance_signup_9.png" class="img-responsive img-thumbnail border" |
||||
|
width="100%" height="auto" /> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<!-- SUGGESTED PRODUCTS --> |
||||
|
<div class="row"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center" |
||||
|
style="text-align: center; padding: 2.5rem 1rem !important;"> |
||||
|
<h2 style="color: #212529 !important;">Suggested Products</h2> |
||||
|
<hr |
||||
|
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" /> |
||||
|
|
||||
|
<div id="demo1" class="row carousel slide" data-ride="carousel"> |
||||
|
<!-- The slideshow --> |
||||
|
<div class="carousel-inner"> |
||||
|
<div class="carousel-item active" style="min-height:0px"> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/15.0/website_repeat_sale/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-top-left-radius:10px; border-top-right-radius:10px" |
||||
|
src="./assets/modules/1.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/15.0/delivery_date_ecommerce/#" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-top-left-radius:10px; border-top-right-radius:10px" |
||||
|
src="./assets/modules/2.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/15.0/product_brand_ecommerce/#" |
||||
|
target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-top-left-radius:10px; border-top-right-radius:10px" |
||||
|
src="./assets/modules/3.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="carousel-item" style="min-height:0px"> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/15.0/website_decimal_quantity/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-top-left-radius:10px; border-top-right-radius:10px" |
||||
|
src="./assets/modules/4.jpg"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/15.0/call_for_price_website/#" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-top-left-radius:10px; border-top-right-radius:10px" |
||||
|
src="./assets/modules/5.jpg"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/15.0/website_cart_clear/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-top-left-radius:10px; border-top-right-radius:10px" |
||||
|
src="./assets/modules/6.jpg"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- Left and right controls --> |
||||
|
<a class="carousel-control-prev" href="#demo1" data-slide="prev" |
||||
|
style="left:-25px;width: 35px;color: #000;"> <span class="carousel-control-prev-icon"><i |
||||
|
class="fa fa-chevron-left" style="font-size:24px"></i></span> </a> <a |
||||
|
class="carousel-control-next" href="#demo1" data-slide="next" |
||||
|
style="right:-25px;width: 35px;color: #000;"> |
||||
|
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right" |
||||
|
style="font-size:24px"></i></span> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF SUGGESTED PRODUCTS --> |
||||
|
|
||||
|
<!-- OUR SERVICES --> |
||||
|
<section class="container" style="margin-top: 6rem !important;"> |
||||
|
<div class="row"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center"> |
||||
|
<h2 style="color: #212529 !important;">Our Services</h2> |
||||
|
<hr |
||||
|
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" /> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/cogs.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Customization</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/wrench.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Implementation</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Support</h6> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/user.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Hire |
||||
|
Odoo |
||||
|
Developer</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Integration</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/update.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Migration</h6> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/consultation.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Consultancy</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/training.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Implementation</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/license.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Licensing Consultancy</h6> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
<!-- END OF OUR SERVICES --> |
||||
|
|
||||
|
<!-- OUR INDUSTRIES --> |
||||
|
<section class="container" style="margin-top: 6rem !important;"> |
||||
|
<div class="row"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center"> |
||||
|
<h2 style="color: #212529 !important;">Our Industries</h2> |
||||
|
<hr |
||||
|
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" /> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/trading-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 |
||||
|
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Trading |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Easily procure |
||||
|
and |
||||
|
sell your products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/pos-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 |
||||
|
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
POS |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Easy |
||||
|
configuration |
||||
|
and convivial experience</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/education-black.png" class="img-responsive mb-3" height="48px" |
||||
|
width="48px"> |
||||
|
<h5 |
||||
|
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Education |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
A platform for |
||||
|
educational management</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/manufacturing-black.png" class="img-responsive mb-3" height="48px" |
||||
|
width="48px"> |
||||
|
<h5 |
||||
|
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Manufacturing |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Plan, track and |
||||
|
schedule your operations</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/ecom-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 |
||||
|
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
E-commerce & Website |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Mobile |
||||
|
friendly, |
||||
|
awe-inspiring product pages</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/service-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 |
||||
|
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Service Management |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Keep track of |
||||
|
services and invoice</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/restaurant-black.png" class="img-responsive mb-3" height="48px" |
||||
|
width="48px"> |
||||
|
<h5 |
||||
|
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Restaurant |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Run your bar or |
||||
|
restaurant methodically</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/hotel-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 |
||||
|
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Hotel Management |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
An |
||||
|
all-inclusive |
||||
|
hotel management application</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
<!-- END OF END OF OUR INDUSTRIES --> |
||||
|
|
||||
|
<!-- FOOTER --> |
||||
|
<!-- Footer Section --> |
||||
|
<section class="container" style="margin: 5rem auto 2rem;"> |
||||
|
<div class="row" style="max-width:1540px;"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center"> |
||||
|
<h2 style="color: #212529 !important;">Need Help?</h2> |
||||
|
<hr |
||||
|
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<!-- Contact Cards --> |
||||
|
<div class="row d-flex justify-content-center align-items-center" |
||||
|
style="max-width:1540px; margin: 0 auto 2rem auto;"> |
||||
|
|
||||
|
<div class="col-lg-12" style="padding: 0rem 3rem 2rem; border-radius: 10px; margin-right: 3rem; "> |
||||
|
|
||||
|
<div class="row mt-4"> |
||||
|
<div class="col-lg-6"> |
||||
|
<a href="mailto:odoo@cybrosys.com" target="_blank" class="btn btn-block mb-2 deep_hover" |
||||
|
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i |
||||
|
class="fa fa-envelope mr-2"></i>odoo@cybrosys.com</a> |
||||
|
</div> |
||||
|
<div class="col-lg-6"> |
||||
|
<a href="https://api.whatsapp.com/send?phone=918606827707" target="_blank" |
||||
|
class="btn btn-block mb-2 deep_hover" |
||||
|
style="text-decoration: none; background-color: #25D366; color: #FFF; border-radius: 4px;"><i |
||||
|
class="fa fa-whatsapp mr-2"></i>WhatsApp</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<!-- End of Contact Cards --> |
||||
|
</section> |
||||
|
<!-- Footer --> |
||||
|
<section class="oe_container" style="padding: 2rem 3rem 1rem;"> |
||||
|
<div class="row" style="max-width:1540px; margin: 0 auto; margin-right: 3rem; "> |
||||
|
<!-- Logo --> |
||||
|
<div class="col-lg-12 d-flex justify-content-center align-items-center" style="margin-top: 3rem;"> |
||||
|
<img src="https://www.cybrosys.com/images/logo.png" width="200px" height="auto" /> |
||||
|
</div> |
||||
|
<!-- End of Logo --> |
||||
|
<div class="col-lg-12"> |
||||
|
<hr |
||||
|
style="margin-top: 3rem;background: linear-gradient(90deg, rgba(2,0,36,0) 0%, rgba(229,229,229,1) 33%, rgba(229,229,229,1) 58%, rgba(0,212,255,0) 100%); height: 2px; border-style: none;"> |
||||
|
<!-- End of Footer Section --> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
<!-- END OF FOOTER --> |
||||
|
|
||||
|
</div> |
@ -0,0 +1,220 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<odoo> |
||||
|
<!-- Frontend Layout Extension --> |
||||
|
<template id="frontend_layout_extension" name="Frontend Layout" |
||||
|
inherit_id="web.frontend_layout"> |
||||
|
<xpath expr="//div[@id='wrapwrap']/main" position="attributes"> |
||||
|
<!-- Add a background image style based on the signup configuration --> |
||||
|
<attribute name="t-attf-style" |
||||
|
add="background-image: url('data:image/*;base64,{{request.env['signup.configuration'].sudo().search([('website_id', '=', request.website.id)],limit=1).background_image}}'); background-size: 100% 100%;"/> |
||||
|
</xpath> |
||||
|
</template> |
||||
|
<!-- Auth Signup/ResetPassword Form Fields --> |
||||
|
<template id="advance_signup_portal_fields" |
||||
|
inherit_id="auth_signup.fields" |
||||
|
name="Auth Signup/ResetPassword form fields"> |
||||
|
<xpath expr="//div[hasclass('field-confirm_password')]" |
||||
|
position="after"> |
||||
|
<t t-foreach="configuration.signup_field_ids" t-as="field"> |
||||
|
<t t-if="field.field_type in ['char', 'text']"> |
||||
|
<div class="mb-3 field-test pt-2"> |
||||
|
<label> |
||||
|
<t t-esc="field.name"/> |
||||
|
</label> |
||||
|
<input type="text" |
||||
|
t-attf-name="{{field.field_id.name}}" |
||||
|
t-attf-id="{{field.field_id.id}}" |
||||
|
t-attf-class="form-control form-control-sm" |
||||
|
required="required"/> |
||||
|
</div> |
||||
|
</t> |
||||
|
<t t-elif="field.field_type == 'boolean'"> |
||||
|
<div class="mb-3 field-test pt-2"> |
||||
|
<input type="checkbox" |
||||
|
class="form-check-input" |
||||
|
id="webBoolField" |
||||
|
t-att-name="field.field_id.id"/> |
||||
|
<span class="ms-2 text-break" t-field='field.field_id.name'/> |
||||
|
</div> |
||||
|
</t> |
||||
|
<t t-elif="field.field_type in ['date', 'datetime']"> |
||||
|
<div class="mb-3 field-test pt-2"> |
||||
|
<label> |
||||
|
<t t-esc="field.name"/> |
||||
|
</label> |
||||
|
<input type="date" |
||||
|
t-att-name="field.field_id.name" |
||||
|
t-attf-class="form-control form-control-sm"/> |
||||
|
</div> |
||||
|
</t> |
||||
|
<t t-elif="field.field_type =='binary'"> |
||||
|
<div class="mb-3 field-test pt-2"> |
||||
|
<label> |
||||
|
<t t-esc="field.name"/> |
||||
|
</label> |
||||
|
<input type="file" id="img_field" |
||||
|
class="field_input" |
||||
|
name="img_field" |
||||
|
accept="image/*"/> |
||||
|
</div> |
||||
|
</t> |
||||
|
<t t-elif="field.field_type in ['integer', 'float']"> |
||||
|
<div class="mb-3 field-test pt-2"> |
||||
|
<label> |
||||
|
<t t-esc="field.name"/> |
||||
|
</label> |
||||
|
<input type="number" |
||||
|
t-attf-class="form-control form-control-sm" |
||||
|
t-att-name="field.field_id.name"/> |
||||
|
</div> |
||||
|
</t> |
||||
|
</t> |
||||
|
<!-- Display terms and conditions from the configuration --> |
||||
|
<t t-if="configuration.is_show_terms_conditions"> |
||||
|
<div class="form-group"> |
||||
|
<input type="checkbox" name="accept_terms">I Agree to the |
||||
|
<t t-out="configuration.terms_and_conditions"/> |
||||
|
</input> |
||||
|
</div> |
||||
|
</t> |
||||
|
</xpath> |
||||
|
</template> |
||||
|
<!-- Template for the Login Form --> |
||||
|
<template id="advance_signup_portal_login" |
||||
|
inherit_id="auth_signup.login" name="Login Form"> |
||||
|
<form class="oe_login_form" position="attributes"> |
||||
|
<attribute name="style" |
||||
|
add="z-index: 99;background: #f0f8ff70;padding: 20px;border-radius: 5px;max-width:350px;"/> |
||||
|
</form> |
||||
|
<div class="form-group field-login" position="before"> |
||||
|
<t t-set="configuration" |
||||
|
t-value="request.env['signup.configuration'].sudo().search([('website_id', '=', request.website.id)],limit=1)"/> |
||||
|
<div class="mb-3"> |
||||
|
<span style="font-size: 19px;font-family: sans serif;"> |
||||
|
<b>ALREADY REGISTERED ?</b> |
||||
|
</span> |
||||
|
</div> |
||||
|
<div class="mb-4"> |
||||
|
<span style="font-size: 15px;font-family: cursive;font-weight: bold;"> |
||||
|
<t t-esc="configuration.login_page_content"/> |
||||
|
</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
<!-- Template for Sign Up Form --> |
||||
|
<template id="auth_signup_signup" name="Sign up login"> |
||||
|
<t t-call="web.login_layout"> |
||||
|
<form class="oe_signup_form" role="form" method="post" |
||||
|
t-if="not message"> |
||||
|
<input type="hidden" name="csrf_token" |
||||
|
t-att-value="request.csrf_token()"/> |
||||
|
<t t-call="auth_signup.fields"> |
||||
|
<t t-set="only_passwords" |
||||
|
t-value="bool(token and not invalid_token)"/> |
||||
|
</t> |
||||
|
<p class="alert alert-danger" t-if="error" role="alert"> |
||||
|
<t t-esc="error"/> |
||||
|
</p> |
||||
|
<input type="hidden" name="redirect" t-att-value="redirect"/> |
||||
|
<input type="hidden" name="token" t-att-value="token"/> |
||||
|
<div class="text-center oe_login_buttons d-grid pt-3"> |
||||
|
<button type="submit" class="btn btn-primary">Sign up |
||||
|
</button> |
||||
|
<a t-attf-href="/web/login?{{ keep_query() }}" |
||||
|
class="btn btn-link btn-sm" role="button">Already |
||||
|
have an account? |
||||
|
</a> |
||||
|
<div class="o_login_auth"/> |
||||
|
</div> |
||||
|
</form> |
||||
|
</t> |
||||
|
</template> |
||||
|
<!-- Template for Sign Up Form --> |
||||
|
<template id="advance_signup_portal_signup" |
||||
|
inherit_id="auth_signup.signup" name="Signup Form"> |
||||
|
<form class="oe_signup_form" position="attributes"> |
||||
|
<attribute name="style" |
||||
|
add="z-index: 99;background: #f0f8ff70;padding: 20px;border-radius: 5px;max-width:350px;"/> |
||||
|
</form> |
||||
|
<xpath expr="//input[@name='csrf_token']" position="before"> |
||||
|
<t t-set="configuration" |
||||
|
t-value="request.env['signup.configuration'].sudo().search([('website_id', '=', request.website.id)],limit=1)"/> |
||||
|
<div class="mb-3"> |
||||
|
<span style="font-size: 19px;font-family: sans serif;"> |
||||
|
<b>CREATE YOUR ACCOUNT</b> |
||||
|
</span> |
||||
|
</div> |
||||
|
<div class="mb-4"> |
||||
|
<span style="font-size: 15px;font-family: cursive;font-weight: bold;"> |
||||
|
<t t-esc="configuration.signup_page_content"/> |
||||
|
</span> |
||||
|
</div> |
||||
|
</xpath> |
||||
|
<xpath expr="//form[@class='oe_signup_form']" position="inside"> |
||||
|
<div class="text-center small mt-4 pt-3 border-top" |
||||
|
t-if="not disable_footer"> |
||||
|
<t t-if="not disable_database_manager"> |
||||
|
<a class="border-end pe-2 me-1" |
||||
|
href="/web/database/manager">Manage Databases |
||||
|
</a> |
||||
|
</t> |
||||
|
<a href="https://www.odoo.com?utm_source=db&utm_medium=auth" |
||||
|
target="_blank">Powered by |
||||
|
<span>Odoo</span> |
||||
|
</a> |
||||
|
</div> |
||||
|
</xpath> |
||||
|
</template> |
||||
|
<!-- Template for Reset Password Form --> |
||||
|
<template id="advance_signup_portal_reset_password" |
||||
|
inherit_id="auth_signup.reset_password" |
||||
|
name="Reset Password Form"> |
||||
|
<xpath expr="//input[@name='csrf_token']" position="before"> |
||||
|
<t t-set="configuration" |
||||
|
t-value="request.env['signup.configuration'].sudo().search([('website_id', '=', request.website.id)],limit=1)"/> |
||||
|
<div class="mb-4"> |
||||
|
<span style="font-size: 15px;font-family: cursive;font-weight: bold;"> |
||||
|
<t t-esc="configuration.reset_password_content"/> |
||||
|
</span> |
||||
|
</div> |
||||
|
</xpath> |
||||
|
<form class="oe_reset_password_form" position="attributes"> |
||||
|
<attribute name="style" |
||||
|
add="z-index: 99;background: #f0f8ff70;padding: 20px;border-radius: 5px;max-width:350px;"/> |
||||
|
</form> |
||||
|
</template> |
||||
|
<!-- Template for the Home Page Layout --> |
||||
|
<template id="advance_signup_portal_layout" name="Home" |
||||
|
inherit_id="website.layout"> |
||||
|
<xpath expr="//header" position="attributes"> |
||||
|
<attribute name="t-if">not hide_header</attribute> |
||||
|
</xpath> |
||||
|
<xpath expr="//footer" position="attributes"> |
||||
|
<attribute name="t-if">not is_hide_footer</attribute> |
||||
|
</xpath> |
||||
|
</template> |
||||
|
<!-- Template for Extending the Web Login Form --> |
||||
|
<template id="web_login_extend" inherit_id="web.login"> |
||||
|
<xpath expr="//form[@class='oe_login_form']" position="inside"> |
||||
|
<div class="text-center small mt-4 pt-3 border-top" |
||||
|
t-if="not disable_footer"> |
||||
|
<t t-if="not disable_database_manager"> |
||||
|
<a class="border-end pe-2 me-1" |
||||
|
href="/web/database/manager">Manage Databases |
||||
|
</a> |
||||
|
</t> |
||||
|
<a href="https://www.odoo.com?utm_source=db&utm_medium=auth" |
||||
|
target="_blank">Powered by |
||||
|
<span>Odoo</span> |
||||
|
</a> |
||||
|
</div> |
||||
|
</xpath> |
||||
|
</template> |
||||
|
<!-- Template for Customizing the Footer --> |
||||
|
<template id="footer_custom" inherit_id="website.layout" name="Default" |
||||
|
active="True"> |
||||
|
<xpath expr="//footer" position="attributes"> |
||||
|
<attribute name="t-if">not request.env['signup.configuration'].sudo().search([('website_id', '=', request.website.id)],limit=1).is_hide_footer</attribute> |
||||
|
</xpath> |
||||
|
</template> |
||||
|
</odoo> |
@ -0,0 +1,86 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<!-- Tree View for Signup Configuration --> |
||||
|
<record id="signup_configuration_view_tree" model="ir.ui.view"> |
||||
|
<field name="name">signup.configuration.view.tree</field> |
||||
|
<field name="model">signup.configuration</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree string="Signup Configuration"> |
||||
|
<field name="name"/> |
||||
|
<field name="website_id"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!-- Form View for Signup Configuration --> |
||||
|
<record id="signup_configuration_view_form" model="ir.ui.view"> |
||||
|
<field name="name">signup.configuration.view.form</field> |
||||
|
<field name="model">signup.configuration</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Signup Configuration"> |
||||
|
<sheet> |
||||
|
<field name="is_active" invisible="1"/> |
||||
|
<div class="oe_title"> |
||||
|
<label for="name"/> |
||||
|
<h1> |
||||
|
<field name="name"/> |
||||
|
</h1> |
||||
|
</div> |
||||
|
<group> |
||||
|
<field name="website_id"/> |
||||
|
<field name="signup_enabled" invisible="1"/> |
||||
|
</group> |
||||
|
<notebook> |
||||
|
<!-- Page for Signup Fields --> |
||||
|
<page string="Signup Fields" name="signup_fields"> |
||||
|
<field name="signup_field_ids"/> |
||||
|
</page> |
||||
|
<!-- Page for Content Settings --> |
||||
|
<page string="Content Settings" |
||||
|
name="content_settings"> |
||||
|
<group> |
||||
|
<field name="signup_page_content"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="login_page_content"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="reset_password_content"/> |
||||
|
</group> |
||||
|
</page> |
||||
|
<!-- Page for Background Settings --> |
||||
|
<page string="Background Settings" |
||||
|
name="background_settings"> |
||||
|
<group> |
||||
|
<field name="background_image" widget="image"/> |
||||
|
</group> |
||||
|
</page> |
||||
|
<!-- Page for Other Settings --> |
||||
|
<page string="Other Settings" name="other_settings"> |
||||
|
<group> |
||||
|
<field name="is_hide_footer"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="is_show_terms_conditions"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="terms_and_conditions" |
||||
|
attrs="{'invisible': [('is_show_terms_conditions','!=',True)]}"/> |
||||
|
</group> |
||||
|
</page> |
||||
|
</notebook> |
||||
|
</sheet> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!-- Action to Open Signup Configuration --> |
||||
|
<record id="signup_configuration_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Signup Configuration</field> |
||||
|
<field name="res_model">signup.configuration</field> |
||||
|
<field name="view_mode">tree,form</field> |
||||
|
</record> |
||||
|
<!-- Menu Item for Signup Configuration --> |
||||
|
<menuitem id="signup_configuration_menu" name="Signup Configuration" |
||||
|
parent="website.menu_website_global_configuration" |
||||
|
action="signup_configuration_action" |
||||
|
groups="website.group_website_designer"/> |
||||
|
</odoo> |
@ -0,0 +1,45 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<!--Record for the Tree View of Signup Fields. This view displays a list of signup |
||||
|
fields with their ID, type, and requirement status.--> |
||||
|
<record id="signup_field_view_tree" model="ir.ui.view"> |
||||
|
<field name="name">signup.field.view.tree</field> |
||||
|
<field name="model">signup.field</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree string="Signup Fields" name="tree_signup_fields"> |
||||
|
<!-- Columns to display in the tree view --> |
||||
|
<field name="field_id"/> |
||||
|
<field name="field_type"/> |
||||
|
<field name="is_required"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Record for the Form View of Signup Fields.This view provides a detailed |
||||
|
form for managing signup field properties. --> |
||||
|
<record id="signup_field_view_form" model="ir.ui.view"> |
||||
|
<field name="name">signup.field.view.form</field> |
||||
|
<field name="model">signup.field</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Signup Fields" name="form_signup_fields"> |
||||
|
<sheet> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="field_id" |
||||
|
options="{'no_create': True, 'no_create_edit':True}"/> |
||||
|
<field name="name"/> |
||||
|
<field name="placeholder"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="field_type"/> |
||||
|
<field name="number_of_cols"/> |
||||
|
<field name="is_required"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="help_description"/> |
||||
|
</group> |
||||
|
</sheet> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |