From 2a536f7c8847773708766b2165352e99609b029d Mon Sep 17 00:00:00 2001 From: Camila Vives Date: Mon, 27 Jan 2025 16:24:47 -0300 Subject: [PATCH] [IMP] base_multi_store: Context overridden using dict --- base_multi_store/models/res_store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_multi_store/models/res_store.py b/base_multi_store/models/res_store.py index 368e8db..ab3c3a6 100644 --- a/base_multi_store/models/res_store.py +++ b/base_multi_store/models/res_store.py @@ -64,5 +64,5 @@ def name_search(self, name='', args=None, operator='ilike', limit=100): stores = self.env.user.store_id + self.env.user.store_ids args = (args or []) + [('id', 'in', stores.ids)] newself = newself.sudo() - return super(ResStore, newself.with_context(context)).name_search( + return super(ResStore, newself.with_context(**context)).name_search( name=name, args=args, operator=operator, limit=limit)