Misc flake8

This commit is contained in:
Sandy Carter
2014-09-08 15:24:37 -04:00
parent c978f11306
commit 593866a692
3 changed files with 8 additions and 8 deletions

View File

@@ -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,

View File

@@ -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

View File

@@ -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