CLIENT,KERNEL: use only context for search
bzr revid: ced-abd13545cf3394eb537405e0b31db6516607517a
This commit is contained in:
@@ -126,7 +126,7 @@ class account_account(osv.osv):
|
||||
_name = "account.account"
|
||||
_description = "Account"
|
||||
|
||||
def search(self, cr, uid, args, offset=0, limit=None, order=None):
|
||||
def search(self, cr, uid, args, offset=0, limit=None, order=None, context={}):
|
||||
pos = 0
|
||||
while pos<len(args):
|
||||
if args[pos][0]=='journal_id':
|
||||
@@ -139,7 +139,7 @@ class account_account(osv.osv):
|
||||
ids1 += map(lambda x: x.id, jour.account_control_ids)
|
||||
args[pos] = ('id','in',ids1)
|
||||
pos+=1
|
||||
return super(account_account,self).search(cr, uid, args, offset, limit, order)
|
||||
return super(account_account,self).search(cr, uid, args, offset, limit, order, context=context)
|
||||
|
||||
def _credit(self, cr, uid, ids, field_name, arg, context={}):
|
||||
acc_set = ",".join(map(str, ids))
|
||||
|
||||
Reference in New Issue
Block a user