Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have 2 user
postgresql users are 1) openerp--->databases are demo 2) arun -----> databases are sample, arun, live
arun@arun-Disktop--iam working using terminal like cd /optopenerp/server --->./openerp-server
i can view sample arun and live in localhost:8069 i can not view demo database and also postgres arun role database i can not view the tables so i try to change the postgres user as openerp how to do that can any one help me!!!!! Advance thanks
your openERP server has 2 parameters --db_password= and --db_user= to match the correct database user.
If you want two different db-users you must either pass different parameters to your server or run 2 different openERP instances.
At the opposite, if you want to see all the database within the same server, you have to grant access to all the DB to the same user.
You can do this with the following pgsql commands :
- ALTER DATABASE my_db OWNER TO my_user;
- GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO my_user;
- GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO my_user;
I you still have read errors, pass the following bash commands :
for tbl in
psql -qAt -c "select tablename from pg_tables where schemaname = 'public';" my_db ; do psql -c "alter table $tbl owner to my_user" my_db ; done
for tbl in
psql -qAt -c "select sequence_name from information_schema.sequences where sequence_schema = 'public';" my_db ; do psql -c "alter table $tbl owner to my_user" my_db ; done
for tbl in
psql -qAt -c "select table_name from information_schema.views where table_schema = 'public';" my_db ; do psql -c "alter table $tbl owner to my_user" my_db ; done
Hint : the complete list of server parameters are well documented. Just type
PS: Please vote if you find this answer useful
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/8/13, 7:31 AM|
|Seen: 3197 times|
|Last updated: 3/16/15, 8:10 AM|