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 Feb 6, 2025
1 parent b977035 commit 8895807
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shopfloor_base/services/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ def __init__(self, work_context):
# User private attributes to not mess up w/ public endpoints
self._profile = getattr(self.work, "profile", self.env["shopfloor.profile"])
self._menu = getattr(self.work, "menu", self.env["shopfloor.menu"])
app = self.env["shopfloor.app"]
if self.collection._name == app._name:
app = self.collection
self.work.app = app
self.work._propagate_kwargs.append("app")

def _get_api_spec(self, **params):
return ShopfloorRestServiceAPISpec(self, **params)
Expand Down

0 comments on commit 8895807

Please sign in to comment.