Skip to content

Commit

Permalink
[IMP] spp_openid_vci: improve creation of user role
Browse files Browse the repository at this point in the history
  • Loading branch information
reichie020212 committed Dec 24, 2024
1 parent 026f49d commit afe730c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spp_openid_vci/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def _issue_vc_qr(self, vci_issuer):

rec.vc_qr_code = qr_img

admission_form = rec.env.ref("spp_openid_vci.action_generate_id_card").report_action(self, config=False)
admission_form = self.env.ref("spp_openid_vci.action_generate_id_card").report_action(self, config=False)

return admission_form

def _get_vc_issue_file_name(self):
Expand Down
4 changes: 4 additions & 0 deletions spp_openid_vci/security/security_access.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@
<record id="generate_vc" model="res.groups">
<field name="name">Generator</field>
<field name="category_id" ref="spp_openid_vci.verifiable_credential_access_module" />
<field
name="users"
eval="[Command.link(ref('base.user_root')), Command.link(ref('base.user_admin'))]"
/>
</record>
</odoo>

0 comments on commit afe730c

Please sign in to comment.