Skip to content

Commit 106a09d

Browse files
[MIG] maintenance_plan: Migration to 16.0
1 parent 8787b38 commit 106a09d

File tree

7 files changed

+43
-39
lines changed

7 files changed

+43
-39
lines changed

maintenance_plan/README.rst

+7-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Maintenance Plan
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:5a0d33bfb7f94629dfc394ef3e36f71542d3848ffd5b397daeea04ad0adc5146
10+
!! source digest: sha256:51d1395956daf1de19f24abe40f89528841450822d90006b04a75e26f1913828
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,13 +17,13 @@ Maintenance Plan
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/15.0/maintenance_plan
20+
:target: https://github.com/OCA/maintenance/tree/16.0/maintenance_plan
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-15-0/maintenance-15-0-maintenance_plan
23+
:target: https://translation.odoo-community.org/projects/maintenance-16-0/maintenance-16-0-maintenance_plan
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=15.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/maintenance&target_branch=16.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -92,7 +92,7 @@ Bug Tracker
9292
Bugs are tracked on `GitHub Issues <https://github.com/OCA/maintenance/issues>`_.
9393
In case of trouble, please check there if your issue has already been reported.
9494
If you spotted it first, help us to smash it by providing a detailed and welcomed
95-
`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**>`_.
95+
`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**>`_.
9696

9797
Do not contact contributors directly about support or help with technical issues.
9898

@@ -115,6 +115,7 @@ Contributors
115115
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
116116
* Lois Rilo <lois.rilo@forgeflow.com>
117117
* Enric Tobella <enric.tobella@dixmit.com>
118+
* Alexei Rivera <arivera@archeti.com>
118119

119120
Maintainers
120121
~~~~~~~~~~~
@@ -129,6 +130,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
129130
mission is to support the collaborative development of Odoo features and
130131
promote its widespread use.
131132

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

134135
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.2",
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
@@ -5,3 +5,4 @@
55
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
66
* Lois Rilo <lois.rilo@forgeflow.com>
77
* Enric Tobella <enric.tobella@dixmit.com>
8+
* Alexei Rivera <arivera@archeti.com>

maintenance_plan/static/description/index.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
23
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
34
<head>
@@ -366,9 +367,9 @@ <h1 class="title">Maintenance Plan</h1>
366367
!! This file is generated by oca-gen-addon-readme !!
367368
!! changes will be overwritten. !!
368369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369-
!! source digest: sha256:5a0d33bfb7f94629dfc394ef3e36f71542d3848ffd5b397daeea04ad0adc5146
370+
!! source digest: sha256:51d1395956daf1de19f24abe40f89528841450822d90006b04a75e26f1913828
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/maintenance/tree/15.0/maintenance_plan"><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-15-0/maintenance-15-0-maintenance_plan"><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=15.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/16.0/maintenance_plan"><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_plan"><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>
372373
<p>This module extends the functionality of Odoo Maintenance module by allowing
373374
an equipment to have different preventive maintenance kinds.</p>
374375
<p><strong>Table of contents</strong></p>
@@ -431,7 +432,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
431432
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/maintenance/issues">GitHub Issues</a>.
432433
In case of trouble, please check there if your issue has already been reported.
433434
If you spotted it first, help us to smash it by providing a detailed and welcomed
434-
<a class="reference external" href="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**">feedback</a>.</p>
435+
<a class="reference external" href="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**">feedback</a>.</p>
435436
<p>Do not contact contributors directly about support or help with technical issues.</p>
436437
</div>
437438
<div class="section" id="credits">
@@ -453,6 +454,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
453454
<li>Jordi Ballester Alomar &lt;<a class="reference external" href="mailto:jordi.ballester&#64;forgeflow.com">jordi.ballester&#64;forgeflow.com</a>&gt;</li>
454455
<li>Lois Rilo &lt;<a class="reference external" href="mailto:lois.rilo&#64;forgeflow.com">lois.rilo&#64;forgeflow.com</a>&gt;</li>
455456
<li>Enric Tobella &lt;<a class="reference external" href="mailto:enric.tobella&#64;dixmit.com">enric.tobella&#64;dixmit.com</a>&gt;</li>
457+
<li>Alexei Rivera &lt;<a class="reference external" href="mailto:arivera&#64;archeti.com">arivera&#64;archeti.com</a>&gt;</li>
456458
</ul>
457459
</div>
458460
<div class="section" id="maintainers">
@@ -462,7 +464,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
462464
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
463465
mission is to support the collaborative development of Odoo features and
464466
promote its widespread use.</p>
465-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/maintenance/tree/15.0/maintenance_plan">OCA/maintenance</a> project on GitHub.</p>
467+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/maintenance/tree/16.0/maintenance_plan">OCA/maintenance</a> project on GitHub.</p>
466468
<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>
467469
</div>
468470
</div>

maintenance_plan/tests/test_maintenance_plan.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,11 @@ def test_maintenance_request_report(self):
218218
limit=1,
219219
)
220220
generated_request.note = "TEST-INSTRUCTIONS"
221-
res = self.report_obj._get_report_from_name(
222-
"base_maintenance.report_maintenance_request"
223-
)._render_qweb_text(generated_request.ids, False)
221+
res = self.report_obj._render_qweb_text(
222+
"base_maintenance.report_maintenance_request",
223+
generated_request.ids,
224+
False,
225+
)
224226
self.assertRegex(str(res[0]), "TEST-INSTRUCTIONS")
225227

226228
def test_maintenance_plan_button_manual_request_generation(self):

maintenance_plan/views/maintenance_equipment_views.xml

+22-24
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,28 @@
2323
<xpath expr="//group[@name='maintenance']" position="attributes">
2424
<attribute name="attrs">{'invisible': 1}</attribute>
2525
</xpath>
26-
<xpath expr="//group[@name='maintenance']" position="after">
27-
<group name="maintenance_plans" colspan="4">
28-
<field
29-
name="maintenance_plan_ids"
30-
nolabel="1"
31-
context="{'default_equipment_id': active_id, 'hide_equipment_id': 1}"
32-
>
33-
<tree>
34-
<field name="maintenance_kind_id" string="Kind" />
35-
<field name="maintenance_team_id" string="Team" />
36-
<field name="name" />
37-
<field name="start_maintenance_date" string="Start Date" />
38-
<field name="interval" />
39-
<field name="interval_step" />
40-
<field name="duration" />
41-
<field name="next_maintenance_date" />
42-
<field
43-
name="maintenance_plan_horizon"
44-
string="P. Horizon period"
45-
/>
46-
<field name="planning_step" string="P. Horizon step" />
47-
</tree>
48-
</field>
49-
</group>
26+
<xpath expr="//group[@name='maintenance']/.." position="after">
27+
<field
28+
name="maintenance_plan_ids"
29+
nolabel="1"
30+
context="{'default_equipment_id': active_id, 'hide_equipment_id': 1}"
31+
>
32+
<tree>
33+
<field name="maintenance_kind_id" string="Kind" />
34+
<field name="maintenance_team_id" string="Team" />
35+
<field name="name" />
36+
<field name="start_maintenance_date" string="Start Date" />
37+
<field name="interval" />
38+
<field name="interval_step" />
39+
<field name="duration" />
40+
<field name="next_maintenance_date" />
41+
<field
42+
name="maintenance_plan_horizon"
43+
string="P. Horizon period"
44+
/>
45+
<field name="planning_step" string="P. Horizon step" />
46+
</tree>
47+
</field>
5048
</xpath>
5149
<field name="maintenance_team_id" position="after">
5250
<field name="maintenance_team_required" attrs="{'invisible': 1}" />

maintenance_plan/views/maintenance_plan_views.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
<field name="next_maintenance_date" />
144144
<field name="maintenance_plan_horizon" />
145145
<field name="planning_step" />
146-
<field name="active" attrs="{'invisible': True}" />
146+
<field name="active" invisible="1" />
147147
<field name="company_id" groups="base.group_multi_company" />
148148
</tree>
149149
</field>

0 commit comments

Comments
 (0)