forked from Techsystech/web
[14.0] [FIX] Clicking on a field with context
Clicking on a field with context like this `{'default_product_id': product_id}` doesn't throws an error.14.0
parent
c54728e238
commit
a140646181
|
@ -58,7 +58,9 @@ odoo.define("web_tree_many2one_clickable.many2one_clickable", function (require)
|
|||
res_id: self.value.res_id,
|
||||
views: [[false, "form"]],
|
||||
target: "target",
|
||||
context: self.attrs.context || {},
|
||||
context: self.record.getContext({
|
||||
additionalContext: self.attrs.context || {},
|
||||
}),
|
||||
});
|
||||
});
|
||||
this.$el.append($a);
|
||||
|
|
Loading…
Reference in New Issue