mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix settings function callback (#5259)
* fix settings function callback * merge instance filters and passed keys
This commit is contained in:
parent
20b59c3575
commit
df77305d60
@ -192,7 +192,7 @@ class BaseInvenTreeSetting(models.Model):
|
||||
kwargs: Keyword arguments to pass to the function
|
||||
"""
|
||||
# Get action
|
||||
setting = self.get_setting_definition(self.key, *args, **kwargs)
|
||||
setting = self.get_setting_definition(self.key, *args, **{**self.get_filters_for_instance(), **kwargs})
|
||||
settings_fnc = setting.get(reference, None)
|
||||
|
||||
# Execute if callable
|
||||
|
Loading…
Reference in New Issue
Block a user