Skip to content

Commit 63e7b3e

Browse files
ps-tubtimaphon61bank
authored andcommitted
[MIG] purchase_requisition_tier_validation: Migration to 13.0
1 parent b22a925 commit 63e7b3e

File tree

6 files changed

+22
-15
lines changed

6 files changed

+22
-15
lines changed

purchase_requisition_tier_validation/README.rst

+8-6
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Purchase Agreements Tier Validation
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%2Fpurchase--workflow-lightgray.png?logo=github
17-
:target: https://github.com/OCA/purchase-workflow/tree/12.0/purchase_requisition_tier_validation
17+
:target: https://github.com/OCA/purchase-workflow/tree/13.0/purchase_requisition_tier_validation
1818
:alt: OCA/purchase-workflow
1919
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20-
:target: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_requisition_tier_validation
20+
:target: https://translation.odoo-community.org/projects/purchase-workflow-13-0/purchase-workflow-13-0-purchase_requisition_tier_validation
2121
:alt: Translate me on Weblate
2222
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23-
:target: https://runbot.odoo-community.org/runbot/142/12.0
23+
:target: https://runbot.odoo-community.org/runbot/142/13.0
2424
:alt: Try me on Runbot
2525

2626
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -70,7 +70,7 @@ Bug Tracker
7070
Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-workflow/issues>`_.
7171
In case of trouble, please check there if your issue has already been reported.
7272
If you spotted it first, help us smashing it by providing a detailed and welcomed
73-
`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_requisition_tier_validation%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
73+
`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_requisition_tier_validation%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
7474

7575
Do not contact contributors directly about support or help with technical issues.
7676

@@ -85,7 +85,9 @@ Authors
8585
Contributors
8686
~~~~~~~~~~~~
8787

88-
* Pimolnat Suntian <[email protected]>
88+
* `Ecosoft <http://ecosoft.co.th>`__:
89+
90+
* Pimolnat Suntian <[email protected]>
8991

9092
Maintainers
9193
~~~~~~~~~~~
@@ -100,6 +102,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
100102
mission is to support the collaborative development of Odoo features and
101103
promote its widespread use.
102104

103-
This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/12.0/purchase_requisition_tier_validation>`_ project on GitHub.
105+
This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/13.0/purchase_requisition_tier_validation>`_ project on GitHub.
104106

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

purchase_requisition_tier_validation/models/tier_definition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ class TierDefinition(models.Model):
99

1010
@api.model
1111
def _get_tier_validation_model_names(self):
12-
res = super(TierDefinition, self)._get_tier_validation_model_names()
12+
res = super()._get_tier_validation_model_names()
1313
res.append("purchase.requisition")
1414
return res
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
* Pimolnat Suntian <[email protected]>
1+
* `Ecosoft <http://ecosoft.co.th>`__:
2+
3+
* Pimolnat Suntian <[email protected]>

purchase_requisition_tier_validation/static/description/index.html

+6-3
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ <h1 class="title">Purchase Agreements Tier Validation</h1>
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
370-
<p><a class="reference external" 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" 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" href="https://github.com/OCA/purchase-workflow/tree/12.0/purchase_requisition_tier_validation"><img alt="OCA/purchase-workflow" src="https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_requisition_tier_validation"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/142/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
370+
<p><a class="reference external" 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" 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" href="https://github.com/OCA/purchase-workflow/tree/13.0/purchase_requisition_tier_validation"><img alt="OCA/purchase-workflow" src="https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/purchase-workflow-13-0/purchase-workflow-13-0-purchase_requisition_tier_validation"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/142/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
371371
<p>This module extends the functionality of Purchase Agreements to support a tier validation process.</p>
372372
<p><strong>Table of contents</strong></p>
373373
<div class="contents local topic" id="contents">
@@ -420,7 +420,7 @@ <h1><a class="toc-backref" href="#id4">Bug Tracker</a></h1>
420420
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/purchase-workflow/issues">GitHub Issues</a>.
421421
In case of trouble, please check there if your issue has already been reported.
422422
If you spotted it first, help us smashing it by providing a detailed and welcomed
423-
<a class="reference external" href="https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_requisition_tier_validation%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
423+
<a class="reference external" href="https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_requisition_tier_validation%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
424424
<p>Do not contact contributors directly about support or help with technical issues.</p>
425425
</div>
426426
<div class="section" id="credits">
@@ -434,8 +434,11 @@ <h2><a class="toc-backref" href="#id6">Authors</a></h2>
434434
<div class="section" id="contributors">
435435
<h2><a class="toc-backref" href="#id7">Contributors</a></h2>
436436
<ul class="simple">
437+
<li><a class="reference external" href="http://ecosoft.co.th">Ecosoft</a>:<ul>
437438
<li>Pimolnat Suntian &lt;<a class="reference external" href="mailto:pimolnats&#64;ecosoft.co.th">pimolnats&#64;ecosoft.co.th</a>&gt;</li>
438439
</ul>
440+
</li>
441+
</ul>
439442
</div>
440443
<div class="section" id="maintainers">
441444
<h2><a class="toc-backref" href="#id8">Maintainers</a></h2>
@@ -444,7 +447,7 @@ <h2><a class="toc-backref" href="#id8">Maintainers</a></h2>
444447
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
445448
mission is to support the collaborative development of Odoo features and
446449
promote its widespread use.</p>
447-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/purchase-workflow/tree/12.0/purchase_requisition_tier_validation">OCA/purchase-workflow</a> project on GitHub.</p>
450+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/purchase-workflow/tree/13.0/purchase_requisition_tier_validation">OCA/purchase-workflow</a> project on GitHub.</p>
448451
<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>
449452
</div>
450453
</div>

purchase_requisition_tier_validation/tests/test_purchase_requisition_tier_validation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
from odoo.tests import common
55

66

7-
class TestHrExpenseTierValidation(common.TransactionCase):
7+
class TestPurchaseRequisitionTierValidation(common.TransactionCase):
88
def setUp(self):
9-
super(TestHrExpenseTierValidation, self).setUp()
9+
super().setUp()
1010
self.tier_definition = self.env["tier.definition"]
1111

1212
def test_get_tier_validation_model_names(self):

purchase_requisition_tier_validation/views/purchase_requisition_view.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<odoo>
33

4-
<record id="purchase_requisition_form" model="ir.ui.view">
4+
<record id="view_purchase_requisition_form" model="ir.ui.view">
55
<field name="name">purchase.requisition.form</field>
66
<field name="model">purchase.requisition</field>
77
<field name="inherit_id" ref="purchase_requisition.view_purchase_requisition_form"/>
@@ -61,7 +61,7 @@
6161
</field>
6262
</record>
6363

64-
<record id="purchase_requisition_filter" model="ir.ui.view">
64+
<record id="view_purchase_requisition_filter" model="ir.ui.view">
6565
<field name="name">purchase.requisition.filter</field>
6666
<field name="model">purchase.requisition</field>
6767
<field name="inherit_id" ref="purchase_requisition.view_purchase_requisition_filter"/>

0 commit comments

Comments
 (0)