Skip to content

Commit 106aaf7

Browse files
committed
[FIX] account_banking_sepa_credit_transfer: Fixed tests
1 parent dc8a769 commit 106aaf7

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

account_banking_sepa_credit_transfer/README.rst

+7-6
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Account Banking SEPA Credit Transfer
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%2Fbank--payment-lightgray.png?logo=github
17-
:target: https://github.com/OCA/bank-payment/tree/13.0/account_banking_sepa_credit_transfer
17+
:target: https://github.com/OCA/bank-payment/tree/14.0/account_banking_sepa_credit_transfer
1818
:alt: OCA/bank-payment
1919
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20-
:target: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_banking_sepa_credit_transfer
20+
:target: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_banking_sepa_credit_transfer
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/173/13.0
23+
:target: https://runbot.odoo-community.org/runbot/173/14.0
2424
:alt: Try me on Runbot
2525

2626
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -68,7 +68,7 @@ Configuration
6868
Usage
6969
=====
7070

71-
In the menu *Invoicing/Accounting > Payments > Payment Order*, create a new
71+
In the menu *Invoicing/Accounting > Vendors > Payment Orders*, create a new
7272
payment order and select the Payment Mode dedicated to SEPA Credit
7373
Transfer that you created during the configuration step.
7474

@@ -78,7 +78,7 @@ Bug Tracker
7878
Bugs are tracked on `GitHub Issues <https://github.com/OCA/bank-payment/issues>`_.
7979
In case of trouble, please check there if your issue has already been reported.
8080
If you spotted it first, help us smashing it by providing a detailed and welcomed
81-
`feedback <https://github.com/OCA/bank-payment/issues/new?body=module:%20account_banking_sepa_credit_transfer%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
81+
`feedback <https://github.com/OCA/bank-payment/issues/new?body=module:%20account_banking_sepa_credit_transfer%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
8282

8383
Do not contact contributors directly about support or help with technical issues.
8484

@@ -106,6 +106,7 @@ Contributors
106106

107107
* Antonio Espinosa
108108
* Pedro M. Baeza
109+
* Carlos Roca
109110
* `DynApps NV <https://www.dynapps.be>`_:
110111

111112
* Axel Priem <axel.priem@dynapps.be>
@@ -126,6 +127,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
126127
mission is to support the collaborative development of Odoo features and
127128
promote its widespread use.
128129

129-
This module is part of the `OCA/bank-payment <https://github.com/OCA/bank-payment/tree/13.0/account_banking_sepa_credit_transfer>`_ project on GitHub.
130+
This module is part of the `OCA/bank-payment <https://github.com/OCA/bank-payment/tree/14.0/account_banking_sepa_credit_transfer>`_ project on GitHub.
130131

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

account_banking_sepa_credit_transfer/readme/CONTRIBUTORS.rst

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
* Antonio Espinosa
1212
* Pedro M. Baeza
13+
* Carlos Roca
1314
* `DynApps NV <https://www.dynapps.be>`_:
1415

1516
* Axel Priem <axel.priem@dynapps.be>

account_banking_sepa_credit_transfer/static/description/index.html

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6-
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
6+
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
77
<title>Account Banking SEPA Credit Transfer</title>
88
<style type="text/css">
99

@@ -367,7 +367,7 @@ <h1 class="title">Account Banking SEPA Credit Transfer</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/bank-payment/tree/13.0/account_banking_sepa_credit_transfer"><img alt="OCA/bank-payment" src="https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_banking_sepa_credit_transfer"><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/173/13.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/bank-payment/tree/14.0/account_banking_sepa_credit_transfer"><img alt="OCA/bank-payment" src="https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_banking_sepa_credit_transfer"><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/173/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
371371
<p>Module to export payment orders in SEPA XML file format.</p>
372372
<p>SEPA PAIN (PAyment INitiation) is the new european standard for
373373
Customer-to-Bank payment instructions. This module implements SEPA Credit
@@ -413,7 +413,7 @@ <h1><a class="toc-backref" href="#id2">Configuration</a></h1>
413413
</div>
414414
<div class="section" id="usage">
415415
<h1><a class="toc-backref" href="#id3">Usage</a></h1>
416-
<p>In the menu <em>Invoicing/Accounting &gt; Payments &gt; Payment Order</em>, create a new
416+
<p>In the menu <em>Invoicing/Accounting &gt; Vendors &gt; Payment Orders</em>, create a new
417417
payment order and select the Payment Mode dedicated to SEPA Credit
418418
Transfer that you created during the configuration step.</p>
419419
</div>
@@ -422,7 +422,7 @@ <h1><a class="toc-backref" href="#id4">Bug Tracker</a></h1>
422422
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/bank-payment/issues">GitHub Issues</a>.
423423
In case of trouble, please check there if your issue has already been reported.
424424
If you spotted it first, help us smashing it by providing a detailed and welcomed
425-
<a class="reference external" href="https://github.com/OCA/bank-payment/issues/new?body=module:%20account_banking_sepa_credit_transfer%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
425+
<a class="reference external" href="https://github.com/OCA/bank-payment/issues/new?body=module:%20account_banking_sepa_credit_transfer%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
426426
<p>Do not contact contributors directly about support or help with technical issues.</p>
427427
</div>
428428
<div class="section" id="credits">
@@ -448,6 +448,7 @@ <h2><a class="toc-backref" href="#id7">Contributors</a></h2>
448448
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
449449
<li>Antonio Espinosa</li>
450450
<li>Pedro M. Baeza</li>
451+
<li>Carlos Roca</li>
451452
</ul>
452453
</li>
453454
<li><a class="reference external" href="https://www.dynapps.be">DynApps NV</a>:<ul>
@@ -467,7 +468,7 @@ <h2><a class="toc-backref" href="#id8">Maintainers</a></h2>
467468
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
468469
mission is to support the collaborative development of Odoo features and
469470
promote its widespread use.</p>
470-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/bank-payment/tree/13.0/account_banking_sepa_credit_transfer">OCA/bank-payment</a> project on GitHub.</p>
471+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/bank-payment/tree/14.0/account_banking_sepa_credit_transfer">OCA/bank-payment</a> project on GitHub.</p>
471472
<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>
472473
</div>
473474
</div>

account_banking_sepa_credit_transfer/tests/test_sct.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ def create_invoice(
348348
reference,
349349
move_type="in_invoice",
350350
):
351+
partner_bank = cls.env.ref(partner_bank_xmlid)
352+
partner_bank.write({"company_id": cls.main_company.id})
351353
data = {
352354
"partner_id": partner_id,
353355
"reference_type": "none",
@@ -356,7 +358,7 @@ def create_invoice(
356358
"invoice_date": time.strftime("%Y-%m-%d"),
357359
"move_type": move_type,
358360
"payment_mode_id": cls.payment_mode.id,
359-
"partner_bank_id": cls.env.ref(partner_bank_xmlid).id,
361+
"partner_bank_id": partner_bank.id,
360362
"invoice_line_ids": [],
361363
}
362364
line_data = {

0 commit comments

Comments
 (0)