Skip to content

Commit

Permalink
[IMP] shopfloor_base: Propagate the shopfloor.app to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mt-software-de committed Dec 12, 2024
1 parent 314e7bf commit ad837d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shopfloor_base/actions/base_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def get_actions_for(
and hasattr(component_instance.work, attr_name)
}
kwargs.update(kw)
if component_instance.collection._name == "shopfloor.app":
kwargs["app"] = component_instance.collection
actions_collection = collection or get_actions_collection(component_instance.env)
work = WorkContext(collection=actions_collection, **kwargs)
return work.component(usage=usage)
Expand Down

0 comments on commit ad837d9

Please sign in to comment.