[FIX]warning: In warning module onchange_partner_id has some re assignation of values

lp bug: https://launchpad.net/bugs/920530 fixed

bzr revid: mma@tinyerp.com-20121128061754-bkccr0wdts8jygr0
This commit is contained in:
Amit Dodiya (OpenERP) 2012-11-28 11:47:54 +05:30 committed by Mayur Maheshwari (OpenERP)
parent 09eccd07dc
commit e9cb8f9a6f
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ class account_invoice(osv.osv):
'message': message
}
result = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id,
date_invoice=False, payment_term=False, partner_bank_id=False)
date_invoice, payment_term, partner_bank_id, company_id)
if result.get('warning',False):
warning['title'] = title and title +' & '+ result['warning']['title'] or result['warning']['title']