summaryrefslogtreecommitdiff
path: root/odoo/cli/server.py
AgeCommit message (Collapse)Author
2018-09-24[IMP] core: require install mode for db bootstrapOlivier Dony
The registry loading system should not alter databases unless it is asked to do so, by a module installation or update instruction. This property should hold true as well for database bootstrap, and this is what this commit changes.. In order to avoid any behavior change for command-line users, an implicit `-i base` is assumed when starting the server from the command-line with `-d <db>`, causing the db boostrap to happen if the database did not exist yet.
2018-08-21[IMP] cli: allows to run odoo with openshiftAkram Ben Aissi
For containers using random uids[1], use the higher level method getpass.getuser which as the same effect but also looks consider the environment variables to determine the user name. Details from http://blog.dscpl.com.au/2015/12/unknown-user-when-running-docker.html CLA signature for akram Closes #26452 [1] openshift or docker as explained at http://blog.dscpl.com.au/2015/12/random-user-ids-when-running-docker.html
2017-11-09[IMP] server,db: coherently handle PGUSER env variableChristophe Monniez
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.
2017-10-30[FIX] core: mode of output file for t9n exportxmo-odoo
trans_export has been decided to use a *bytes* output buffer as some of the output formats are text-ish (e.g. po) but others are definitely binary content (e.g. XML). Therefore, when calling trans_export with a *file*, it needs to be open in *binary mode*. Fixes #20555
2017-08-20[FIX] P3: CSV reading & writingXavier Morel
2017-07-31[FIX] server: don't crash in case we can't check if a database existsFabien Meghazi
In case Postresgl access rights prevents the pguser to access `pg_database`, the server should not crash when trying to create the database because the pguser does not have the right to check if the database exists and he won't be able to create a new database anyway. However the database might exists and in such a case the flow should continue. This patch allows the flow to be resumed in such a case, and in case the database did not actually exists, a warning will tell the user that it was not possible to check if the db existed and the registry for this database will fail to be loaded afterward.
2016-09-30[REF] cli: renamed .rc configuration fileSimon Lejeune
A fallback for .openerp_serverrc has been implemented. If both are present, Odoo will crash and report.
2016-09-02[FIX] odoo: rename imports and adapt import hooksRaphael Collet
2016-09-02[REF] openerp: move `openerp` to `odoo`Raphael Collet