Skip to content

Commit

Permalink
[IMP] enable database manager
Browse files Browse the repository at this point in the history
On OCA repos, sometimes there are incompatible modules. Or, at least, modules that introduce pollute others' behaviors.

When doing functional tests of a PR and the DB already contains all addons for the branch, it's easy to find out a bug that really won't be a bug in the current PR, but instead a side effect of another addon in the same repo. Many times, that addon isn't even used in production and the flaky use case is irrelevant.

It's helpful to have the possibility of installing an empty database. This way, only the wanted addons can be installed, and there's less chance for unwanted side-effects.

On a recent real use case that we have recorded, a user lost 30 minutes in the functional review, only to uninstall modules that polluted the one he wanted to test. At the end, there were still failures that we're not sure if belong to the important module.

For these reasons, I'm configuring Odoo runboat instances to have the database manager enabled by default, with a standard password: `admin`.

I took the chance to add a couple of good default parameters for any database.
  • Loading branch information
yajo committed May 9, 2023
1 parent 9f97731 commit 7242bb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ RUN pip install --no-cache-dir -e /opt/odoo \
&& pip list

# Make an empty odoo.cfg
RUN echo "[options]" > /etc/odoo.cfg
COPY etc/* /etc/
ENV ODOO_RC=/etc/odoo.cfg
ENV OPENERP_SERVER=/etc/odoo.cfg

Expand Down
5 changes: 5 additions & 0 deletions etc/odoo.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[options]
admin_passwd = admin
list_db = true
unaccent = true
without_demo = false

0 comments on commit 7242bb4

Please sign in to comment.