Skip to content
Snippets Groups Projects
Commit 22e99755 authored by Martin Trigaux's avatar Martin Trigaux
Browse files

Merge pull request #783 from acsone/7.0-bugfix-l10n_be_coda_lga

[fIX] l10n_be_coda : do not try to create res.partner.bank without partner_id (required field)
parents 521989f9 50bfa4e3
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ class account_bank_statement_line(osv.osv):
"""
Same as create function above, but for write function
"""
if 'partner_id' in vals:
if vals.get('partner_id'):
for line in self.pool.get('account.bank.statement.line').browse(cr, uid, ids, context=context):
if line.coda_account_number:
acc_number_ids = self.pool.get('res.partner.bank').search(cr, uid, [('acc_number', '=', line.coda_account_number)])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment