bzr revid: fp@tinyerp.com-20110917151633-limcvnhpte1ufhn9
This commit is contained in:
Fabien Pinckaers 2011-09-17 17:16:33 +02:00
commit 58a25be03d
1 changed files with 5 additions and 0 deletions

View File

@ -543,8 +543,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: