[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.
pull/1961/head
Raf Ven 2021-06-23 10:22:52 +02:00
parent d89c7824fa
commit 83bb604537
1 changed files with 1 additions and 0 deletions

View File

@ -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);