diff --git a/account_banking_camt/__openerp__.py b/account_banking_camt/__openerp__.py index e7950c991..73a87dcf1 100644 --- a/account_banking_camt/__openerp__.py +++ b/account_banking_camt/__openerp__.py @@ -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, diff --git a/account_banking_nl_multibank/__init__.py b/account_banking_nl_multibank/__init__.py index fa073aa3a..e924ae638 100644 --- a/account_banking_nl_multibank/__init__.py +++ b/account_banking_nl_multibank/__init__.py @@ -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 . # ############################################################################## -import multibank -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +from . import multibank diff --git a/account_banking_partner_journal_account/res_partner.py b/account_banking_partner_journal_account/res_partner.py index 04315f88b..d83d8af89 100644 --- a/account_banking_partner_journal_account/res_partner.py +++ b/account_banking_partner_journal_account/res_partner.py @@ -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