mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MOD] Pass context defined on tree view field
When for instance a form_view_ref context is defined on a field in a specific tree view, the context should also be passed when opening the form.
This commit is contained in:
@@ -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.0",
|
||||
"version": "14.0.1.0.1",
|
||||
"category": "Hidden",
|
||||
"website": "https://github.com/OCA/web",
|
||||
"author": "Therp BV, "
|
||||
|
||||
@@ -58,6 +58,7 @@ 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 || {},
|
||||
});
|
||||
});
|
||||
this.$el.append($a);
|
||||
|
||||
Reference in New Issue
Block a user