[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:
parent
d844fd133b
commit
29ae44a85e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue