[FIX] account_invoice.py: use elif instead of if
bzr revid: jap@tinyerp.com-20120119132153-6r38nl72v8wl1juo
This commit is contained in:
parent
ffd23004f6
commit
7727833072
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue