summaryrefslogtreecommitdiff
path: root/addons/process/process.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-05-16 17:33:09 +0200
committerXavier Morel <xmo@openerp.com>2012-05-16 17:33:09 +0200
commit98362c162489e57ce7cae288cf53cca85eab324a (patch)
treedd5f3fbff8665ae832ab22e6f9f0ec96ec328d00 /addons/process/process.py
parente30d3d99fe26b8f635ce31841cbc40808fd58a3b (diff)
parentad806cfa2ce4f14d2bbeeca3ed2a810d71eb993b (diff)
[FIX] context and domain of an action being added to a dashboard
* The action's context and domain are needed because they are explicitly ignored by those codepaths when the action is ultimately executed in the dashboard, and their data are needed: such flags as group_by_no_leaf may be set in the action's context, or things like the leads/opportunities filters which need to remain in the dashboard view. * On the other hand, some keys in the action's context may be detrimental to the correct behavior of the action in the dashboard, one such key (group) is the search_default_*: these default values for the search view may have been unset by the user before adding to the dashboard, we must not add them back. And since the dashboard will instantiate a full action/view manager for each action there will be (empty) search views which will try to make use of those defaults. As a result, add the action's context and domain to those of the research while *creating* the dashboard action/section, *but* filter out search_default_* context keys while doing so. If new problematic context keys are discovered, they should be added to the filter. bzr revid: xmo@openerp.com-20120516153309-3eq957p1pbj99fun
Diffstat (limited to 'addons/process/process.py')
0 files changed, 0 insertions, 0 deletions