Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Add import_compat in context when export_all
Browse files Browse the repository at this point in the history
  • Loading branch information
Laetitia Gangloff committed Apr 27, 2016
1 parent b48832c commit 156cfa8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web_exportall/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def index(self, req, data, token):
domain = data_dict.get('domain', False)
import_compat = data_dict.get('import_compat', False)
context = data_dict.get('context', req.context)
context['import_compat'] = import_compat
Model = req.session.model(model)
ids = itter_ids(Model.search(domain, 0, False, False, context))

Expand Down Expand Up @@ -153,6 +154,7 @@ def index(self, req, data, token):
domain = data_dict.get('domain', False)
import_compat = data_dict.get('import_compat', False)
context = data_dict.get('context', req.context)
context['import_compat'] = import_compat

Model = req.session.model(model)
ids = itter_ids(Model.search(domain, 0, False, False, context))
Expand Down

0 comments on commit 156cfa8

Please sign in to comment.