[FIX] keyword args are not supported by the model RPC proxies lib, switch search() call to *args long form

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

bzr revid: xmo@openerp.com-20111124154601-h7zqxub2n5y8z7nv
This commit is contained in:
Xavier Morel 2011-11-24 16:46:01 +01:00
parent aa6b926e74
commit 86c553cdbc
1 changed files with 1 additions and 1 deletions

View File

@ -1386,7 +1386,7 @@ class Export(View):
context = req.session.eval_context(req.context)
Model = req.session.model(model)
ids = ids or Model.search(domain, context=context)
ids = ids or Model.search(domain, 0, False, False, context)
field_names = map(operator.itemgetter('name'), fields)
import_data = Model.export_data(ids, field_names, context).get('datas',[])