Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] website_require_login: Migration to 18.0 #1077

Open
wants to merge 11 commits into
base: 18.0
Choose a base branch
from
88 changes: 88 additions & 0 deletions website_require_login/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
======================
Website Login Required
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a0f16f0655f6b5b9eec2c2e621f35dbcc40c69a3c5353dec8b07ddfab1874313
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github
:target: https://github.com/OCA/website/tree/18.0/website_require_login
:alt: OCA/website
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/website-18-0/website-18-0-website_require_login
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/website&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to restrict access to specific website pages to
logged users.

**Table of contents**

.. contents::
:local:

Usage
=====

Website > Configuration > Authorization required URLs: select a website
and enter a relative path, eg: /shop

When public user will try to access mywebsite.com/shop or any of its
child pages, they will be requested to login.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/website/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 <https://github.com/OCA/website/issues/new?body=module:%20website_require_login%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Advitus MB
* Ooops

Contributors
------------

- Ooops404 <https://ooops404.com>
- Nils Coenen <nils.coenen@nico-solutions.de>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/website <https://github.com/OCA/website/tree/18.0/website_require_login>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions website_require_login/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2020 Advitus MB
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).

from . import models
21 changes: 21 additions & 0 deletions website_require_login/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2020 Advitus MB
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).

{
"name": "Website Login Required",
"category": "Website",
"version": "18.0.1.0.0",
"author": "Advitus MB, Ooops, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/website",
"license": "LGPL-3",
"depends": [
"website",
],
"data": [
"security/ir.model.access.csv",
"views/website_auth_url.xml",
"data/ir_actions.xml",
"data/ir_ui_menu.xml",
],
"installable": True,
}
10 changes: 10 additions & 0 deletions website_require_login/data/ir_actions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="action_website_auth_url" model="ir.actions.act_window">
<field name="name">Authorization required URLs</field>
<field name="res_model">website.auth.url</field>
<field name="view_mode">list</field>
<field name="view_id" ref="website_auth_url_list_view" />
<field name="target">current</field>
</record>
</odoo>
10 changes: 10 additions & 0 deletions website_require_login/data/ir_ui_menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<menuitem
name="Authorization required URLs"
id="menu_website_auth_url"
action="action_website_auth_url"
parent="website.menu_website_global_configuration"
sequence="60"
/>
</odoo>
86 changes: 86 additions & 0 deletions website_require_login/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_require_login
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-09-20 17:50+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: website_require_login
#: model:ir.actions.act_window,name:website_require_login.action_website_auth_url
#: model:ir.model,name:website_require_login.model_website_auth_url
#: model:ir.ui.menu,name:website_require_login.menu_website_auth_url
msgid "Authorization required URLs"
msgstr "URLs que requieren autorización"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__create_date
msgid "Created on"
msgstr "Creado el"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

#. module: website_require_login
#: model:ir.model,name:website_require_login.model_ir_http
msgid "HTTP Routing"
msgstr "Enrutamiento HTTP"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__id
msgid "ID"
msgstr "ID (identificación)"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__write_uid
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__write_date
msgid "Last Updated on"
msgstr "Última Actualización el"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__path
msgid "Path"
msgstr "Ruta"

#. module: website_require_login
#: model:ir.model.fields,help:website_require_login.field_website_auth_url__path
msgid ""
"Relative URL path and subpath. Ex.: /shop will restrict /shop, /shop/"
"product, etc."
msgstr ""
"Ruta URL relativa y sub-ruta. Por ejemplo: /tienda restringirá /tienda, /"
"tienda/producto, etc."

#. module: website_require_login
#: model:ir.model.constraint,message:website_require_login.constraint_website_auth_url_path_unique
msgid "The path must be unique per website!"
msgstr "¡La ruta debe ser única para cada sitio web!"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__website_id
msgid "Website"
msgstr "Página Web"

#~ msgid "Last Modified on"
#~ msgstr "Última Modificación el"
86 changes: 86 additions & 0 deletions website_require_login/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_require_login
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-03-07 19:22+0000\n"
"Last-Translator: Francesco Foresti <francesco.foresti@ooops404.com>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.14.1\n"

#. module: website_require_login
#: model:ir.actions.act_window,name:website_require_login.action_website_auth_url
#: model:ir.model,name:website_require_login.model_website_auth_url
#: model:ir.ui.menu,name:website_require_login.menu_website_auth_url
msgid "Authorization required URLs"
msgstr "URL che richiedono il login"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__create_uid
msgid "Created by"
msgstr "Creato da"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__create_date
msgid "Created on"
msgstr "Creato il"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: website_require_login
#: model:ir.model,name:website_require_login.model_ir_http
msgid "HTTP Routing"
msgstr "Instradamento HTTP"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__id
msgid "ID"
msgstr "ID"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__write_uid
msgid "Last Updated by"
msgstr "Ultimo aggiornamento di"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__write_date
msgid "Last Updated on"
msgstr "Ultimo aggiornamento il"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__path
msgid "Path"
msgstr "Percorso"

#. module: website_require_login
#: model:ir.model.fields,help:website_require_login.field_website_auth_url__path
msgid ""
"Relative URL path and subpath. Ex.: /shop will restrict /shop, /shop/"
"product, etc."
msgstr ""
"Percorso e sotto-percorso relativo all'URL, es: /shop limiterà l'accesso sia "
"a /shop che a /shop/product, etc."

#. module: website_require_login
#: model:ir.model.constraint,message:website_require_login.constraint_website_auth_url_path_unique
msgid "The path must be unique per website!"
msgstr "Il percorso deve essere univoco per sito web!"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__website_id
msgid "Website"
msgstr "Sito web"

#~ msgid "Last Modified on"
#~ msgstr "Ultima modifica il"
78 changes: 78 additions & 0 deletions website_require_login/i18n/website_require_login.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_require_login
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: website_require_login
#: model:ir.actions.act_window,name:website_require_login.action_website_auth_url
#: model:ir.model,name:website_require_login.model_website_auth_url
#: model:ir.ui.menu,name:website_require_login.menu_website_auth_url
msgid "Authorization required URLs"
msgstr ""

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__create_uid
msgid "Created by"
msgstr ""

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__create_date
msgid "Created on"
msgstr ""

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__display_name
msgid "Display Name"
msgstr ""

#. module: website_require_login
#: model:ir.model,name:website_require_login.model_ir_http
msgid "HTTP Routing"
msgstr ""

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__id
msgid "ID"
msgstr ""

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__write_uid
msgid "Last Updated by"
msgstr ""

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__write_date
msgid "Last Updated on"
msgstr ""

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__path
msgid "Path"
msgstr ""

#. module: website_require_login
#: model:ir.model.fields,help:website_require_login.field_website_auth_url__path
msgid ""
"Relative URL path and subpath. Ex.: /shop will restrict /shop, "
"/shop/product, etc."
msgstr ""

#. module: website_require_login
#: model:ir.model.constraint,message:website_require_login.constraint_website_auth_url_path_unique
msgid "The path must be unique per website!"
msgstr ""

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__website_id
msgid "Website"
msgstr ""
5 changes: 5 additions & 0 deletions website_require_login/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2020 Advitus MB
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).

from . import ir_http
from . import website_auth_url
Loading
Loading