[IMP] account : changed ids into list of ids

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

bzr revid: bde@tinyerp.com-20110720055900-o3uvf439owzt3e23
This commit is contained in:
Simone Orsi 2011-07-20 11:29:00 +05:30 committed by Bharat (OpenERP)
parent d844fd133b
commit 29ae44a85e
1 changed files with 5 additions and 0 deletions

View File

@ -536,8 +536,13 @@ class account_account(osv.osv):
return True
def write(self, cr, uid, ids, vals, context=None):
if context is None:
context = {}
if not ids:
return True
if isinstance(ids, (int, long)):
ids = [ids]
# Dont allow changing the company_id when account_move_line already exist
if 'company_id' in vals: