From 7889d7e0fff49d095f8dab2c1bb4261c36de2632 Mon Sep 17 00:00:00 2001 From: Christophe Simonis <chs@odoo.com> Date: Tue, 7 Jun 2016 16:15:47 +0200 Subject: [PATCH] [FIX] web,auth_signup: prevent login autocapitalization Mobile virtual keyboards will often capitalize the first letter of an input text field, which is annoying as odoo logins are case-sensitive. This will no longer happen thanks to this new attribute. X-port of commit odoo/enterprise@b8632f8bb62c5507c67bf30ca184f06b3ddd1cb3 --- addons/auth_signup/views/auth_signup_login.xml | 4 ++-- addons/web/views/webclient_templates.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/auth_signup/views/auth_signup_login.xml b/addons/auth_signup/views/auth_signup_login.xml index a8efc4b3cc1f..b06271b2fcd8 100644 --- a/addons/auth_signup/views/auth_signup_login.xml +++ b/addons/auth_signup/views/auth_signup_login.xml @@ -13,7 +13,7 @@ <div class="form-group field-login"> <label for="login" class="control-label">Your Email</label> <input type="text" name="login" t-att-value="login" id="login" class="form-control" autofocus="autofocus" - required="required" t-att-readonly="'readonly' if only_passwords else None"/> + autocapitalize="off" required="required" t-att-readonly="'readonly' if only_passwords else None"/> </div> <div class="form-group field-name"> @@ -80,7 +80,7 @@ <div class="form-group field-login"> <label for="login" class="control-label">Your Email</label> <input type="text" name="login" t-att-value="login" id="login" class="form-control" - autofocus="autofocus" required="required"/> + autofocus="autofocus" required="required" autocapitalize="off"/> </div> </t> diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml index f0e455e95ce1..445729fdc46f 100644 --- a/addons/web/views/webclient_templates.xml +++ b/addons/web/views/webclient_templates.xml @@ -217,7 +217,7 @@ <div class="form-group field-login"> <label for="login" class="control-label">Email</label> - <input type="text" name="login" t-att-value="login" id="login" class="form-control" required="required" autofocus="autofocus"/> + <input type="text" name="login" t-att-value="login" id="login" class="form-control" required="required" autofocus="autofocus" autocapitalize="off"/> </div> <div class="form-group field-password"> -- GitLab