Community mailing list archives

community@mail.odoo.com

Re: Is it mandatory to use a reg expression for db_filter on odoo server configuration file ?

by
Yassine TEIMI
- 07/24/2015 05:11:22
Thanks Nick for your answer. 


2015-07-24 8:57 GMT+00:00 Nick Booker <nick.booker@opusvl.com>:
Yassine Teimi <yteimi01@gmail.com> writes:

> Dears,
>
> Is it mandatory or I can use for example db_filter ="PROD" ?
>
> Thanks.

I presume you would want the name PROD and only PROD to be matched in
that case.

If you use db_filter = "PROD" then it will match any database name with
the string PROD anywhere within.  It won't be able to tell that you meant an exact
match.

To match only databases whose whole name is PROD, you need:

db_filter = "^PROD$"



--

Cordialement

Yassine TEIMI

Consultant & Odoo Project Manager
TEL : +212 6-27 33 30 78