Skip to content

Commit

Permalink
fixup! sf_mobile_auth_api_key: ease access to groups
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed Jan 31, 2022
1 parent e65dcc9 commit f0fbafe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions shopfloor_mobile_base_auth_api_key/models/shopfloor_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ def _allowed_api_key_ids(self):
return self.auth_api_key_group_ids.auth_api_key_ids.ids

def action_manage_api_key_groups(self):
action = self.env.ref(
"auth_api_key_group.auth_api_key_group_act_window"
).read()[0]
xid = "auth_api_key_group.auth_api_key_group_act_window"
action = self.env["ir.actions.act_window"]._for_xml_id(xid)
action["domain"] = [("id", "in", self.auth_api_key_group_ids.ids)]
return action

0 comments on commit f0fbafe

Please sign in to comment.