diff options
| author | Adrian Torres <adt@odoo.com> | 2018-07-11 13:06:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-11 13:06:00 +0200 |
| commit | c002e2eb379e8a3db90b45269f8ff2b7e246c8b2 (patch) | |
| tree | c4f737ce584d60d73cceadbc7e21ab06ab9c3997 /odoo/addons/base/data/ir_demo_data.xml | |
| parent | 5bf5d45b7d1ac381a1419c010352e56b79515599 (diff) | |
[IMP] allow installing demo data post db init
Intended for demo / throwaway databases only
Task-ID: 1856493
Diffstat (limited to 'odoo/addons/base/data/ir_demo_data.xml')
| -rw-r--r-- | odoo/addons/base/data/ir_demo_data.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/odoo/addons/base/data/ir_demo_data.xml b/odoo/addons/base/data/ir_demo_data.xml new file mode 100644 index 00000000000..e108590147a --- /dev/null +++ b/odoo/addons/base/data/ir_demo_data.xml @@ -0,0 +1,23 @@ +<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> + <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> + <footer> + <button name="install_demo" string="Load demo data" type="object" class="btn-primary"/> + <button special="cancel" string="Discard" class="btn-default"/> + </footer> + </form> + </field> + </record> +</odoo> |
