From 29ae44a85edf961a407740308f3049a4b16dcb2a Mon Sep 17 00:00:00 2001 From: Simone Orsi <> Date: Wed, 20 Jul 2011 11:29:00 +0530 Subject: [PATCH] [IMP] account : changed ids into list of ids lp bug: https://launchpad.net/bugs/812723 fixed bzr revid: bde@tinyerp.com-20110720055900-o3uvf439owzt3e23 --- addons/account/account.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/account/account.py b/addons/account/account.py index 03a9b628922..323055db0c8 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -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: