Skip to content

Commit

Permalink
[IMP] base_multi_store: Context overridden using dict
Browse files Browse the repository at this point in the history
  • Loading branch information
cav-adhoc committed Feb 5, 2025
1 parent 144c333 commit 2a536f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_multi_store/models/res_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2a536f7

Please sign in to comment.