Skip to content

Commit 42b788c

Browse files
author
Iryna Vyshnevska
committed
fixup! [IMP] updates for partenr_banks_to_show method
1 parent bd64974 commit 42b788c

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

l10n_ch_base_bank/models/bank.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,11 @@ def onchange_acc_number_set_swiss_bank(self):
378378

379379
@api.onchange('ccp')
380380
def onchange_ccp_set_acc_number(self):
381-
# If ccp changes and it's a postal bank update acc_number to ccp
382-
# we don't want make acc_number as computed to have possibility set it
383-
# manually and also avoid to shadow other logic on acc_number if exist
381+
"""
382+
If ccp changes and it's a postal bank update acc_number to ccp
383+
we don't want make acc_number as computed to have possibility set it
384+
manually and also avoid to shadow other logic on acc_number if exist
385+
"""
384386
if self.acc_type == 'iban':
385387
return
386388

l10n_ch_base_bank/models/invoice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright 2012-2019 Camptocamp
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3-
from odoo import models, api, fields, _
3+
from odoo import models, api, _
44
from odoo.tools import mod10r
55
from odoo import exceptions
66

l10n_ch_base_bank/tests/test_search_invoice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def setUp(self):
1818
bank_account = self.env['res.partner.bank'].create({
1919
'partner_id': self.company.partner_id.id,
2020
'bank_id': bank.id,
21-
'acc_number': '01-1234-1',
21+
'acc_number': 'Bank/CCP 01-1234-1',
2222
})
2323
self.company.partner_id.bank_ids = bank_account
2424
self.partner = self.env['res.partner'].create(
@@ -29,7 +29,7 @@ def setUp(self):
2929
'type': 'bank',
3030
'code': 'BNK42',
3131
'bank_id': bank.id,
32-
'bank_acc_number': '10-8060-7',
32+
'bank_acc_number': '01-1234-1',
3333
})
3434

3535
def assert_find_ref(self, reference, operator, value):

0 commit comments

Comments
 (0)