Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5 ตอบกลับ
23659 มุมมอง

hello everybody,
i have 3 databases on odoo 9 and i want to have a direct link for each database thanks, 

อวตาร
ละทิ้ง

What do you mean with a direct link? Do you mean an URL that points to one of the databases that is running on one Odoo instance? In that case: have a look at db-filter.

ผู้เขียน

as i said i have 3 database and i want for each one have an URL without entering in the database selector for exemple : for db1 = 192.168.1.45:8069/db1 for db2 = 192.168.1.45:8069/db2 for db3 = 192.168.1.45:8069/db3 is this is possible in odoo Best regards

คำตอบที่ดีที่สุด

Hi medmars,

You have two options:
The first option is to handle everything with Nginx and do the forwarding / domain point there.
The second option is to use the built-in Odoo parameter '--db-filter'. With this filter you can 'link' databases to domains.
A quote from the official documentation:

--db-filter <filter> hides databases that do not match <filter>. The filter is a regular expression, with the additions that: %h is replaced by the whole hostname the request is made on. %d is replaced by the subdomain the request is made on, with the exception of www (so domain odoo.com and www.odoo.com both match the database odoo)

You can find the official docs here: https://www.odoo.com/documentation/8.0/reference/cmdline.html and there is a nice tutorial here: https://www.inlinetechnology.com/blog/howto-3/post/odoo-mapping-url-to-database-10

Yenthe

อวตาร
ละทิ้ง
ผู้เขียน

Thanks so much

You're welcome, best of luck!

คำตอบที่ดีที่สุด

Place db name in the query string like:

localhost:8069/web/login?db=db1,

localhost:8069/web/login?db=db2,

localhost:8069/web/login?db=db3

อวตาร
ละทิ้ง

for version 9, it should be localhost:8069/web/web?db=db3

ผู้เขียน

thanks

ผู้เขียน

i think you should delete "web" to be like : localhost:8069/web?db=db3

Related Posts ตอบกลับ มุมมอง กิจกรรม
Get all data from a model แก้ไขแล้ว
1
ธ.ค. 19
11250
2
เม.ย. 16
3411
1
มี.ค. 16
5568
0
ก.ค. 25
1437
2
พ.ย. 24
6251