Files
odoo_source/odoo/addons/base/data/ir_demo_data.xml
T
Olivier Dony 52a970bce3 [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
2018-11-29 11:13:39 +00:00

38 lines
1.7 KiB
XML

<odoo>
<record model="ir.actions.act_window" id="demo_force_install_action">
<field name="name">Load demo data</field>
<field name="res_model">ir.demo</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<record model="ir.ui.view" id="demo_force_install_form">
<field name="name">ir.demo.form</field>
<field name="model">ir.demo</field>
<field name="arch" type="xml">
<form>
<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 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>
</record>
</odoo>