Merge pull request #138 from sbidoul/enable-with-demo
Load demo data in Odoo 19+
This commit is contained in:
commit
a965740c27
1 changed files with 5 additions and 0 deletions
|
|
@ -16,6 +16,11 @@ dropdb --if-exists ${PGDATABASE}-baseonly
|
||||||
|
|
||||||
ADDONS=$(manifestoo --select-addons-dir ${ADDONS_DIR} --select-include "${INCLUDE}" --select-exclude "${EXCLUDE}" list --separator=,)
|
ADDONS=$(manifestoo --select-addons-dir ${ADDONS_DIR} --select-include "${INCLUDE}" --select-exclude "${EXCLUDE}" list --separator=,)
|
||||||
|
|
||||||
|
# In Odoo 19+, demo data is not loaded by default. We enable it via $ODOO_RC,
|
||||||
|
# because --with-demo does not exists in previous version and would error out,
|
||||||
|
# while unknown options in the configuration file are ignored.
|
||||||
|
echo "with_demo = True" >> $ODOO_RC
|
||||||
|
|
||||||
# Create the baseonly database if installation failed.
|
# Create the baseonly database if installation failed.
|
||||||
unbuffer $(which odoo || which openerp-server) \
|
unbuffer $(which odoo || which openerp-server) \
|
||||||
--data-dir=/mnt/data/odoo-data-dir \
|
--data-dir=/mnt/data/odoo-data-dir \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue