跳至内容
菜单
此问题已终结
16 回复
19407 查看

I created a website with the Odoo website builder module. Now I want to access this website without having to log in Odoo. How do I do that? For example, my Odoo 9 is at 192.186.0.2:8080 but I face the login at this address. What is the address for the website on my LAN? Website is public so not need for anyone to log in to view my website.

形象
丢弃

check the port in your odoo-server.config

编写者

I didn't see any line relating to website address in the openerp-server.conf other than 8080 (xmlrpc_port) for Odoo itself

编写者

Sorry, I mistyped the IP address. it's actually 192.168.1.94, just a normal IP address assigned by the DHCP. Not the router IP address. My mistake.

编写者 最佳答案

I found the solution. I got the website working while you have multiple databases loaded by appending "/?db=xxx" where xxx is the name of your database with desired website (created from Odoo Website Builder) to your odoo instance URL.

For example if your Odoo URL is localhost:8080 then to view your website at localhost:8080/?db=xxx where xxx is the name of database. That's it.

This won't be necessary if you only have one database loaded in the system (postgressql).

形象
丢弃
最佳答案

Seems like your 'first page' / homepage needs authentication...

When you go on "http(s)://192.186.0.2:8080"... on which url are you redirected ? 

形象
丢弃
编写者

yes there is authentication at 192.168.1.94:8080 to access Odoo backend, but I meant how to access the website that I created with Odoo Website Builder module. I don't want to log in Odoo and then access the website from there. I don't want my peers to log in my Odoo just to view the website. What is the proper address (port?) to view the website normally?

The url should be the same. What is the url in the top bar ? <br/>

192.168.1.94:8080/web ?

编写者

yes the url is same but i get login which i don't want to log in just to view the website. how can my other peers view the website without having to log in Odoo? it's same idea as you view any other website on the internet without having to log in. i want this same for my LAN for my colleagues to view the website that i created with Odoo Website Builder.

'The url is the same ...' WHAT IS the url ?

xxx:8080/??????????????????????????????????????

编写者

it's http://192.168.1.94:8080/page/homepage but i get 404 error if i'm not logged in. i can access to the page only when i'm logged in.

both http://192.168.1.94:8080/page/homepage and http://192.168.1.94:8080 point to same home page

Ok, so your are not face to the login page :/ But a 404 :)

Do you have custom module ? Do you have some error in your log.

Else, are you sure that you have no group on your view ?

By default, controller page is public... Check that you have a ir.ui.view whey key=homepage, active=True and without group on this view.

编写者

nope, i don't have any custom module installed. where can i check my view? "system parameters" under settings menu?

编写者

i see several ir.ui.view objects in the "views" menu under the user interface. is that what you referred to?

yes, it is...

You should find an 'homepage' view. click on it to open, and take a look in the 'key' field.

Check also that you don't have changed access right on it, added groups or inactive it.

编写者

i found the view named "Homepage" with the following settings:

view name: Homepage

Website:

Key: website.homepage

View Type: QWeb

Object:

Sequence: 29

Child Field:

Inherited View:

View inheritance mode: Base view

Model Data: Homepage

External ID: website.homepage

Active: checked

i have changed the key field to homepage (was website.homepage) but it doesn't solve the issue.

编写者

and there is no groups assigned as well

编写者

I got it working. See the answer above. It's simple actually. Thanks for your help though.

相关帖文 回复 查看 活动
1
7月 25
543
2
6月 25
2178
3
4月 25
2432
1
4月 25
1563
1
12月 24
2186