This question has been flagged
16 Replies
16103 Views

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.

Avatar
Discard

check the port in your odoo-server.config

Author

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

Author

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.

Author Best Answer

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).

Avatar
Discard
Best Answer

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 ? 

Avatar
Discard
Author

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 ?

Author

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/??????????????????????????????????????

Author

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.

Author

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

Author

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.

Author

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.

Author

and there is no groups assigned as well

Author

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