Skip to content

Commit 44df5a9

Browse files
committed
[IMP] website_sale_require_login: pre-commit auto fixes
1 parent cea6356 commit 44df5a9

File tree

10 files changed

+66
-63
lines changed

10 files changed

+66
-63
lines changed

website_sale_require_login/README.rst

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ Require login to checkout
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github
20-
:target: https://github.com/OCA/e-commerce/tree/14.0/website_sale_require_login
20+
:target: https://github.com/OCA/e-commerce/tree/17.0/website_sale_require_login
2121
:alt: OCA/e-commerce
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/e-commerce-14-0/e-commerce-14-0-website_sale_require_login
23+
:target: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_require_login
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&target_branch=14.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&target_branch=17.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

31-
This module extends the functionality of eCommerce to force users
32-
to login before buying anything in the website and allow you to get rid of
31+
This module extends the functionality of eCommerce to force users to
32+
login before buying anything in the website and allow you to get rid of
3333
those duplicated entries of returning unauthenticated users.
3434

35-
If you do not allow external users to sign up, this can serve you to make
36-
checkout available only for those that have a user account, and make some sort
37-
of *members club*.
35+
If you do not allow external users to sign up, this can serve you to
36+
make checkout available only for those that have a user account, and
37+
make some sort of *members club*.
3838

3939
**Table of contents**
4040

@@ -46,53 +46,52 @@ Configuration
4646

4747
You probably want to enable any user to sign up:
4848

49-
* Go to *Settings > General Settings > Website > Customer Account*.
50-
* Enable *Free sign up*.
49+
- Go to *Settings > General Settings > Website > Customer Account*.
50+
- Enable *Free sign up*.
5151

5252
Usage
5353
=====
5454

5555
To use this module, you need to:
5656

57-
* Log out.
58-
* Try to buy something.
59-
* You will be forced to log in.
57+
- Log out.
58+
- Try to buy something.
59+
- You will be forced to log in.
6060

6161
Bug Tracker
6262
===========
6363

6464
Bugs are tracked on `GitHub Issues <https://github.com/OCA/e-commerce/issues>`_.
6565
In case of trouble, please check there if your issue has already been reported.
6666
If you spotted it first, help us to smash it by providing a detailed and welcomed
67-
`feedback <https://github.com/OCA/e-commerce/issues/new?body=module:%20website_sale_require_login%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
67+
`feedback <https://github.com/OCA/e-commerce/issues/new?body=module:%20website_sale_require_login%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6868

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

7171
Credits
7272
=======
7373

7474
Authors
75-
~~~~~~~
75+
-------
7676

7777
* Tecnativa
7878
* LasLabs
7979

8080
Contributors
81-
~~~~~~~~~~~~
81+
------------
8282

83-
* Dave Lasley <[email protected]>
84-
* Oscar Alcala <[email protected]>
85-
* Lorenzo Battistini <[email protected]>
86-
* Foram Shah <[email protected]>
83+
- Dave Lasley <[email protected]>
84+
- Oscar Alcala <[email protected]>
85+
- Lorenzo Battistini <[email protected]>
86+
- Foram Shah <[email protected]>
87+
- `Tecnativa <https://www.tecnativa.com>`__:
8788

88-
* `Tecnativa <https://www.tecnativa.com>`_:
89-
90-
* Rafael Blasco
91-
* Jairo Llopis
92-
* Alexandre Diaz
89+
- Rafael Blasco
90+
- Jairo Llopis
91+
- Alexandre Diaz
9392

9493
Maintainers
95-
~~~~~~~~~~~
94+
-----------
9695

9796
This module is maintained by the OCA.
9897

@@ -104,6 +103,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
104103
mission is to support the collaborative development of Odoo features and
105104
promote its widespread use.
106105

107-
This module is part of the `OCA/e-commerce <https://github.com/OCA/e-commerce/tree/14.0/website_sale_require_login>`_ project on GitHub.
106+
This module is part of the `OCA/e-commerce <https://github.com/OCA/e-commerce/tree/17.0/website_sale_require_login>`_ project on GitHub.
108107

109108
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
You probably want to enable any user to sign up:
2+
3+
- Go to *Settings \> General Settings \> Website \> Customer Account*.
4+
- Enable *Free sign up*.

website_sale_require_login/readme/CONFIGURE.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- Dave Lasley \<<[email protected]>\>
2+
- Oscar Alcala \<<[email protected]>\>
3+
- Lorenzo Battistini \<<[email protected]>\>
4+
- Foram Shah \<<[email protected]>\>
5+
- [Tecnativa](https://www.tecnativa.com):
6+
- Rafael Blasco
7+
- Jairo Llopis
8+
- Alexandre Diaz

website_sale_require_login/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
This module extends the functionality of eCommerce to force users
2-
to login before buying anything in the website and allow you to get rid of
1+
This module extends the functionality of eCommerce to force users to
2+
login before buying anything in the website and allow you to get rid of
33
those duplicated entries of returning unauthenticated users.
44

5-
If you do not allow external users to sign up, this can serve you to make
6-
checkout available only for those that have a user account, and make some sort
7-
of *members club*.
5+
If you do not allow external users to sign up, this can serve you to
6+
make checkout available only for those that have a user account, and
7+
make some sort of *members club*.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
To use this module, you need to:
2+
3+
- Log out.
4+
- Try to buy something.
5+
- You will be forced to log in.

website_sale_require_login/readme/USAGE.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

website_sale_require_login/static/description/index.html

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88

99
/*
1010
:Author: David Goodger ([email protected])
11-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1212
:Copyright: This stylesheet has been placed in the public domain.
1313
1414
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1516
1617
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1718
customize this style sheet.
@@ -274,7 +275,7 @@
274275
margin-left: 2em ;
275276
margin-right: 2em }
276277

277-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
278279
pre.code, code { background-color: #eeeeee }
279280
pre.code .comment, code .comment { color: #5C6576 }
280281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@
300301
span.pre {
301302
white-space: pre }
302303

303-
span.problematic {
304+
span.problematic, pre.problematic {
304305
color: red }
305306

306307
span.section-subtitle {
@@ -368,13 +369,13 @@ <h1 class="title">Require login to checkout</h1>
368369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369370
!! source digest: sha256:f4aa5874b86951a397f97b64909f0f3ba4ccac0e7fafc10caeb6f9c70ffcfb90
370371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/e-commerce/tree/14.0/website_sale_require_login"><img alt="OCA/e-commerce" src="https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/e-commerce-14-0/e-commerce-14-0-website_sale_require_login"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372-
<p>This module extends the functionality of eCommerce to force users
373-
to login before buying anything in the website and allow you to get rid of
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/e-commerce/tree/17.0/website_sale_require_login"><img alt="OCA/e-commerce" src="https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_require_login"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373+
<p>This module extends the functionality of eCommerce to force users to
374+
login before buying anything in the website and allow you to get rid of
374375
those duplicated entries of returning unauthenticated users.</p>
375-
<p>If you do not allow external users to sign up, this can serve you to make
376-
checkout available only for those that have a user account, and make some sort
377-
of <em>members club</em>.</p>
376+
<p>If you do not allow external users to sign up, this can serve you to
377+
make checkout available only for those that have a user account, and
378+
make some sort of <em>members club</em>.</p>
378379
<p><strong>Table of contents</strong></p>
379380
<div class="contents local topic" id="contents">
380381
<ul class="simple">
@@ -411,7 +412,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
411412
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/e-commerce/issues">GitHub Issues</a>.
412413
In case of trouble, please check there if your issue has already been reported.
413414
If you spotted it first, help us to smash it by providing a detailed and welcomed
414-
<a class="reference external" href="https://github.com/OCA/e-commerce/issues/new?body=module:%20website_sale_require_login%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
415+
<a class="reference external" href="https://github.com/OCA/e-commerce/issues/new?body=module:%20website_sale_require_login%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
415416
<p>Do not contact contributors directly about support or help with technical issues.</p>
416417
</div>
417418
<div class="section" id="credits">
@@ -441,11 +442,13 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
441442
<div class="section" id="maintainers">
442443
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
443444
<p>This module is maintained by the OCA.</p>
444-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
445+
<a class="reference external image-reference" href="https://odoo-community.org">
446+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
447+
</a>
445448
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
446449
mission is to support the collaborative development of Odoo features and
447450
promote its widespread use.</p>
448-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/e-commerce/tree/14.0/website_sale_require_login">OCA/e-commerce</a> project on GitHub.</p>
451+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/e-commerce/tree/17.0/website_sale_require_login">OCA/e-commerce</a> project on GitHub.</p>
449452
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
450453
</div>
451454
</div>

0 commit comments

Comments
 (0)