[FIX] Dashboard: merge domain & context of board action to loaded action
bzr revid: fme@openerp.com-20111214112814-sogxz3no8wh0fbai
This commit is contained in:
parent
5fd4033788
commit
2d3a702308
|
@ -149,10 +149,11 @@ openerp.web.form.DashBoard = openerp.web.form.Widget.extend({
|
|||
view_mode = action_attrs.view_mode;
|
||||
|
||||
if (action_attrs.context) {
|
||||
action.context = action_attrs.context;
|
||||
action.context = _.extend((action.context || {}), action_attrs.context);
|
||||
}
|
||||
if (action_attrs.domain) {
|
||||
action.domain = action_attrs.domain;
|
||||
action.domain = action.domain || [];
|
||||
action.domain.unshift.apply(action.domain, action_attrs.domain);
|
||||
}
|
||||
var action_orig = _.extend({ flags : {} }, action);
|
||||
|
||||
|
|
Loading…
Reference in New Issue