Skip to content

Commit d04dc7b

Browse files
committed
[IMP] dms_storage: pre-commit auto fixes
1 parent f61f427 commit d04dc7b

File tree

7 files changed

+31
-23
lines changed

7 files changed

+31
-23
lines changed

dms_storage/README.rst

+11-10
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Dms Storage
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%2Fdms-lightgray.png?logo=github
20-
:target: https://github.com/OCA/dms/tree/16.0/dms_storage
20+
:target: https://github.com/OCA/dms/tree/17.0/dms_storage
2121
:alt: OCA/dms
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms_storage
23+
:target: https://translation.odoo-community.org/projects/dms-17-0/dms-17-0-dms_storage
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/dms&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/dms&target_branch=17.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -32,7 +32,8 @@ Use OCA storages in order to store DMS documents.
3232

3333
It allows us to create store outside our systems.
3434

35-
They will be stored using the same system used on DMS System (Path and Name)
35+
They will be stored using the same system used on DMS System (Path and
36+
Name)
3637

3738
**Table of contents**
3839

@@ -45,25 +46,25 @@ Bug Tracker
4546
Bugs are tracked on `GitHub Issues <https://github.com/OCA/dms/issues>`_.
4647
In case of trouble, please check there if your issue has already been reported.
4748
If you spotted it first, help us to smash it by providing a detailed and welcomed
48-
`feedback <https://github.com/OCA/dms/issues/new?body=module:%20dms_storage%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
49+
`feedback <https://github.com/OCA/dms/issues/new?body=module:%20dms_storage%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
4950

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

5253
Credits
5354
=======
5455

5556
Authors
56-
~~~~~~~
57+
-------
5758

5859
* CreuBlanca
5960

6061
Contributors
61-
~~~~~~~~~~~~
62+
------------
6263

63-
* Enric Tobella
64+
- Enric Tobella
6465

6566
Maintainers
66-
~~~~~~~~~~~
67+
-----------
6768

6869
This module is maintained by the OCA.
6970

@@ -75,6 +76,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
7576
mission is to support the collaborative development of Odoo features and
7677
promote its widespread use.
7778

78-
This module is part of the `OCA/dms <https://github.com/OCA/dms/tree/16.0/dms_storage>`_ project on GitHub.
79+
This module is part of the `OCA/dms <https://github.com/OCA/dms/tree/17.0/dms_storage>`_ project on GitHub.
7980

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

dms_storage/models/dms_file.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class DmsFile(models.Model):
1010
storage_backend_id = fields.Many2one("fs.storage")
1111

1212
def _update_content_vals(self, vals, binary):
13-
result = super(DmsFile, self)._update_content_vals(vals, binary)
13+
result = super()._update_content_vals(vals, binary)
1414
result.update(
1515
{
1616
"storage_path": False,
@@ -28,7 +28,7 @@ def _update_content_vals(self, vals, binary):
2828

2929
@api.depends("storage_path")
3030
def _compute_content(self):
31-
res = super(DmsFile, self)._compute_content()
31+
res = super()._compute_content()
3232
for record in self.filtered(lambda r: r.storage_path):
3333
record.content = self.storage_backend_id.get(
3434
record.storage_path, binary=False

dms_storage/pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"

dms_storage/readme/CONTRIBUTORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Enric Tobella

dms_storage/readme/CONTRIBUTORS.rst

-1
This file was deleted.

dms_storage/readme/DESCRIPTION.rst dms_storage/readme/DESCRIPTION.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ Use OCA storages in order to store DMS documents.
22

33
It allows us to create store outside our systems.
44

5-
They will be stored using the same system used on DMS System (Path and Name)
5+
They will be stored using the same system used on DMS System (Path and
6+
Name)

dms_storage/static/description/index.html

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
@@ -9,10 +8,11 @@
98

109
/*
1110
:Author: David Goodger ([email protected])
12-
: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 $
1312
:Copyright: This stylesheet has been placed in the public domain.
1413
1514
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1616
1717
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1818
customize this style sheet.
@@ -275,7 +275,7 @@
275275
margin-left: 2em ;
276276
margin-right: 2em }
277277

278-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
279279
pre.code, code { background-color: #eeeeee }
280280
pre.code .comment, code .comment { color: #5C6576 }
281281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@
301301
span.pre {
302302
white-space: pre }
303303

304-
span.problematic {
304+
span.problematic, pre.problematic {
305305
color: red }
306306

307307
span.section-subtitle {
@@ -369,10 +369,11 @@ <h1 class="title">Dms Storage</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:0bc9e984f4e8846f73e2366a15a8bf47ca8e7f7ecde0bd6ab3987096f8844e34
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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/dms/tree/16.0/dms_storage"><img alt="OCA/dms" src="https://img.shields.io/badge/github-OCA%2Fdms-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms_storage"><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/dms&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
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/dms/tree/17.0/dms_storage"><img alt="OCA/dms" src="https://img.shields.io/badge/github-OCA%2Fdms-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/dms-17-0/dms-17-0-dms_storage"><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/dms&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>Use OCA storages in order to store DMS documents.</p>
374374
<p>It allows us to create store outside our systems.</p>
375-
<p>They will be stored using the same system used on DMS System (Path and Name)</p>
375+
<p>They will be stored using the same system used on DMS System (Path and
376+
Name)</p>
376377
<p><strong>Table of contents</strong></p>
377378
<div class="contents local topic" id="contents">
378379
<ul class="simple">
@@ -390,7 +391,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
390391
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/dms/issues">GitHub Issues</a>.
391392
In case of trouble, please check there if your issue has already been reported.
392393
If you spotted it first, help us to smash it by providing a detailed and welcomed
393-
<a class="reference external" href="https://github.com/OCA/dms/issues/new?body=module:%20dms_storage%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
394+
<a class="reference external" href="https://github.com/OCA/dms/issues/new?body=module:%20dms_storage%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
394395
<p>Do not contact contributors directly about support or help with technical issues.</p>
395396
</div>
396397
<div class="section" id="credits">
@@ -410,11 +411,13 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
410411
<div class="section" id="maintainers">
411412
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
412413
<p>This module is maintained by the OCA.</p>
413-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
414+
<a class="reference external image-reference" href="https://odoo-community.org">
415+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
416+
</a>
414417
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
415418
mission is to support the collaborative development of Odoo features and
416419
promote its widespread use.</p>
417-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/dms/tree/16.0/dms_storage">OCA/dms</a> project on GitHub.</p>
420+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/dms/tree/17.0/dms_storage">OCA/dms</a> project on GitHub.</p>
418421
<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>
419422
</div>
420423
</div>

0 commit comments

Comments
 (0)