Skip to content

Commit b8482c9

Browse files
[IMP] attachment_delete_restrict: pre-commit auto fixes
1 parent 29a69ce commit b8482c9

File tree

2 files changed

+38
-25
lines changed

2 files changed

+38
-25
lines changed

attachment_delete_restrict/README.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
15
================================
26
Restrict Deletion of Attachments
37
================================
@@ -13,17 +17,17 @@ Restrict Deletion of Attachments
1317
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1418
:target: https://odoo-community.org/page/development-status
1519
:alt: Beta
16-
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
1721
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1822
:alt: License: AGPL-3
1923
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
20-
:target: https://github.com/OCA/server-tools/tree/18.0/attachment_delete_restrict
24+
:target: https://github.com/OCA/server-tools/tree/19.0/attachment_delete_restrict
2125
:alt: OCA/server-tools
2226
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-attachment_delete_restrict
27+
:target: https://translation.odoo-community.org/projects/server-tools-19-0/server-tools-19-0-attachment_delete_restrict
2428
:alt: Translate me on Weblate
2529
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=19.0
2731
:alt: Try me on Runboat
2832

2933
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -77,7 +81,7 @@ Bug Tracker
7781
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
7882
In case of trouble, please check there if your issue has already been reported.
7983
If you spotted it first, help us to smash it by providing a detailed and welcomed
80-
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20attachment_delete_restrict%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
84+
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20attachment_delete_restrict%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
8185

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

@@ -121,6 +125,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
121125

122126
|maintainer-yostashiro| |maintainer-Kev-Roche|
123127

124-
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/18.0/attachment_delete_restrict>`_ project on GitHub.
128+
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/19.0/attachment_delete_restrict>`_ project on GitHub.
125129

126130
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

attachment_delete_restrict/static/description/index.html

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>Restrict Deletion of Attachments</title>
6+
<title>README.rst</title>
77
<style type="text/css">
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 {
@@ -359,16 +360,21 @@
359360
</style>
360361
</head>
361362
<body>
362-
<div class="document" id="restrict-deletion-of-attachments">
363-
<h1 class="title">Restrict Deletion of Attachments</h1>
363+
<div class="document">
364364

365+
366+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367+
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368+
</a>
369+
<div class="section" id="restrict-deletion-of-attachments">
370+
<h1>Restrict Deletion of Attachments</h1>
365371
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
366372
!! This file is generated by oca-gen-addon-readme !!
367373
!! changes will be overwritten. !!
368374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369375
!! source digest: sha256:f29bf33d2719e11ecbc0e7a7341f424b412b08c775dd2d391818da5f939ff65d
370376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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/server-tools/tree/18.0/attachment_delete_restrict"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-attachment_delete_restrict"><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/server-tools&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/19.0/attachment_delete_restrict"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-19-0/server-tools-19-0-attachment_delete_restrict"><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/server-tools&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372378
<p>This module provides the ability to restrict the deletion of the
373379
attachments at different levels.</p>
374380
<p><strong>Table of contents</strong></p>
@@ -390,17 +396,17 @@ <h1 class="title">Restrict Deletion of Attachments</h1>
390396
</ul>
391397
</div>
392398
<div class="section" id="configuration">
393-
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
399+
<h2><a class="toc-backref" href="#toc-entry-1">Configuration</a></h2>
394400
<div class="section" id="select-level">
395-
<h2><a class="toc-backref" href="#toc-entry-2">Select level:</a></h2>
401+
<h3><a class="toc-backref" href="#toc-entry-2">Select level:</a></h3>
396402
<ol class="arabic simple">
397403
<li>Go to <em>Settings &gt; General Settings&gt; Permission section</em>.</li>
398404
<li>Choose the level of <em>Restrict Delete Attachment</em> for all models by
399405
default or for models with “default” restriction level.</li>
400406
</ol>
401407
</div>
402408
<div class="section" id="five-levels">
403-
<h2><a class="toc-backref" href="#toc-entry-3">Five levels:</a></h2>
409+
<h3><a class="toc-backref" href="#toc-entry-3">Five levels:</a></h3>
404410
<ul class="simple">
405411
<li>Default : Use global configuration</li>
406412
<li>Owner : Owner and admins only</li>
@@ -412,7 +418,7 @@ <h2><a class="toc-backref" href="#toc-entry-3">Five levels:</a></h2>
412418
<p>Only Custom and Owner + Custom need specific configuration on models.</p>
413419
</div>
414420
<div class="section" id="for-custom-and-owner-custom-levels">
415-
<h2><a class="toc-backref" href="#toc-entry-4">For Custom and Owner + Custom levels:</a></h2>
421+
<h3><a class="toc-backref" href="#toc-entry-4">For Custom and Owner + Custom levels:</a></h3>
416422
<ol class="arabic simple">
417423
<li>Go to <em>Settings &gt; Technical &gt; Database Structure &gt; Models</em>.</li>
418424
<li>Open a model for which attachment deletion should be restricted.</li>
@@ -426,43 +432,46 @@ <h2><a class="toc-backref" href="#toc-entry-4">For Custom and Owner + Custom lev
426432
</div>
427433
</div>
428434
<div class="section" id="bug-tracker">
429-
<h1><a class="toc-backref" href="#toc-entry-5">Bug Tracker</a></h1>
435+
<h2><a class="toc-backref" href="#toc-entry-5">Bug Tracker</a></h2>
430436
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>.
431437
In case of trouble, please check there if your issue has already been reported.
432438
If you spotted it first, help us to smash it by providing a detailed and welcomed
433-
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20attachment_delete_restrict%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
439+
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20attachment_delete_restrict%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
434440
<p>Do not contact contributors directly about support or help with technical issues.</p>
435441
</div>
436442
<div class="section" id="credits">
437-
<h1><a class="toc-backref" href="#toc-entry-6">Credits</a></h1>
443+
<h2><a class="toc-backref" href="#toc-entry-6">Credits</a></h2>
438444
<div class="section" id="authors">
439-
<h2><a class="toc-backref" href="#toc-entry-7">Authors</a></h2>
445+
<h3><a class="toc-backref" href="#toc-entry-7">Authors</a></h3>
440446
<ul class="simple">
441447
<li>Quartile</li>
442448
<li>Akretion</li>
443449
</ul>
444450
</div>
445451
<div class="section" id="contributors">
446-
<h2><a class="toc-backref" href="#toc-entry-8">Contributors</a></h2>
452+
<h3><a class="toc-backref" href="#toc-entry-8">Contributors</a></h3>
447453
<ul class="simple">
448454
<li>Yoshi Tashiro &lt;<a class="reference external" href="mailto:tashiro&#64;quartile.co">tashiro&#64;quartile.co</a>&gt;</li>
449455
<li>Kévin Roche &lt;<a class="reference external" href="mailto:kevin.roche&#64;akretion.com">kevin.roche&#64;akretion.com</a>&gt;</li>
450456
<li>Sébastien BEAU &lt;<a class="reference external" href="mailto:sebastien.beau&#64;akretion.com">sebastien.beau&#64;akretion.com</a>&gt;</li>
451457
</ul>
452458
</div>
453459
<div class="section" id="maintainers">
454-
<h2><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h2>
460+
<h3><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h3>
455461
<p>This module is maintained by the OCA.</p>
456-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
462+
<a class="reference external image-reference" href="https://odoo-community.org">
463+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
464+
</a>
457465
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
458466
mission is to support the collaborative development of Odoo features and
459467
promote its widespread use.</p>
460468
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
461469
<p><a class="reference external image-reference" href="https://github.com/yostashiro"><img alt="yostashiro" src="https://github.com/yostashiro.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/Kev-Roche"><img alt="Kev-Roche" src="https://github.com/Kev-Roche.png?size=40px" /></a></p>
462-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/18.0/attachment_delete_restrict">OCA/server-tools</a> project on GitHub.</p>
470+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/19.0/attachment_delete_restrict">OCA/server-tools</a> project on GitHub.</p>
463471
<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>
464472
</div>
465473
</div>
466474
</div>
475+
</div>
467476
</body>
468477
</html>

0 commit comments

Comments
 (0)