Skip to content

Commit 0bac7af

Browse files
[MIG] account_move_reconcile_helper: Migration to 18.0
1 parent 4a4e242 commit 0bac7af

File tree

11 files changed

+65
-61
lines changed

11 files changed

+65
-61
lines changed
Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. image:: https://odoo-community.org/readme-banner-image
2-
:target: https://odoo-community.org/get-involved?utm_source=readme
3-
:alt: Odoo Community Association
4-
51
=============================
62
Account Move Reconcile Helper
73
=============================
@@ -17,28 +13,26 @@ Account Move Reconcile Helper
1713
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1814
:target: https://odoo-community.org/page/development-status
1915
:alt: Beta
20-
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
2117
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2218
:alt: License: AGPL-3
2319
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github
24-
:target: https://github.com/OCA/account-reconcile/tree/16.0/account_move_reconcile_helper
20+
:target: https://github.com/OCA/account-reconcile/tree/18.0/account_move_reconcile_helper
2521
:alt: OCA/account-reconcile
2622
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/account-reconcile-16-0/account-reconcile-16-0-account_move_reconcile_helper
23+
:target: https://translation.odoo-community.org/projects/account-reconcile-18-0/account-reconcile-18-0-account_move_reconcile_helper
2824
:alt: Translate me on Weblate
2925
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-reconcile&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-reconcile&target_branch=18.0
3127
:alt: Try me on Runboat
3228

3329
|badge1| |badge2| |badge3| |badge4| |badge5|
3430

35-
3631
Provides tools to facilitate reconciliation.
3732

38-
* Display a button on Journal Items to show reconciled lines.
39-
* Added Balance field in Journal Items (this feature
40-
is provided by account_balance_line).
41-
33+
- Display a button on Journal Items to show reconciled lines.
34+
- Added Balance field in Journal Items (this feature is provided by
35+
account_balance_line).
4236

4337
**Table of contents**
4438

@@ -51,27 +45,34 @@ Bug Tracker
5145
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-reconcile/issues>`_.
5246
In case of trouble, please check there if your issue has already been reported.
5347
If you spotted it first, help us to smash it by providing a detailed and welcomed
54-
`feedback <https://github.com/OCA/account-reconcile/issues/new?body=module:%20account_move_reconcile_helper%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
48+
`feedback <https://github.com/OCA/account-reconcile/issues/new?body=module:%20account_move_reconcile_helper%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5549

5650
Do not contact contributors directly about support or help with technical issues.
5751

5852
Credits
5953
=======
6054

6155
Authors
62-
~~~~~~~
56+
-------
6357

6458
* ACSONE SA/NV
6559

6660
Contributors
67-
~~~~~~~~~~~~
61+
------------
62+
63+
- Benjamin Willig <benjamin.willig@acsone.eu>
64+
- Kitti U. <kittiu@ecosoft.co.th>
65+
- `APSL-Nagarro <https://apsl.tech>`__:
66+
67+
- Antoni Marroig <amarroig@apsl.net>
68+
- Miquel Pascual <mpascual@apsl.net>
69+
70+
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__
6871

69-
* Benjamin Willig <benjamin.willig@acsone.eu>
70-
* Kitti U. <kittiu@ecosoft.co.th>
71-
* Miquel Pascual <mpascual@apsl.net>
72+
- Bhavesh Heliconia
7273

7374
Maintainers
74-
~~~~~~~~~~~
75+
-----------
7576

7677
This module is maintained by the OCA.
7778

@@ -83,6 +84,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
8384
mission is to support the collaborative development of Odoo features and
8485
promote its widespread use.
8586

86-
This module is part of the `OCA/account-reconcile <https://github.com/OCA/account-reconcile/tree/16.0/account_move_reconcile_helper>`_ project on GitHub.
87+
This module is part of the `OCA/account-reconcile <https://github.com/OCA/account-reconcile/tree/18.0/account_move_reconcile_helper>`_ project on GitHub.
8788

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

account_move_reconcile_helper/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"name": "Account Move Reconcile Helper",
66
"summary": "Provides tools to facilitate reconciliation",
7-
"version": "16.0.1.0.0",
7+
"version": "18.0.1.0.0",
88
"license": "AGPL-3",
99
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
1010
"website": "https://github.com/OCA/account-reconcile",

account_move_reconcile_helper/models/account_move_line.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class AccountMoveLine(models.Model):
8-
98
_inherit = "account.move.line"
109

1110
reconcile_line_ids = fields.One2many(
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
- Benjamin Willig \<<benjamin.willig@acsone.eu>\>
2+
- Kitti U. \<<kittiu@ecosoft.co.th>\>
3+
- [APSL-Nagarro](https://apsl.tech):
4+
- Antoni Marroig \<<amarroig@apsl.net>\>
5+
- Miquel Pascual \<<mpascual@apsl.net>\>
6+
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
7+
- Bhavesh Heliconia

account_move_reconcile_helper/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Provides tools to facilitate reconciliation.
2+
3+
- Display a button on Journal Items to show reconciled lines.
4+
- Added Balance field in Journal Items (this feature is provided by
5+
account_balance_line).

account_move_reconcile_helper/readme/DESCRIPTION.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

account_move_reconcile_helper/static/description/index.html

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>README.rst</title>
6+
<title>Account Move Reconcile Helper</title>
77
<style type="text/css">
88

99
/*
@@ -360,26 +360,21 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document">
363+
<div class="document" id="account-move-reconcile-helper">
364+
<h1 class="title">Account Move Reconcile Helper</h1>
364365

365-
366-
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367-
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368-
</a>
369-
<div class="section" id="account-move-reconcile-helper">
370-
<h1>Account Move Reconcile Helper</h1>
371366
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
372367
!! This file is generated by oca-gen-addon-readme !!
373368
!! changes will be overwritten. !!
374369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375370
!! source digest: sha256:deb677a59aeb39ba2b38c03d80005ddb0853c0d71efd9e50d66fc2a399b1e0ae
376371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-reconcile/tree/16.0/account_move_reconcile_helper"><img alt="OCA/account-reconcile" src="https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-reconcile-16-0/account-reconcile-16-0-account_move_reconcile_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/account-reconcile&amp;target_branch=16.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/account-reconcile/tree/18.0/account_move_reconcile_helper"><img alt="OCA/account-reconcile" src="https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-reconcile-18-0/account-reconcile-18-0-account_move_reconcile_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/account-reconcile&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378373
<p>Provides tools to facilitate reconciliation.</p>
379374
<ul class="simple">
380375
<li>Display a button on Journal Items to show reconciled lines.</li>
381-
<li>Added Balance field in Journal Items (this feature
382-
is provided by account_balance_line).</li>
376+
<li>Added Balance field in Journal Items (this feature is provided by
377+
account_balance_line).</li>
383378
</ul>
384379
<p><strong>Table of contents</strong></p>
385380
<div class="contents local topic" id="contents">
@@ -394,43 +389,50 @@ <h1>Account Move Reconcile Helper</h1>
394389
</ul>
395390
</div>
396391
<div class="section" id="bug-tracker">
397-
<h2><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h2>
392+
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
398393
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-reconcile/issues">GitHub Issues</a>.
399394
In case of trouble, please check there if your issue has already been reported.
400395
If you spotted it first, help us to smash it by providing a detailed and welcomed
401-
<a class="reference external" href="https://github.com/OCA/account-reconcile/issues/new?body=module:%20account_move_reconcile_helper%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
396+
<a class="reference external" href="https://github.com/OCA/account-reconcile/issues/new?body=module:%20account_move_reconcile_helper%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
402397
<p>Do not contact contributors directly about support or help with technical issues.</p>
403398
</div>
404399
<div class="section" id="credits">
405-
<h2><a class="toc-backref" href="#toc-entry-2">Credits</a></h2>
400+
<h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1>
406401
<div class="section" id="authors">
407-
<h3><a class="toc-backref" href="#toc-entry-3">Authors</a></h3>
402+
<h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
408403
<ul class="simple">
409404
<li>ACSONE SA/NV</li>
410405
</ul>
411406
</div>
412407
<div class="section" id="contributors">
413-
<h3><a class="toc-backref" href="#toc-entry-4">Contributors</a></h3>
408+
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
414409
<ul class="simple">
415410
<li>Benjamin Willig &lt;<a class="reference external" href="mailto:benjamin.willig&#64;acsone.eu">benjamin.willig&#64;acsone.eu</a>&gt;</li>
416411
<li>Kitti U. &lt;<a class="reference external" href="mailto:kittiu&#64;ecosoft.co.th">kittiu&#64;ecosoft.co.th</a>&gt;</li>
412+
<li><a class="reference external" href="https://apsl.tech">APSL-Nagarro</a>:<ul>
413+
<li>Antoni Marroig &lt;<a class="reference external" href="mailto:amarroig&#64;apsl.net">amarroig&#64;apsl.net</a>&gt;</li>
417414
<li>Miquel Pascual &lt;<a class="reference external" href="mailto:mpascual&#64;apsl.net">mpascual&#64;apsl.net</a>&gt;</li>
418415
</ul>
416+
</li>
417+
<li><a class="reference external" href="https://www.heliconia.io">Heliconia Solutions Pvt. Ltd.</a><ul>
418+
<li>Bhavesh Heliconia</li>
419+
</ul>
420+
</li>
421+
</ul>
419422
</div>
420423
<div class="section" id="maintainers">
421-
<h3><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h3>
424+
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
422425
<p>This module is maintained by the OCA.</p>
423426
<a class="reference external image-reference" href="https://odoo-community.org">
424427
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
425428
</a>
426429
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
427430
mission is to support the collaborative development of Odoo features and
428431
promote its widespread use.</p>
429-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-reconcile/tree/16.0/account_move_reconcile_helper">OCA/account-reconcile</a> project on GitHub.</p>
432+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-reconcile/tree/18.0/account_move_reconcile_helper">OCA/account-reconcile</a> project on GitHub.</p>
430433
<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>
431434
</div>
432435
</div>
433436
</div>
434-
</div>
435437
</body>
436438
</html>

account_move_reconcile_helper/tests/test_account_move_reconcile_helper.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Copyright 2017 ACSONE SA/NV
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
from odoo import Command
34

4-
from odoo.tests.common import TransactionCase
5+
from odoo.addons.base.tests.common import BaseCommon
56

67

7-
class TestAccountMoveReconcileHelper(TransactionCase):
8+
class TestAccountMoveReconcileHelper(BaseCommon):
89
@classmethod
910
def setUpClass(cls):
1011
super().setUpClass()
@@ -44,18 +45,14 @@ def create_account_move(self, amount, debit_account, credit_account):
4445
{
4546
"journal_id": self.sales_journal.id,
4647
"line_ids": [
47-
(
48-
0,
49-
0,
48+
Command.create(
5049
{
5150
"name": "Receivable line",
5251
"account_id": debit_account.id,
5352
"debit": amount,
5453
},
5554
),
56-
(
57-
0,
58-
0,
55+
Command.create(
5956
{
6057
"name": "Sales line",
6158
"account_id": credit_account.id,

0 commit comments

Comments
 (0)