[FIX] base: make demo install warning more prominent

Users may not notice the warning and carry the risk of irreversibly
damaging their production database. Making the warning message more
frightening should help avoid this.

closes odoo/odoo#29128
This commit is contained in:
Olivier Dony
2018-11-29 11:13:39 +00:00
parent 3f8519f1a4
commit 52a970bce3
2 changed files with 42 additions and 14 deletions
+18 -4
View File
@@ -11,11 +11,25 @@
<field name="model">ir.demo</field>
<field name="arch" type="xml">
<form>
<p>Demo data should only be used on test databases. Once they are loaded, they cannot be removed.</p>
<p>Are you sure you want to load demo data?</p>
<div class="row container">
<div class="col-12 text-center">
<div class="card text-white bg-danger mb-3 w-75 ml64">
<div class="card-header">
<span class="fa fa-2x fa-warning" t-translation="off">&amp;nbsp;</span>
<span class="text-white text-uppercase">Danger Zone</span>
</div>
<div class="card-body bg-transparent text-center">
<p>Demo data should only be used on test databases!
Once they are loaded, they cannot be removed!</p>
<p>Please confirm that you want to <b>irreversibly</b> make this database a demo database.</p>
</div>
</div>
</div>
</div>
<footer>
<button name="install_demo" string="Load demo data" type="object" class="btn-primary"/>
<button special="cancel" string="Discard" class="btn-secondary"/>
<button special="cancel" string="Oops, no!" class="btn-primary"/>
<button name="install_demo" string="Yes, I understand the risks" type="object" class="btn-secondary"/>
</footer>
</form>
</field>
+24 -10
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-10-08 07:02+0000\n"
"PO-Revision-Date: 2018-10-08 07:02+0000\n"
"POT-Creation-Date: 2018-11-29 10:24+0000\n"
"PO-Revision-Date: 2018-11-29 10:24+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -4775,6 +4775,11 @@ msgstr ""
msgid "<span class=\"o_form_label\">We suggest to reload the menu tab to see the new menus (Ctrl+T then Ctrl+R).\"</span>"
msgstr ""
#. module: base
#: model_terms:ir.ui.view,arch_db:base.demo_force_install_form
msgid "<span class=\"text-white text-uppercase\">Danger Zone</span>"
msgstr ""
#. module: base
#: model_terms:ir.ui.view,arch_db:base.sequence_view
msgid "<span colspan=\"2\">Current Year with Century: %(year)s</span>\n"
@@ -6231,11 +6236,6 @@ msgstr ""
msgid "Are you sure to execute the list of automatic merges of your contacts ?"
msgstr ""
#. module: base
#: model_terms:ir.ui.view,arch_db:base.demo_force_install_form
msgid "Are you sure you want to load demo data?"
msgstr ""
#. module: base
#: model:res.country,name:base.ar
msgid "Argentina"
@@ -8832,7 +8832,8 @@ msgstr ""
#. module: base
#: model_terms:ir.ui.view,arch_db:base.demo_force_install_form
msgid "Demo data should only be used on test databases. Once they are loaded, they cannot be removed."
msgid "Demo data should only be used on test databases!\n"
" Once they are loaded, they cannot be removed!"
msgstr ""
#. module: base
@@ -8959,7 +8960,6 @@ msgid "Disabling this option will also uninstall the following modules \n"
msgstr ""
#. module: base
#: model_terms:ir.ui.view,arch_db:base.demo_force_install_form
#: model_terms:ir.ui.view,arch_db:base.onboarding_container
#: model_terms:ir.ui.view,arch_db:base.res_config_settings_view_form
msgid "Discard"
@@ -13082,7 +13082,6 @@ msgstr ""
#. module: base
#: model:ir.actions.act_window,name:base.demo_force_install_action
#: model_terms:ir.ui.view,arch_db:base.demo_force_install_form
msgid "Load demo data"
msgstr ""
@@ -15715,6 +15714,11 @@ msgstr ""
msgid "Only users with the following access level are currently allowed to do that"
msgstr ""
#. module: base
#: model_terms:ir.ui.view,arch_db:base.demo_force_install_form
msgid "Oops, no!"
msgstr ""
#. module: base
#: model_terms:ir.ui.view,arch_db:base.view_base_module_update
msgid "Open Apps"
@@ -16449,6 +16453,11 @@ msgstr ""
msgid "Please configure an email on the current user to simulate sending an email message via this outgoing server"
msgstr ""
#. module: base
#: model_terms:ir.ui.view,arch_db:base.demo_force_install_form
msgid "Please confirm that you want to <b>irreversibly</b> make this database a demo database."
msgstr ""
#. module: base
#: code:addons/base/models/ir_model.py:1231
#, python-format
@@ -21090,6 +21099,11 @@ msgstr ""
msgid "Yemen"
msgstr ""
#. module: base
#: model_terms:ir.ui.view,arch_db:base.demo_force_install_form
msgid "Yes, I understand the risks"
msgstr ""
#. module: base
#: model:ir.module.module,shortdesc:base.module_account_yodlee
msgid "Yodlee"