Skip to content

Commit 3871ec6

Browse files
committed
[16][MIG] maintenance_request_purchase: migrate to version 16.0
1 parent dc83095 commit 3871ec6

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
lines changed

maintenance_request_purchase/README.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Maintenance Request Purchase
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:04b317d1a10bf7300eda7262be39e2e16905fbdc15148c048102b5da7a387e49
10+
!! source digest: sha256:7b5844243a0844f36cb8ae52aa44f140202120be2e6d867cde7e38922014e5e1
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,13 +17,13 @@ Maintenance Request Purchase
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/14.0/maintenance_request_purchase
20+
:target: https://github.com/OCA/maintenance/tree/16.0/maintenance_request_purchase
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-14-0/maintenance-14-0-maintenance_request_purchase
23+
:target: https://translation.odoo-community.org/projects/maintenance-16-0/maintenance-16-0-maintenance_request_purchase
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=14.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|
@@ -41,7 +41,7 @@ Bug Tracker
4141
Bugs are tracked on `GitHub Issues <https://github.com/OCA/maintenance/issues>`_.
4242
In case of trouble, please check there if your issue has already been reported.
4343
If you spotted it first, help us to smash it by providing a detailed and welcomed
44-
`feedback <https://github.com/OCA/maintenance/issues/new?body=module:%20maintenance_request_purchase%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
44+
`feedback <https://github.com/OCA/maintenance/issues/new?body=module:%20maintenance_request_purchase%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
4545

4646
Do not contact contributors directly about support or help with technical issues.
4747

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

78-
This module is part of the `OCA/maintenance <https://github.com/OCA/maintenance/tree/14.0/maintenance_request_purchase>`_ project on GitHub.
78+
This module is part of the `OCA/maintenance <https://github.com/OCA/maintenance/tree/16.0/maintenance_request_purchase>`_ project on GitHub.
7979

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

maintenance_request_purchase/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Maintenance Request Purchase",
66
"summary": """
77
Allows you to link PO with maintenance requests""",
8-
"version": "14.0.1.0.1",
8+
"version": "16.0.1.0.0",
99
"license": "AGPL-3",
1010
"author": "CreuBlanca,Dixmit,Odoo Community Association (OCA)",
1111
"website": "https://github.com/OCA/maintenance",

maintenance_request_purchase/static/description/index.html

+5-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 Request Purchase</h1>
366367
!! This file is generated by oca-gen-addon-readme !!
367368
!! changes will be overwritten. !!
368369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369-
!! source digest: sha256:04b317d1a10bf7300eda7262be39e2e16905fbdc15148c048102b5da7a387e49
370+
!! source digest: sha256:7b5844243a0844f36cb8ae52aa44f140202120be2e6d867cde7e38922014e5e1
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/14.0/maintenance_request_purchase"><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-14-0/maintenance-14-0-maintenance_request_purchase"><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=14.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_request_purchase"><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_purchase"><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 allows to related a Maintenance Request with Purchase Orders</p>
373374
<p><strong>Table of contents</strong></p>
374375
<div class="contents local topic" id="contents">
@@ -387,7 +388,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
387388
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/maintenance/issues">GitHub Issues</a>.
388389
In case of trouble, please check there if your issue has already been reported.
389390
If you spotted it first, help us to smash it by providing a detailed and welcomed
390-
<a class="reference external" href="https://github.com/OCA/maintenance/issues/new?body=module:%20maintenance_request_purchase%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
391+
<a class="reference external" href="https://github.com/OCA/maintenance/issues/new?body=module:%20maintenance_request_purchase%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
391392
<p>Do not contact contributors directly about support or help with technical issues.</p>
392393
</div>
393394
<div class="section" id="credits">
@@ -415,7 +416,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
415416
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
416417
mission is to support the collaborative development of Odoo features and
417418
promote its widespread use.</p>
418-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/maintenance/tree/14.0/maintenance_request_purchase">OCA/maintenance</a> project on GitHub.</p>
419+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/maintenance/tree/16.0/maintenance_request_purchase">OCA/maintenance</a> project on GitHub.</p>
419420
<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>
420421
</div>
421422
</div>

maintenance_request_purchase/tests/test_maintenance_purchase.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Copyright 2023 Dixmit
22
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
33

4-
from odoo.tests.common import SavepointCase
4+
from odoo.tests.common import TransactionCase
55

66

7-
class TestMaintenancePurchase(SavepointCase):
7+
class TestMaintenancePurchase(TransactionCase):
88
@classmethod
99
def setUpClass(cls):
1010
super().setUpClass()

maintenance_request_purchase/views/maintenance_request.xml

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88
>maintenance.request.form (in maintenance_equipment_purchase)</field>
99
<field name="model">maintenance.request</field>
1010
<field name="inherit_id" ref="base_maintenance.equipment_request_view_form" />
11-
<field name="groups_id" eval="[(4, ref('purchase.group_purchase_user'))]" />
1211
<field name="arch" type="xml">
1312
<notebook position="inside">
14-
<page name="purchase_order" string="Purchase Orders">
13+
<page
14+
name="purchase_order"
15+
string="Purchase Orders"
16+
groups="purchase.group_purchase_user"
17+
>
1518
<field name="purchase_order_ids" />
1619
</page>
1720
</notebook>

0 commit comments

Comments
 (0)