[FIX] account_invoice.py: use elif instead of if

bzr revid: jap@tinyerp.com-20120119132153-6r38nl72v8wl1juo
This commit is contained in:
Jagdish Panchal (Open ERP) 2012-01-19 18:51:53 +05:30
parent ffd23004f6
commit 7727833072
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ class account_invoice(osv.osv):
for node in doc.xpath("//field[@name='partner_bank_id']"):
if context['type'] == 'in_refund':
node.set('domain', "[('partner_id.ref_companies', 'in', [company_id])]")
if context['type'] == 'out_refund':
elif context['type'] == 'out_refund':
node.set('domain', "[('partner_id', '=', partner_id)]")
res['arch'] = etree.tostring(doc)