Skip to content

Commit 5753c45

Browse files
committed
[MIG] onchange_helper: Migration to 19.0
1 parent b6e85a6 commit 5753c45

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

onchange_helper/README.rst

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Onchange Helper
2121
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
2222
:alt: License: LGPL-3
2323
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
24-
:target: https://github.com/OCA/server-tools/tree/18.0/onchange_helper
24+
:target: https://github.com/OCA/server-tools/tree/19.0/onchange_helper
2525
:alt: OCA/server-tools
2626
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-onchange_helper
27+
:target: https://translation.odoo-community.org/projects/server-tools-19-0/server-tools-19-0-onchange_helper
2828
:alt: Translate me on Weblate
2929
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=19.0
3131
:alt: Try me on Runboat
3232

3333
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -108,7 +108,7 @@ Bug Tracker
108108
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
109109
In case of trouble, please check there if your issue has already been reported.
110110
If you spotted it first, help us to smash it by providing a detailed and welcomed
111-
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20onchange_helper%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
111+
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20onchange_helper%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
112112

113113
Do not contact contributors directly about support or help with technical issues.
114114

@@ -131,12 +131,6 @@ Contributors
131131
- Kevin Khao <kevin.khao@akretion.com>
132132
- Thien Vo <thienvh@trobz.com>
133133

134-
Other credits
135-
-------------
136-
137-
The migration of this module from 17.0 to 18.0 was financially supported
138-
by Camptocamp.
139-
140134
Maintainers
141135
-----------
142136

@@ -150,6 +144,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
150144
mission is to support the collaborative development of Odoo features and
151145
promote its widespread use.
152146

153-
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/18.0/onchange_helper>`_ project on GitHub.
147+
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/19.0/onchange_helper>`_ project on GitHub.
154148

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

onchange_helper/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{
55
"name": "Onchange Helper",
6-
"version": "18.0.1.0.1",
6+
"version": "19.0.1.0.0",
77
"summary": "Technical module that ease execution of onchange in Python code",
88
"author": "Akretion,Camptocamp,Odoo Community Association (OCA)",
99
"website": "https://github.com/OCA/server-tools",

onchange_helper/readme/CREDITS.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

onchange_helper/static/description/index.html

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ <h1>Onchange Helper</h1>
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375375
!! source digest: sha256:ffb68173b063c28215216a16efbd8156ef20bb3e5fe1dd66b197e52ccb2a22c0
376376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<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/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/18.0/onchange_helper"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-onchange_helper"><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/server-tools&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<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/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/19.0/onchange_helper"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-19-0/server-tools-19-0-onchange_helper"><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/server-tools&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p>This is a technical module. Its goal is to ease the play of onchange
379379
method directly called from Python code.</p>
380380
<p><strong>Table of contents</strong></p>
@@ -386,8 +386,7 @@ <h1>Onchange Helper</h1>
386386
<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
387387
<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
388388
<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
389-
<li><a class="reference internal" href="#other-credits" id="toc-entry-7">Other credits</a></li>
390-
<li><a class="reference internal" href="#maintainers" id="toc-entry-8">Maintainers</a></li>
389+
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
391390
</ul>
392391
</li>
393392
</ul>
@@ -451,7 +450,7 @@ <h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
451450
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>.
452451
In case of trouble, please check there if your issue has already been reported.
453452
If you spotted it first, help us to smash it by providing a detailed and welcomed
454-
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20onchange_helper%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
453+
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20onchange_helper%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
455454
<p>Do not contact contributors directly about support or help with technical issues.</p>
456455
</div>
457456
<div class="section" id="credits">
@@ -474,21 +473,16 @@ <h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
474473
<li>Thien Vo &lt;<a class="reference external" href="mailto:thienvh&#64;trobz.com">thienvh&#64;trobz.com</a>&gt;</li>
475474
</ul>
476475
</div>
477-
<div class="section" id="other-credits">
478-
<h3><a class="toc-backref" href="#toc-entry-7">Other credits</a></h3>
479-
<p>The migration of this module from 17.0 to 18.0 was financially supported
480-
by Camptocamp.</p>
481-
</div>
482476
<div class="section" id="maintainers">
483-
<h3><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h3>
477+
<h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
484478
<p>This module is maintained by the OCA.</p>
485479
<a class="reference external image-reference" href="https://odoo-community.org">
486480
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
487481
</a>
488482
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
489483
mission is to support the collaborative development of Odoo features and
490484
promote its widespread use.</p>
491-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/18.0/onchange_helper">OCA/server-tools</a> project on GitHub.</p>
485+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/19.0/onchange_helper">OCA/server-tools</a> project on GitHub.</p>
492486
<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>
493487
</div>
494488
</div>

onchange_helper/tests/test_onchange_helper.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
class TestOnchangeHelper(TransactionCase):
88
def test01_partner_parent(self):
99
main_partner = self.env.ref("base.main_partner")
10+
main_partner.write(
11+
{
12+
"country_id": self.env.ref("base.de").id,
13+
"state_id": self.env.ref("base.state_de_by").id,
14+
"city": "Günzburg",
15+
"street": "Legoland-Allee 3",
16+
"zip": "89312",
17+
}
18+
)
1019
input_vals = dict(parent_id=main_partner.id, type="contact")
1120
updated_vals = self.env["res.partner"].play_onchanges(input_vals, ["parent_id"])
1221
self.assertIn("country_id", updated_vals)
@@ -20,7 +29,11 @@ def test01_partner_parent(self):
2029
self.assertEqual(updated_vals["zip"], main_partner.zip)
2130

2231
def test02_partner_country(self):
23-
partner_demo = self.env.ref("base.partner_demo")
32+
partner_demo = self.env["res.partner"].create(
33+
{
34+
"name": "Demo Partner",
35+
}
36+
)
2437
input_vals = {"country_id": self.env.ref("base.us").id}
2538
updated_vals = partner_demo.play_onchanges(input_vals, ["country_id"])
2639
self.assertIn("country_id", updated_vals)

0 commit comments

Comments
 (0)