[REF] account: Changed search option for company id in defaults.

bzr revid: uco@tinyerp.com-20110620113532-bke50mz0cwjvt6sj
This commit is contained in:
Ujjvala Collins (OpenERP) 2011-06-20 17:05:32 +05:30
parent d3ec32a744
commit 907846f630
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class account_invoice_refund(osv.osv_memory):
(inv_type == 'out_refund') and 'sale' or \
(inv_type == 'in_invoice') and 'purchase_refund' or \
(inv_type == 'in_refund') and 'purchase'
journal = obj_journal.search(cr, uid, [('type', '=', type), ('company_id','child_of',[company_id])], limit=1, context=context)
journal = obj_journal.search(cr, uid, [('type', '=', type), ('company_id','=',company_id)], limit=1, context=context)
return journal and journal[0] or False
_defaults = {