Skip to content
Browse files

[FIX] config: fix pg_dump not found


	- Remove ~/.odoorc
	- Launch a server
	- Try to dump the db in db manager


	- Restart the server
	- Retry

	pg_dump not found


	When the .odoorc file is not there,
	the pg_path option is not present so
	the normalize method set it to None

	When the server is restarted, it re-checks
	the options (which are strings) and in the
	normalize method we check "if not pg_path"
	but 'None' is truthy so it thinks this is
	a real path.


	Check if not pg_path or if pg_path string
	is None

  • Loading branch information
jvm-odoo committed Feb 14, 2020
1 parent 873bc34 commit a2dc3be5b75fd5e72e1e1f45b61601c459a9fa5e
Showing with 1 addition and 1 deletion.
  1. +1 −1 odoo/tools/
@@ -710,7 +710,7 @@ def verify_admin_password(self, password):

def _normalize(self, path):
if not path:
return path
return ''
return realpath(abspath(expanduser(expandvars(path.strip()))))

0 comments on commit a2dc3be

Please sign in to comment.
You can’t perform that action at this time.