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

Add import_compat in context when export_all #1

Open
wants to merge 1 commit into
base: 7.0-web_exportall
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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