mirror of https://github.com/OCA/web.git
[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.pull/2780/head
parent
8f16b9d648
commit
e663a865b9
|
@ -7,7 +7,7 @@
|
|||
{
|
||||
"name": "Clickable many2one fields for tree views",
|
||||
"summary": "Open the linked resource when clicking on their name",
|
||||
"version": "14.0.1.0.1",
|
||||
"version": "14.0.1.0.2",
|
||||
"category": "Hidden",
|
||||
"website": "https://github.com/OCA/web",
|
||||
"author": "Therp BV, "
|
||||
|
|
|
@ -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