summaryrefslogtreecommitdiff
path: root/addons/analytic
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2017-11-08 15:55:51 +0100
committerChristophe Monniez <moc@odoo.com>2017-11-09 13:25:16 +0100
commitb2a126da843ee3ded68d6c8b984990ae1c7b84c6 (patch)
tree83ae7325b14657429d26419f7d69fc4c598bb9f9 /addons/analytic
parent938fca4de1ee80d5a77428caebcacf70f559a4d8 (diff)
[IMP] server,db: coherently handle PGUSER env variable
When Odoo is started with a db_user using 'postgres', the process exits with a status 1. However, this can be bypassed when the PGUSER environment variable is used. This commit will prevent the usage of the 'postgres' for the environment variable too. Also, when trying to list db's, various methods where used to find a suitable postgres user to get this list. In fact, as the db cursor is available, a user is already at work. So, in order to avoid code duplication (e.g. verify user from environment variables), this commit removes those various method and get the db user from the cursor.
Diffstat (limited to 'addons/analytic')
0 files changed, 0 insertions, 0 deletions