def check_postgres_user():
 config = odoo.tools.config
 if (config['db_user'] == 'postgres'):
  sys.stderr.write("Using the database user 'postgres' is a security risk, aborting.")
  sys.exit(1)

def check_postgres_user ( ) : config = odoo . tools . config if ( config [ 'db_user' ] == 'postgres' ) : sys . stderr . write ( "Using the database user 'postgres' is a security risk, aborting." ) sys . exit ( 1 )
exit if the configured database user is postgres .