Skip to content

Commit fee1bc1

Browse files
[IMP] maintenance_request_repair: pre-commit auto fixes
1 parent 4c0a291 commit fee1bc1

File tree

13 files changed

+54
-62
lines changed

13 files changed

+54
-62
lines changed

maintenance_request_repair/README.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Maintenance Request Repair
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%2Fmaintenance-lightgray.png?logo=github
20-
:target: https://github.com/OCA/maintenance/tree/16.0/maintenance_request_repair
20+
:target: https://github.com/OCA/maintenance/tree/18.0/maintenance_request_repair
2121
:alt: OCA/maintenance
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/maintenance-16-0/maintenance-16-0-maintenance_request_repair
23+
:target: https://translation.odoo-community.org/projects/maintenance-18-0/maintenance-18-0-maintenance_request_repair
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/maintenance&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/maintenance&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -46,39 +46,39 @@ Usage
4646

4747
Maintenance Request Repair
4848

49-
* Go to Repair → create a new one
50-
* Go to Maintenance → Maintenance Requests
51-
* Edit a Maintenance Request
52-
* Select a Repair Order on the list
49+
- Go to Repair → create a new one
50+
- Go to Maintenance → Maintenance Requests
51+
- Edit a Maintenance Request
52+
- Select a Repair Order on the list
5353

5454
Bug Tracker
5555
===========
5656

5757
Bugs are tracked on `GitHub Issues <https://github.com/OCA/maintenance/issues>`_.
5858
In case of trouble, please check there if your issue has already been reported.
5959
If you spotted it first, help us to smash it by providing a detailed and welcomed
60-
`feedback <https://github.com/OCA/maintenance/issues/new?body=module:%20maintenance_request_repair%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
60+
`feedback <https://github.com/OCA/maintenance/issues/new?body=module:%20maintenance_request_repair%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6161

6262
Do not contact contributors directly about support or help with technical issues.
6363

6464
Credits
6565
=======
6666

6767
Authors
68-
~~~~~~~
68+
-------
6969

7070
* Escodoo
7171

7272
Contributors
73-
~~~~~~~~~~~~
73+
------------
7474

75-
* `Escodoo <https://www.escodoo.com.br>`_:
75+
- `Escodoo <https://www.escodoo.com.br>`__:
7676

77-
* Marcel Savegnago <marcel.savegnago@escodoo.com.br>
78-
* Kaynnan Lemes <kaynnan.lemes@escodoo.com.br>
77+
- Marcel Savegnago <marcel.savegnago@escodoo.com.br>
78+
- Kaynnan Lemes <kaynnan.lemes@escodoo.com.br>
7979

8080
Maintainers
81-
~~~~~~~~~~~
81+
-----------
8282

8383
This module is maintained by the OCA.
8484

@@ -90,6 +90,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
9090
mission is to support the collaborative development of Odoo features and
9191
promote its widespread use.
9292

93-
This module is part of the `OCA/maintenance <https://github.com/OCA/maintenance/tree/16.0/maintenance_request_repair>`_ project on GitHub.
93+
This module is part of the `OCA/maintenance <https://github.com/OCA/maintenance/tree/18.0/maintenance_request_repair>`_ project on GitHub.
9494

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

maintenance_request_repair/models/maintenance_request.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class MaintenanceRequest(models.Model):
8-
98
_inherit = "maintenance.request"
109

1110
repair_order_id = fields.Many2one("repair.order", "Repair Order")

maintenance_request_repair/models/repair_order.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class RepairOrder(models.Model):
8-
98
_inherit = "repair.order"
109

1110
maintenance_request_ids = fields.One2many(
@@ -33,7 +32,7 @@ def action_view_maintenance_request(self):
3332
maintenance_request_ids = self.mapped("maintenance_request_ids")
3433
# choose the view_mode accordingly
3534
if not maintenance_request_ids or len(maintenance_request_ids) > 1:
36-
result["domain"] = "[('id','in',%s)]" % (maintenance_request_ids.ids)
35+
result["domain"] = f"[('id','in',{maintenance_request_ids.ids})]"
3736
elif len(maintenance_request_ids) == 1:
3837
res = self.env.ref("maintenance.hr_equipment_request_view_form", False)
3938
form_view = [(res and res.id or False, "form")]
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- [Escodoo](https://www.escodoo.com.br):
2+
- Marcel Savegnago \<<marcel.savegnago@escodoo.com.br>\>
3+
- Kaynnan Lemes \<<kaynnan.lemes@escodoo.com.br>\>

maintenance_request_repair/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.
File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Maintenance Request Repair
2+
3+
- Go to Repair → create a new one
4+
- Go to Maintenance → Maintenance Requests
5+
- Edit a Maintenance Request
6+
- Select a Repair Order on the list

maintenance_request_repair/readme/USAGE.rst

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

maintenance_request_repair/static/description/index.html

Lines changed: 10 additions & 8 deletions
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 (goodger@python.org)
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,7 +369,7 @@ <h1 class="title">Maintenance Request Repair</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:4b95990a479f9ac54500dccd7fb60653d39802d8cbb4e7c800115b5b040cb878
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/maintenance/tree/16.0/maintenance_request_repair"><img alt="OCA/maintenance" src="https://img.shields.io/badge/github-OCA%2Fmaintenance-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/maintenance-16-0/maintenance-16-0-maintenance_request_repair"><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/maintenance&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/maintenance/tree/18.0/maintenance_request_repair"><img alt="OCA/maintenance" src="https://img.shields.io/badge/github-OCA%2Fmaintenance-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/maintenance-18-0/maintenance-18-0-maintenance_request_repair"><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/maintenance&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This is a bridge module between Maintenance and Repair</p>
374374
<p>This module contains some new features for Maintenance modules.</p>
375375
<p>Maintenance Request</p>
@@ -404,7 +404,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
404404
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/maintenance/issues">GitHub Issues</a>.
405405
In case of trouble, please check there if your issue has already been reported.
406406
If you spotted it first, help us to smash it by providing a detailed and welcomed
407-
<a class="reference external" href="https://github.com/OCA/maintenance/issues/new?body=module:%20maintenance_request_repair%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
407+
<a class="reference external" href="https://github.com/OCA/maintenance/issues/new?body=module:%20maintenance_request_repair%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
408408
<p>Do not contact contributors directly about support or help with technical issues.</p>
409409
</div>
410410
<div class="section" id="credits">
@@ -428,11 +428,13 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
428428
<div class="section" id="maintainers">
429429
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
430430
<p>This module is maintained by the OCA.</p>
431-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
431+
<a class="reference external image-reference" href="https://odoo-community.org">
432+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
433+
</a>
432434
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
433435
mission is to support the collaborative development of Odoo features and
434436
promote its widespread use.</p>
435-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/maintenance/tree/16.0/maintenance_request_repair">OCA/maintenance</a> project on GitHub.</p>
437+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/maintenance/tree/18.0/maintenance_request_repair">OCA/maintenance</a> project on GitHub.</p>
436438
<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>
437439
</div>
438440
</div>

0 commit comments

Comments
 (0)