Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
9066 Lượt xem

I'm experiencing Odoo v8 and I will login with Domain Username, not with email. So can you give me detailed information to how change just the label? The authentication is just fine, but with label "E-mail" may be kind of some misunderstanding to the other users.

I'm not a programmer, so a detailed information could be nice.

Thank you!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Go through these steps:

  1. Locate Menu User Interface/Views [Setting->Technical->User Interface->Views]

  2. Search Login

  3. Edit this template 

<?xml version="1.0"?> <t name="Login" t-name="web.login"> <t t-call="web.login_layout"> <form class="oe_login_form" role="form" t-attf-action="/web/login{{ '?debug' if debug else '' }}" method="post" onsubmit="this.action = this.action + location.hash"> <t t-call="web.database_select"/> <div class="form-group field-login"> <label for="login" class="control-label">Email/Domain</label>

<input type="text" name="login" t-att-value="login" id="login" class="form-control" required="required" autofocus="autofocus"/> </div> <div class="form-group field-password"> <label for="password" class="control-label">Password</label> <input type="password" name="password" id="password" class="form-control" required="required" t-att-autofocus="'autofocus' if login else None"/> </div> <p class="alert alert-danger" t-if="error"> <t t-esc="error"/> </p> <p class="alert alert-success" t-if="message"> <t t-esc="message"/> </p> <input type="hidden" name="redirect" t-att-value="redirect"/> <div class="clearfix oe_login_buttons"> <button type="submit" class="btn btn-primary">Log in</button> </div> </form> </t> </t>

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

The solution proposed overwrites the core. Is there any app to do this?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thanks a lot Mr. Sharma, you solved my question.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 22
1696
0
thg 1 21
2805
3
thg 1 20
6693
0
thg 11 19
4872
2
thg 5 25
2907