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

[17.0][MIG] website_require_login: Migration to 17.0 #1038

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added pandoc-3.1.12.3-1-amd64.deb
Binary file not shown.
87 changes: 87 additions & 0 deletions website_require_login/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
======================
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/17.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-17-0/website-17-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=17.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:%2017.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>

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/17.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": "17.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,
}
12 changes: 12 additions & 0 deletions website_require_login/data/ir_actions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?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">tree</field>
<field name="view_id" ref="website_auth_url_tree_view" />
<field name="target">current</field>
</record>

</odoo>
12 changes: 12 additions & 0 deletions website_require_login/data/ir_ui_menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?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>
88 changes: 88 additions & 0 deletions website_require_login/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# 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: 2024-02-19 09:36+0000\n"
"Last-Translator: jappi00 <[email protected]>\n"
"Language-Team: none\n"
"Language: de\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 "Autorisierungspflichtige URLs"

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

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

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

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

#. 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____last_update
msgid "Last Modified on"
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 "Pfad"

#. 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 ""
"Relativer URL-Pfad und Unterpfad. Beispiel: /shop schränkt /shop, /shop/"
"product, etc. ein."

#. 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 "Der Pfad muss pro Website eindeutig sein!"

#. module: website_require_login
#: model:ir.model.fields,field_description:website_require_login.field_website_auth_url__website_id
msgid "Website"
msgstr ""
88 changes: 88 additions & 0 deletions website_require_login/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# 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 <[email protected]>\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____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

#. 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"
Loading
Loading