Browse Source

[UPD] migration to 16.0

16.0
Nicolas JEUDY 2 years ago
parent
commit
48450d4800
  1. 2
      galicea_openid_connect/__manifest__.py
  2. 2
      galicea_openid_connect/models/client.py
  3. 4
      galicea_openid_connect/views/views.xml

2
galicea_openid_connect/__manifest__.py

@ -6,7 +6,7 @@
"maintainer": "nj.0k.io, Galicea", "maintainer": "nj.0k.io, Galicea",
"website": "https://nj.0k.io", "website": "https://nj.0k.io",
"category": "Technical Settings", "category": "Technical Settings",
"version": "14.0.0.0",
"version": "16.0.0.0",
"depends": ["web"], "depends": ["web"],
"external_dependencies": {"python": ["jwcrypto", "cryptography"]}, "external_dependencies": {"python": ["jwcrypto", "cryptography"]},
"data": [ "data": [

2
galicea_openid_connect/models/client.py

@ -53,7 +53,7 @@ class Client(models.Model):
} }
) )
# Do not include in the "Pending invitations" list # Do not include in the "Pending invitations" list
system_user.sudo(system_user.id)._update_last_login()
system_user._update_last_login()
values["system_user_id"] = system_user.id values["system_user_id"] = system_user.id
return super(Client, self).create(values) return super(Client, self).create(values)

4
galicea_openid_connect/views/views.xml

@ -24,8 +24,8 @@
<field name="create_date" invisible="1"/> <field name="create_date" invisible="1"/>
<field name="client_id" <field name="client_id"
attrs="{'invisible':[('create_date', '==', False)]}" /> attrs="{'invisible':[('create_date', '==', False)]}" />
<label for="secret" class="oe_read_only" string="Client Secret" />
<field class="oe_read_only" name="secret" nolabel="1" />
<label for="secret" string="Client Secret" />
<field name="secret" nolabel="1" />
<field name="auth_redirect_uri" /> <field name="auth_redirect_uri" />
<field name="allow_password_grant" /> <field name="allow_password_grant" />
</group> </group>

Loading…
Cancel
Save