mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Fix settings function callback (#5259)
* fix settings function callback * merge instance filters and passed keys
This commit is contained in:
		@@ -192,7 +192,7 @@ class BaseInvenTreeSetting(models.Model):
 | 
				
			|||||||
            kwargs: Keyword arguments to pass to the function
 | 
					            kwargs: Keyword arguments to pass to the function
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        # Get action
 | 
					        # 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)
 | 
					        settings_fnc = setting.get(reference, None)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Execute if callable
 | 
					        # Execute if callable
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user