From ba08cb2bf71df24d533fb222041c6ae01259c920 Mon Sep 17 00:00:00 2001 From: Alessio Renda Date: Fri, 13 Dec 2024 17:08:09 +0100 Subject: [PATCH] [IMP] web_m2x_options: use the correct context in search function --- web_m2x_options/static/src/js/form.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web_m2x_options/static/src/js/form.js b/web_m2x_options/static/src/js/form.js index a4755e27f..9d18cf52e 100644 --- a/web_m2x_options/static/src/js/form.js +++ b/web_m2x_options/static/src/js/form.js @@ -127,7 +127,10 @@ odoo.define("web_m2x_options.web_m2x_options", function (require) { self.field_color = self.nodeOptions.field_color; self.colors = self.nodeOptions.colors; - var context = self.record.getContext(self.recordParams); + const context = Object.assign( + self.record.getContext(self.recordParams), + self.additionalContext + ); var domain = self.record.getDomain(self.recordParams); var blacklisted_ids = self._getSearchBlacklist();