Skip to content

Commit

Permalink
Merge PR #960 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Feb 6, 2025
2 parents b977035 + 8895807 commit f62232e
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 f62232e

Please sign in to comment.