Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
12519 Widoki

Hii,
We are using Google OAuth2 Authentication for Odoo users to login. Its working ok, users can login to odoo by using their gmail id and password. There is new link added on Odoo login page "Login with Google" and its working.
But on the odoo login page, Email, Password and Log in still appears that is odoo default login option, that is not required. 
We want our odoo users should login by Gmail accounts only.
Please guide how to remove [ Email, Password and Log in] from odoo login page and only appear "Login with Google".
Thanks,    

Awatar
Odrzuć

Has anyone got a solution for this? using odoo v13 now.

We are interested in doing the same.  There are huge benefits of using a central authentication authority rather than local authentication, so hopefully there's an easy fix / customization for this somewhere. We are on Odoo 11 Enterprise Edition.

Hi there


Anyone knows if it is possible?

Refgards

Najlepsza odpowiedź

Enable Developer Settings: "Settings" > "Activate The Developer Mode"

Find The Login Template: "Settings" > "Technical" (This is on the top bar) > "User Interface > Views" > Search for "Login"

On the template page and comment out the following lines:

<div class="form-group field-login">
<label for="login">Email</label>
<input type="text" placeholder="Email" name="login" t-att-value="login" id="login" t-attf-class="form-control #{'form-control-sm' if form_small else ''}" required="required" autofocus="autofocus" autocapitalize="off"/>
</div>

<div class="form-group field-password"> <label for="password">Password</label>
<input type="password" placeholder="Password" name="password" id="password" t-attf-class="form-control #{'form-control-sm' if form_small else ''}" required="required" autocomplete="current-password" t-att-autofocus="'autofocus' if login else None" maxlength="4096"/> </div> <button type="submit" class="btn btn-primary btn-block">Log in</button><t t-if="debug"> <button type="submit" name="redirect" value="/web/become" class="btn btn-link btn-sm btn-block">Log in as superuser</button> </t>
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
maj 25
5037
1
cze 25
846
0
paź 21
3258
1
sty 25
1881
4
maj 24
7100