diff --git a/website_erp_login/README.rst b/website_erp_login/README.rst new file mode 100644 index 000000000..8c930cce1 --- /dev/null +++ b/website_erp_login/README.rst @@ -0,0 +1,56 @@ +================= +Website ERP login +================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:f3e1c0171ad2304bacd30413e476833219b7730b35735795c4dc9dca839f28d4 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-NuoBiT%2Fodoo--addons-lightgray.png?logo=github + :target: https://github.com/NuoBiT/odoo-addons/tree/18.0/website_erp_login + :alt: NuoBiT/odoo-addons + +|badge1| |badge2| |badge3| + +- Put the default ERP login back disabling the new login page added by + website module. + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* NuoBiT Solutions SL + +Maintainers +----------- + +This module is part of the `NuoBiT/odoo-addons `_ project on GitHub. + +You are welcome to contribute. diff --git a/website_erp_login/__init__.py b/website_erp_login/__init__.py new file mode 100644 index 000000000..e046e49fb --- /dev/null +++ b/website_erp_login/__init__.py @@ -0,0 +1 @@ +from . import controllers diff --git a/website_erp_login/__manifest__.py b/website_erp_login/__manifest__.py new file mode 100644 index 000000000..3a9abd550 --- /dev/null +++ b/website_erp_login/__manifest__.py @@ -0,0 +1,22 @@ +# Copyright NuoBiT - Eric Antones +# Copyright 2025 NuoBiT Solutions - Bijaya Kumal +# Copyright 2025 NuoBiT Solutions - Deniz Gallo +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +{ + "name": "Website ERP login", + "summary": "Put the default ERP login back disabling the new login page added " + "by website module.", + "version": "18.0.1.0.0", + "category": "Website", + "author": "NuoBiT Solutions SL", + "website": "https://github.com/NuoBiT/odoo-addons", + "license": "AGPL-3", + "depends": [ + "website", + ], + "data": [ + "views/website_erp_login_templates.xml", + "views/website_templates.xml", + ], +} diff --git a/website_erp_login/controllers/__init__.py b/website_erp_login/controllers/__init__.py new file mode 100644 index 000000000..12a7e529b --- /dev/null +++ b/website_erp_login/controllers/__init__.py @@ -0,0 +1 @@ +from . import main diff --git a/website_erp_login/controllers/main.py b/website_erp_login/controllers/main.py new file mode 100644 index 000000000..2a7ed2b28 --- /dev/null +++ b/website_erp_login/controllers/main.py @@ -0,0 +1,15 @@ +# Copyright NuoBiT - Eric Antones +# Copyright NuoBiT 2025 - Bijaya Kumal +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + + +from odoo import http +from odoo.http import request + +from odoo.addons.website.controllers.main import Website + + +class WebsiteERPLogin(Website): + @http.route("/", type="http", auth="none") + def index(self, s_action=None, db=None, **kw): + return request.redirect_query("/web", query=request.params) diff --git a/website_erp_login/pyproject.toml b/website_erp_login/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/website_erp_login/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/website_erp_login/readme/CONTRIBUTOS.md b/website_erp_login/readme/CONTRIBUTOS.md new file mode 100644 index 000000000..325bee193 --- /dev/null +++ b/website_erp_login/readme/CONTRIBUTOS.md @@ -0,0 +1,4 @@ +- [NuoBiT](https://www.nuobit.com): + - Eric Antones + - Bijaya Kumal + - Deniz Gallo diff --git a/website_erp_login/readme/DESCRIPTION.md b/website_erp_login/readme/DESCRIPTION.md new file mode 100644 index 000000000..c321c78f0 --- /dev/null +++ b/website_erp_login/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +* Put the default ERP login back disabling the new login page added + by website module. diff --git a/website_erp_login/static/description/icon.png b/website_erp_login/static/description/icon.png new file mode 100644 index 000000000..1cd641e79 Binary files /dev/null and b/website_erp_login/static/description/icon.png differ diff --git a/website_erp_login/static/description/index.html b/website_erp_login/static/description/index.html new file mode 100644 index 000000000..66283662e --- /dev/null +++ b/website_erp_login/static/description/index.html @@ -0,0 +1,412 @@ + + + + + +Website ERP login + + + +
+

Website ERP login

+ + +

Beta License: AGPL-3 NuoBiT/odoo-addons

+
    +
  • Put the default ERP login back disabling the new login page added by +website module.
  • +
+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • NuoBiT Solutions SL
  • +
+
+
+

Maintainers

+

This module is part of the NuoBiT/odoo-addons project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/website_erp_login/views/website_erp_login_templates.xml b/website_erp_login/views/website_erp_login_templates.xml new file mode 100644 index 000000000..7567d9777 --- /dev/null +++ b/website_erp_login/views/website_erp_login_templates.xml @@ -0,0 +1,34 @@ + + + + + + + diff --git a/website_erp_login/views/website_templates.xml b/website_erp_login/views/website_templates.xml new file mode 100644 index 000000000..b84188cbf --- /dev/null +++ b/website_erp_login/views/website_templates.xml @@ -0,0 +1,17 @@ + + + + +