Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
5155 Переглядів

I've tried to use regexp in dbfilter to instruct odoo 10 to pickup the hostname from subdirectory structure url and select a db automatically... but it doesn't work..


Subdomain dbfilter(working conf):

dbfilter = ^%d$


Subdirectory dbfilter(which did NOT work)

dbfilter = ^mydomainname/%d$


Other details:

Odoo Version: 10

Odoo Module: Website Builder

Main requirement: Access the webpages directly without going through a login screen


My Questions:

1) Is the "dbfilter" made only for subdomain structure and complete domain name structure ?
Or can it be used similar to php's "htaccess"

2) If dbfilter can be used to setup a subdirectory structure, how can it be done?


Coz, CMSs like Wordpress can do a Subdirectory structure as well as subdomain structure when setup in a SAAS model multisite setup


Please give me some examples


Аватар
Відмінити
Найкраща відповідь

dbfilter out of the box works only for domains/subdomains, not directories. This is also the recommended deployment. If you want to use directories, you may check the this module and assign directories to databases manually: https://www.odoo.com/apps/modules/9.0/dbfilter_from_header/

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
5
лют. 24
23906
1
груд. 19
2749
0
лип. 18
2560
2
лип. 18
2939
2
лист. 17
4434