3
0
Fork 0

[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
Eduardo De Miguel 2022-02-21 17:56:33 +01:00
parent c54728e238
commit a140646181
1 changed files with 3 additions and 1 deletions

View File

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