Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
6113 Lượt xem

I want my odoo.conf only to show database related to the Odoo version currently running in my pycharm, but I see all.
Of course, db from a different version shows an alert icon, since the current settings running can not open them.

When working in localhost, I usually work with different Odoo DB, some from V12, some from V14, etc..
All db usually have different names, since I use clients backup with its date in the name.
Ex: db2506, abc0105, odoo14, odoo12, land0105, etc.
I have one odoo.conf for each version, I used a different http_port for each, since both works on localhost.
I tried changing http_interface to 127.0.0.1 for one of them.
I have seen the dbfilter option, but it only work on domains..


Is there a way to do this?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

You can achieve this by creating different PSQL users for different Odoo versions. Once you do that, assign the user to that Odoo version with the help of odoo.conf file, in the odoo.conf file add the user against the db_user parameter. Once you do so, rest of the hierarchy will be taken care of automatically and then you'll only see the databases for that specific odoo users/ versions.

Thanks and Regards,

Divyansh

Ảnh đại diện
Huỷ bỏ
Tác giả

I'll try it and tell you if it worked..

Tác giả

Hi, I did what you suggested, though it took me a while, it worked!

After creating the new role, I changed the owner of my V.14 dbs, and put the new role on the .conf file. Then I noticed that role still did not have permissions, so privileges where granted. But it still could not access ir.module.module table, thus I ended adding SUPERUSER to my new role and it finally worked. Now I see all my db related to each version.

Thanks.

Câu trả lời hay nhất

Hi Denisse:

One option is to add the "-d database_name" argument to your command that starts up the odoo server.

Ảnh đại diện
Huỷ bỏ
Tác giả

But that would only show me one db.. and when doing some testing, I change db to test on the others..

Correct. Isn't that what you are looking for?

Tác giả

I want to show all my db of specific version.. of I have 3 or 10 db of version 12, I don't want to type the name of them each time..

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 22
2401
1
thg 9 23
1326
1
thg 11 21
4512
0
thg 5 21
2714
0
thg 12 20
1674