Skip to content

Commit d9945af

Browse files
committed
[MIG] : Migration to 16.0
1 parent 6581dd8 commit d9945af

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

l10n_ch_base_bank/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"name": "Switzerland - Bank type",
66
"summary": "Types and number validation for swiss electronic pmnt. DTA, ESR",
7-
"version": "14.0.1.0.3",
7+
"version": "16.0.1.0.0",
88
"author": "Camptocamp,Odoo Community Association (OCA)",
99
"category": "Localization",
1010
"website": "https://github.com/OCA/l10n-switzerland",

l10n_ch_base_bank/readme/CONTRIBUTORS.rst

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
* Akim Juillerat <akim.juillerat@camptocamp.com>
88
* Iryna Vyshnevska <i.vyshnevska@mobilunity.com>
99
* Simone Vanin <simone.vanin@agilebg.com>
10+
* Alberto Nieto <alberto.nieto@braintec.com>

l10n_ch_base_bank/tests/test_bank.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
44
from odoo import exceptions
55
from odoo.tests import tagged
6-
from odoo.tests.common import Form, SavepointCase
6+
from odoo.tests.common import Form, TransactionCase
77
from odoo.tools import mute_logger
88

99
CH_SUBSCRIPTION = "01-162-8" # partner ISR subsr num we register under postal
@@ -15,7 +15,7 @@
1515

1616

1717
@tagged("post_install", "-at_install")
18-
class TestBank(SavepointCase):
18+
class TestBank(TransactionCase):
1919
@classmethod
2020
def setUpClass(cls):
2121
super().setUpClass()

l10n_ch_base_bank/tests/test_bank_type.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
CH_SUBSCRIPTION = "01-162-8"
77

88

9-
class TestBankType(common.SavepointCase):
9+
class TestBankType(common.TransactionCase):
1010
def test_is_bank_account_with_isr_issuer(self):
1111
bank = self.env["res.bank"].create(
1212
{"name": "BCV", "bic": "BCVLCH2LXXX", "clearing": "234234"}

l10n_ch_base_bank/tests/test_create_invoice.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Copyright 2012-2019 Camptocamp
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
33
from odoo import exceptions
4-
from odoo.tests.common import Form, SavepointCase
4+
from odoo.tests.common import Form, TransactionCase
55

66

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

l10n_ch_base_bank/tests/test_search_invoice.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
@tagged("post_install", "-at_install")
9-
class TestSearchmove(common.SavepointCase):
9+
class TestSearchmove(common.TransactionCase):
1010
@classmethod
1111
def setUpClass(cls):
1212
super().setUpClass()
@@ -37,13 +37,13 @@ def setUpClass(cls):
3737
)
3838

3939
def new_form(self):
40-
inv = Form(self.env["account.move"].with_context(default_type="out_invoice"))
41-
# inv = Form(
42-
# self.env['account.move'],
43-
# view='account.view_move_form'
44-
# )
40+
inv = Form(
41+
self.env["account.move"].with_context(
42+
default_move_type="out_invoice",
43+
default_journal_id=self.journal.id,
44+
),
45+
)
4546
inv.partner_id = self.partner
46-
inv.journal_id = self.journal
4747
return inv
4848

4949
def assert_find_ref(self, ref, operator, value):
@@ -106,7 +106,7 @@ def test_search_other_field(self):
106106
move = inv_form.save()
107107

108108
found = self.env["account.move"].search([("partner_id", "=", self.partner.id)])
109-
self.assertEqual(move, found)
109+
self.assertIn(move, found)
110110

111111
def test_search_unary_operator(self):
112112
inv_form = self.new_form()

0 commit comments

Comments
 (0)