mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Misc flake8
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
# All Rights Reserved
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# it under the terms of the GNU Affero General Public License as published
|
||||
# by the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
# garantees and support are strongly adviced to contract EduSense BV
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# it under the terms of the GNU Affero General Public License as published
|
||||
# by the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
@@ -24,6 +24,5 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
import multibank
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
from . import multibank
|
||||
|
||||
@@ -63,6 +63,7 @@ class ResPartner(orm.Model):
|
||||
res = super(ResPartner, self).def_journal_account_bank_incr(
|
||||
cr, uid, ids, context=context)
|
||||
for partner in self.browse(cr, uid, ids, context=context):
|
||||
if partner.property_account_receivable_bank_id:
|
||||
res[partner.id] = partner.property_account_receivable_bank_id.id
|
||||
bank = partner.property_account_receivable_bank_id
|
||||
if bank:
|
||||
res[partner.id] = bank.id
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user