Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install auth_oidc on Odoo 18.0 : #772

Open
brenard opened this issue Mar 9, 2025 · 0 comments
Open

Failed to install auth_oidc on Odoo 18.0 : #772

brenard opened this issue Mar 9, 2025 · 0 comments
Labels

Comments

@brenard
Copy link

brenard commented Mar 9, 2025

Module

auth_oidc

Describe the bug

Failed to install auth_oidc module on fresh installation of Odoo 18.0 community (on Debian Bookworm host, using nightly.odoo.com repository, installed version : 18.0.20250309). When I try to install the module via the UI, I have the following error :

Error while importing module 'auth_oidc'.

 while parsing /tmp/tmpntod9ffv/auth_oidc/views/auth_oauth_provider.xml:3
Error while validating view near:

<form string="arch">
                    <sheet>
                        <group>
                            <field name="name"/>

Field "flow" does not exist in model "auth.oauth.provider"

View error context:
{'file': '/tmp/tmpntod9ffv/auth_oidc/views/auth_oauth_provider.xml',
 'line': 2,
 'name': 'auth.oidc.provider.form',
 'view': ir.ui.view(2572,),
 'view.model': 'auth.oauth.provider',
 'view.parent': ir.ui.view(2564,),
 'xmlid': 'view_oidc_provider_form'}

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Download latest source code zip of this repository (https://github.com/OCA/server-auth/archive/refs/heads/18.0.zip)
  2. Extract it and create a zip archive of the auth_oidc directory
  3. Connect to Odoo
  4. Enable developer mode
  5. Go to Apps and click on Import Module button in tools bar
  6. Select ZIP file
  7. Check the Force init checkbox
  8. Click on the Install button

Expected behavior
The module could be installed without error.

Additional context
By default, the Odoo auth_oauth module is installed. I firstly try to configure it, but the implicit flow is not compatible with my OIDC provider (Authentic2). I also try to uninstall it before installing auth_oidc module, but its automatically re-enabled and I always have the same error.

@brenard brenard added the bug label Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant