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

Hi,

I've setup an eCommerce website and I'm trying to change the web.base.url to something else vs the localhost option. I input the name I'd like for it to use and save it.

When I log out and back in it's changed back to the default localhost and I tried changing it without performing a logout but it doesn't seem to want to change after saving.

Does anyone have a solution out there as to why?

P.s. I'm running Odoo ver: 12

Thank you!

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

Hi Michel,

The web.base.url works by design like this. Everytime a user logs into your Odoo instance Odoo will check if the web.base.url that is already saved is identical to the URL that the user logged in from. If this is the case it is kept, if this is not the case it will be updated. This might get confusing when you have your Odoo instance available on two URL's, for example url1.com and url2.com. If somebody logs on from url2.com the web.base.url will be saved as "url2.com". The same will also happen when you access the Odoo by IP. In this case the web.base.url will be saved with the value from your IP.

There are two possible solutions. EIther you make sure the Odoo is only accessible through that one URL you want (so yourwebsite.com) or you make sure Odoo does not change the web.base.url. You can make sure that this does not happen by adding a new parameter "web.base.url.freeze" with the value "True". An example:


The web.base.url.freeze will say to Odoo that the value cannot be changed/update when somebody logs on from another location. It will keep the value that you've set in web.base.url.

Regards,
Yenthe

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

when i enter my domain name www.simpleenergytech.com installed ecommerce home page is not viewing

Viewing Home Shop Contact Us --- and when i click on Shop then showing as a ecommerce website. except this all when i enter my domain name showing directly Ecommerce website like flipkart or amazon. HOW I CAN OD THIS

+1 for the solution. Today I got to know the need of this parameter :)

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

if I have 3 websites 
what should be my web.base.url?


should it be  mydatabase.odoo.com or it should be one of my websites?


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

Same question...What should web.base.url be with multiple web sites?

I have same situation and still can't figure it out.

Tác giả Câu trả lời hay nhất

Hi Yenthe,

Thank you for the reply. I'm having another issue now, everything was working fine yesterday evening and now I can't log into the localhost:****/web/login. I never changed my password and the email is verified.

There's also no option for me to reset the password on the login page. Is there a way to send me a link to my verified email so that I can restore access to the account?


Thank you

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

Hmm that is odd. You can reset the password by doing a database query if you have no other login to get into the system again. (something like: update 'res.partner' set password = 'your_password' where id = 1)

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

The web.base.url works by design like this. Everytime a user logs into your Odoo instance Odoo will check if the web.base.url that is already saved is identical to the URL that the user logged in from. If this is the case it is kept, if this is not the case it will be updated. This might get confusing when you have your Odoo instance available on two URL's, for example url1.com and url2.com. If somebody logs on from url2.com the web.base.url will be saved as "url2.com". The same will also happen when you access the Odoo by IP. In this case the web.base.url will be saved with the value from your IP.

Note: the above update will happen only admin logged in time, not for all users login.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 19
3811
2
thg 9 23
6107
6
thg 12 23
45111
3
thg 10 21
17645
tmp is full Đã xử lý
1
thg 6 19
7183