edit login form elements

This commit is contained in:
MohamedGad100 2024-09-17 12:00:09 +03:00
parent 035917dcf4
commit ae76e76c65
2 changed files with 15 additions and 1 deletions

View File

@ -17,7 +17,9 @@ This module modifies the web addon to provide Odex design and responsiveness.
'depends': ['web'],
#'auto_install': True,
'data': [
'views/webclient_templates.xml'],
'views/webclient_templates.xml',
'views/login_custom.xml',
],
'qweb': [
"static/src/xml/*.xml",
],

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="custom_login_inherit" inherit_id="web.login">
<xpath expr="//div[@class='form-group field-login']/label[@for='login']" position="replace">
<label for="login">User Name</label>
</xpath>
<xpath expr="//div[@class='form-group field-login']/input[@name='login']" position="attributes">
<attribute name="placeholder">User Name</attribute>
</xpath>
</template>
</odoo>