diff options
| author | Christophe Monniez <moc@odoo.com> | 2018-08-19 12:42:59 +0200 |
|---|---|---|
| committer | Christophe Monniez <moc@odoo.com> | 2018-09-18 13:54:19 +0200 |
| commit | 83e460b8daf4b3d0a9e05ba93aa57f32d74b5f4f (patch) | |
| tree | 19455f829cd552d1b528c5bbafe6a161d4cbda40 /addons | |
| parent | ed2773e381585ee3fd0c6b90e6f97f8f1237e6f4 (diff) | |
[IMP] web: add a phone input to the database manager
Task: 1879675
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/web/controllers/main.py | 2 | ||||
| -rw-r--r-- | addons/web/views/database_manager.html | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 94d84399509..9c219b40798 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -701,7 +701,7 @@ class Database(http.Controller): raise Exception(_('Invalid database name. Only alphanumerical characters, underscore, hyphen and dot are allowed.')) # country code could be = "False" which is actually True in python country_code = post.get('country_code') or False - dispatch_rpc('db', 'create_database', [master_pwd, name, bool(post.get('demo')), lang, password, post['login'], country_code]) + dispatch_rpc('db', 'create_database', [master_pwd, name, bool(post.get('demo')), lang, password, post['login'], country_code, post['phone']]) request.session.authenticate(name, post['login'], password) return http.local_redirect('/web/') except Exception as e: diff --git a/addons/web/views/database_manager.html b/addons/web/views/database_manager.html index 32282098397..5ffef995f96 100644 --- a/addons/web/views/database_manager.html +++ b/addons/web/views/database_manager.html @@ -89,6 +89,12 @@ </div> </div> </div> + <div class="form-group row"> + <label for="phone" class="col-md-4 col-form-label">Phone number</label> + <div class="col-md-8 input-group"> + <input id="phone" type="tel" name="phone" class="form-control" autocomplete="off"/> + </div> + </div> <div class="form-row"> <div class="col-lg-6 form-group"> <label for="lang" class="col-form-label">Language</label> |
