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

Hello everyone,

After enable https to my odoo 11 database, I set the web.base.url to my IP address and the PDF print report  worked well, but the problem is that I need to set it every time I log in to my database, 

Could someone help me to fix it

Thanks in advance  

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

Hi,

Adding web.base.url.freeze in system parameter and setting the value as true should freeze the url.

In Settings->Technical settings->System parameters try to add the following

Key: web.base.url.freeze

Value: True

Regards

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

For best results you will add on entry to hosts file (/etc/hosts for Linux, %WINDIR%\system32\drivers\etc\hosts for Windows), like this:

myurl.com 127.0.0.1

And then set report.url to http://myurl.com:8069

The domain must be the same, otherwise you will get cross-site warnings and your pdfs will be broken.

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

I cannot find system parametrs 

I use odoo online

Ảnh đại diện
Huỷ bỏ

You need to enable debug mode, only then you can see System Parameter screen

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

Hi,

Not sure why it happen, if the issue is only with the pdf reports, instead of web.base.url there will be report.url (if not exist create a new one) , and set the value in report.url and see whether it also get changed during the log in.

Thanks

Ảnh đại diện
Huỷ bỏ

Hi Niyas, should I set the same value on the report.url same with the url that I type in the web.base.url?

Thanks,
Tri