Skip to content

Commit 59f79d9

Browse files
committed
Merge PR #1003 into 16.0
Signed-off-by pedrobaeza
2 parents 3166246 + d2202f3 commit 59f79d9

18 files changed

Lines changed: 827 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../website_form_require_legal
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
==========================
2+
Website Form Require Legal
3+
==========================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:d42bd92c06b48ff759e04a63fcbed82512d602526159ec8b6e86111c1e6e789e
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
18+
:alt: License: LGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github
20+
:target: https://github.com/OCA/website/tree/16.0/website_form_require_legal
21+
:alt: OCA/website
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/website-16-0/website-16-0-website_form_require_legal
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/website&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module adds the possibility to require confirm legal terms at frontend forms.
32+
33+
**Table of contents**
34+
35+
.. contents::
36+
:local:
37+
38+
Usage
39+
=====
40+
41+
To use this module, you need to:
42+
43+
* Edit any page in your website.
44+
* Add a form from the snippets.
45+
* Modify the parameters.
46+
* You will find the option "Legal terms acceptance".
47+
* If you select it you will be able to modify the text shown and the link to the
48+
page from the text editor.
49+
50+
Note: Remember to change the terms and conditions link to redirect to the desired page.
51+
52+
Known issues / Roadmap
53+
======================
54+
55+
This module is aimed to deprecate website_crm_privacy_policy and modules similar to this
56+
one.
57+
58+
Bug Tracker
59+
===========
60+
61+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/website/issues>`_.
62+
In case of trouble, please check there if your issue has already been reported.
63+
If you spotted it first, help us to smash it by providing a detailed and welcomed
64+
`feedback <https://github.com/OCA/website/issues/new?body=module:%20website_form_require_legal%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
65+
66+
Do not contact contributors directly about support or help with technical issues.
67+
68+
Credits
69+
=======
70+
71+
Authors
72+
~~~~~~~
73+
74+
* Tecnativa
75+
76+
Contributors
77+
~~~~~~~~~~~~
78+
79+
* `Tecnativa <https://www.tecnativa.com>`__:
80+
81+
* Carlos Roca
82+
83+
Maintainers
84+
~~~~~~~~~~~
85+
86+
This module is maintained by the OCA.
87+
88+
.. image:: https://odoo-community.org/logo.png
89+
:alt: Odoo Community Association
90+
:target: https://odoo-community.org
91+
92+
OCA, or the Odoo Community Association, is a nonprofit organization whose
93+
mission is to support the collaborative development of Odoo features and
94+
promote its widespread use.
95+
96+
This module is part of the `OCA/website <https://github.com/OCA/website/tree/16.0/website_form_require_legal>`_ project on GitHub.
97+
98+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

website_form_require_legal/__init__.py

Whitespace-only changes.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright 2023 Tecnativa - Carlos Roca
2+
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
3+
{
4+
"name": "Website Form Require Legal",
5+
"summary": "Add possibility to require confirm legal terms.",
6+
"version": "16.0.1.0.0",
7+
"category": "Website",
8+
"license": "LGPL-3",
9+
"website": "https://github.com/OCA/website",
10+
"author": "Tecnativa, Odoo Community Association (OCA)",
11+
"application": False,
12+
"installable": True,
13+
"depends": ["web_editor", "website"],
14+
"data": ["views/snippets.xml"],
15+
"assets": {
16+
"website.assets_wysiwyg": [
17+
"website_form_require_legal/static/src/js/options.js",
18+
"website_form_require_legal/static/src/xml/website_form_editor.xml",
19+
],
20+
"web.assets_frontend": [
21+
"website_form_require_legal/static/src/scss/website_form_legal.scss"
22+
],
23+
},
24+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * website_form_require_legal
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 15.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2023-06-20 11:08+0000\n"
10+
"Last-Translator: Nils Coenen <nils.coenen@nico-solutions.de>\n"
11+
"Language-Team: none\n"
12+
"Language: de\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.17\n"
18+
19+
#. module: website_form_require_legal
20+
#. openerp-web
21+
#: code:addons/website_form_require_legal/static/src/xml/website_form_editor.xml:0
22+
#, python-format
23+
msgid "Agree to"
24+
msgstr "Stimme zu"
25+
26+
#. module: website_form_require_legal
27+
#: model_terms:ir.ui.view,arch_db:website_form_require_legal.s_website_form_options
28+
msgid "Legal terms acceptance"
29+
msgstr "Akzeptierung der rechtlichen Bedingungen"
30+
31+
#. module: website_form_require_legal
32+
#. openerp-web
33+
#: code:addons/website_form_require_legal/static/src/xml/website_form_editor.xml:0
34+
#, python-format
35+
msgid "You must agree before submitting."
36+
msgstr "Sie müssen vor dem Absenden zustimmen."
37+
38+
#. module: website_form_require_legal
39+
#. openerp-web
40+
#: code:addons/website_form_require_legal/static/src/xml/website_form_editor.xml:0
41+
#, python-format
42+
msgid "terms and conditions"
43+
msgstr "Geschäftsbedingungen"
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * website_form_require_legal
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 15.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2023-03-09 15:06+0000\n"
10+
"PO-Revision-Date: 2023-03-09 16:09+0100\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"Language: es\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18+
"X-Generator: Poedit 3.2.2\n"
19+
20+
#. module: website_form_require_legal
21+
#. openerp-web
22+
#: code:addons/website_form_require_legal/static/src/xml/website_form_editor.xml:0
23+
#, python-format
24+
msgid "Agree to"
25+
msgstr "Aceptar los"
26+
27+
#. module: website_form_require_legal
28+
#: model_terms:ir.ui.view,arch_db:website_form_require_legal.s_website_form_options
29+
msgid "Legal terms acceptance"
30+
msgstr "Aceptación de los términos legales"
31+
32+
#. module: website_form_require_legal
33+
#. openerp-web
34+
#: code:addons/website_form_require_legal/static/src/xml/website_form_editor.xml:0
35+
#, python-format
36+
msgid "You must agree before submitting."
37+
msgstr "Debe estar de acuerdo antes de enviarlo."
38+
39+
#. module: website_form_require_legal
40+
#. openerp-web
41+
#: code:addons/website_form_require_legal/static/src/xml/website_form_editor.xml:0
42+
#, python-format
43+
msgid "terms and conditions"
44+
msgstr "términos y condiciones"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * website_form_require_legal
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 15.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: website_form_require_legal
17+
#. openerp-web
18+
#: code:addons/website_form_require_legal/static/src/xml/website_form_editor.xml:0
19+
#, python-format
20+
msgid "Agree to"
21+
msgstr ""
22+
23+
#. module: website_form_require_legal
24+
#: model_terms:ir.ui.view,arch_db:website_form_require_legal.s_website_form_options
25+
msgid "Legal terms acceptance"
26+
msgstr ""
27+
28+
#. module: website_form_require_legal
29+
#. openerp-web
30+
#: code:addons/website_form_require_legal/static/src/xml/website_form_editor.xml:0
31+
#, python-format
32+
msgid "You must agree before submitting."
33+
msgstr ""
34+
35+
#. module: website_form_require_legal
36+
#. openerp-web
37+
#: code:addons/website_form_require_legal/static/src/xml/website_form_editor.xml:0
38+
#, python-format
39+
msgid "terms and conditions"
40+
msgstr ""
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* `Tecnativa <https://www.tecnativa.com>`__:
2+
3+
* Carlos Roca
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This module adds the possibility to require confirm legal terms at frontend forms.

0 commit comments

Comments
 (0)