تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
5499 أدوات العرض

I've setup 2 databases, when Odoo sends the invoice email, it adds a link to see the invoice online. But, this link doesn't work until you go to Database Selector and chose the right DB.

The same happens with the link sent to users to change the password.


Any idea on how to fix that?

الصورة الرمزية
إهمال

I think using the db_filter will do it for you

أفضل إجابة

Any link Odoo provides will only work, if it is unique concerning the database addressed. If you are running multiple databases on one port/instance, you'll have to create this uniqueness by using the dbfilter option, as Niyas said.

Check this: https://www.odoo.com/forum/help-1/question/odoo-8-0-apache2-how-to-configure-a-proxy-from-an-url-to-a-specific-database-in-a-multi-database-setup-110545#answer-110604   

    

الصورة الرمزية
إهمال
الكاتب

But both databases send invoices and links. How do I set it up?

By reading the documentation yourself: www.odoo.com/documentation

الكاتب

I've read that several times. But, I don't understand how to set it up in a way that myco.company.com uses a DB and otherco.company.com uses another DB

الكاتب

I got it!

The DB name must match the domain or subdomain name, depending on your setup of the db-filter. So, if using %d, myco.company.com must use a db named myco and otherco.company.com must use a db named otherco.

Thank you very much Ermin. I really appreciate all your help.

Then please show your appreciation by upvoting and ticking the answered mark :-)

الكاتب

I tried, but it says I don't have karma enough to transform a comment into an answer

الكاتب

Well, I marked your first answer. If any body reach it, would need to read all the comments. ;)

You don't need no karma, because you do not have to convert anything, you already ticked as answer I see, and upvoting is done by clicking the small triangle above the 0 right beside it.

I did amend my answer :-)

Anyway, for others it would also be helpful to upvote the linked answer, as it is more generic concerning the use of dbfilter.

الكاتب

Done!!

Thanks for taking the time to explain upvote ;)

Thanks :-)

المنشورات ذات الصلة الردود أدوات العرض النشاط
4
نوفمبر 22
36257
1
سبتمبر 22
4209
1
سبتمبر 18
4239
1
سبتمبر 18
9498
2
فبراير 25
42717