Skip to content

Commit e84762b

Browse files
[MIG] maintenance_plan: Migration to 16.0
1 parent 301527d commit e84762b

6 files changed

+15
-14
lines changed

maintenance_plan/README.rst

+8-7
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Maintenance Plan
1414
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1515
:alt: License: AGPL-3
1616
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmaintenance-lightgray.png?logo=github
17-
:target: https://github.com/OCA/maintenance/tree/15.0/maintenance_plan
17+
:target: https://github.com/OCA/maintenance/tree/16.0/maintenance_plan
1818
:alt: OCA/maintenance
1919
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20-
:target: https://translation.odoo-community.org/projects/maintenance-15-0/maintenance-15-0-maintenance_plan
20+
:target: https://translation.odoo-community.org/projects/maintenance-16-0/maintenance-16-0-maintenance_plan
2121
:alt: Translate me on Weblate
22-
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23-
:target: https://runbot.odoo-community.org/runbot/240/15.0
24-
:alt: Try me on Runbot
22+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
23+
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/maintenance&target_branch=16.0
24+
:alt: Try me on Runboat
2525

2626
|badge1| |badge2| |badge3| |badge4| |badge5|
2727

@@ -85,7 +85,7 @@ Bug Tracker
8585
Bugs are tracked on `GitHub Issues <https://github.com/OCA/maintenance/issues>`_.
8686
In case of trouble, please check there if your issue has already been reported.
8787
If you spotted it first, help us smashing it by providing a detailed and welcomed
88-
`feedback <https://github.com/OCA/maintenance/issues/new?body=module:%20maintenance_plan%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
88+
`feedback <https://github.com/OCA/maintenance/issues/new?body=module:%20maintenance_plan%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
8989

9090
Do not contact contributors directly about support or help with technical issues.
9191

@@ -107,6 +107,7 @@ Contributors
107107
* Adrià Gil Sorribes <adria.gil@forgeflow.com>
108108
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
109109
* Lois Rilo <lois.rilo@forgeflow.com>
110+
* Alexei Rivera <arivera@archeti.com>
110111

111112
Maintainers
112113
~~~~~~~~~~~
@@ -121,6 +122,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
121122
mission is to support the collaborative development of Odoo features and
122123
promote its widespread use.
123124

124-
This module is part of the `OCA/maintenance <https://github.com/OCA/maintenance/tree/15.0/maintenance_plan>`_ project on GitHub.
125+
This module is part of the `OCA/maintenance <https://github.com/OCA/maintenance/tree/16.0/maintenance_plan>`_ project on GitHub.
125126

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

maintenance_plan/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Maintenance Plan",
55
"summary": "Extends preventive maintenance planning",
6-
"version": "15.0.1.7.0",
6+
"version": "16.0.1.0.0",
77
"author": "Camptocamp SA, ForgeFlow, Odoo Community Association (OCA)",
88
"license": "AGPL-3",
99
"category": "Maintenance",

maintenance_plan/readme/CONTRIBUTORS.rst

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
* Adrià Gil Sorribes <adria.gil@forgeflow.com>
55
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
66
* Lois Rilo <lois.rilo@forgeflow.com>
7+
* Alexei Rivera <arivera@archeti.com>

maintenance_plan/tests/test_maintenance_plan.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,10 @@ def test_maintenance_request_report(self):
228228
limit=1,
229229
)
230230
generated_request.note = "TEST-INSTRUCTIONS"
231-
res = self.report_obj._get_report_from_name(
232-
"base_maintenance.report_maintenance_request"
233-
)._render_qweb_text(generated_request.ids, False)
234-
self.assertRegex(str(res[0]), "TEST-INSTRUCTIONS")
231+
rendering, qweb_type = self.report_obj._render_qweb_text(
232+
"base_maintenance.report_maintenance_request", generated_request.ids
233+
)
234+
self.assertFalse(rendering.decode("utf-8").find("TEST-INSTRUCTIONS") == -1)
235235

236236
def test_maintenance_plan_button_manual_request_generation(self):
237237
self.assertEqual(len(self.maintenance_plan_1.maintenance_ids), 0)

maintenance_plan/views/maintenance_equipment_views.xml

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
<field name="maintenance_type" position="after">
6969
<field name="maintenance_kind_id" />
7070
</field>
71-
<!-- TODO: Use position="move" instead -->
7271
<xpath expr="//notebook/page[@name='description_page']" position="before">
7372
<page string="Instructions">
7473
<field

maintenance_plan/views/maintenance_plan_views.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
<field name="next_maintenance_date" />
134134
<field name="maintenance_plan_horizon" />
135135
<field name="planning_step" />
136-
<field name="active" attrs="{'invisible': True}" />
136+
<field name="active" invisible="1" />
137137
<field name="company_id" groups="base.group_multi_company" />
138138
</tree>
139139
</field>

0 commit comments

Comments
 (0)