Skip to content

Commit f62232e

Browse files
committed
Merge PR #960 into 14.0
Signed-off-by simahawk
2 parents b977035 + 8895807 commit f62232e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

shopfloor_base/services/service.py

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ def __init__(self, work_context):
2828
# User private attributes to not mess up w/ public endpoints
2929
self._profile = getattr(self.work, "profile", self.env["shopfloor.profile"])
3030
self._menu = getattr(self.work, "menu", self.env["shopfloor.menu"])
31+
app = self.env["shopfloor.app"]
32+
if self.collection._name == app._name:
33+
app = self.collection
34+
self.work.app = app
35+
self.work._propagate_kwargs.append("app")
3136

3237
def _get_api_spec(self, **params):
3338
return ShopfloorRestServiceAPISpec(self, **params)

0 commit comments

Comments
 (0)