mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[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.
This commit is contained in:
committed by
Carlos Roca
parent
c774a218d1
commit
fca19aab78
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Clickable many2one fields for tree views",
|
"name": "Clickable many2one fields for tree views",
|
||||||
"summary": "Open the linked resource when clicking on their name",
|
"summary": "Open the linked resource when clicking on their name",
|
||||||
"version": "14.0.1.0.1",
|
"version": "14.0.1.0.2",
|
||||||
"category": "Hidden",
|
"category": "Hidden",
|
||||||
"website": "https://github.com/OCA/web",
|
"website": "https://github.com/OCA/web",
|
||||||
"author": "Therp BV, "
|
"author": "Therp BV, "
|
||||||
|
|||||||
@@ -58,7 +58,9 @@ odoo.define("web_tree_many2one_clickable.many2one_clickable", function (require)
|
|||||||
res_id: self.value.res_id,
|
res_id: self.value.res_id,
|
||||||
views: [[false, "form"]],
|
views: [[false, "form"]],
|
||||||
target: "target",
|
target: "target",
|
||||||
context: self.attrs.context || {},
|
context: self.record.getContext({
|
||||||
|
additionalContext: self.attrs.context || {},
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.$el.append($a);
|
this.$el.append($a);
|
||||||
|
|||||||
Reference in New Issue
Block a user