Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
1527 Weergaven

how to change my login website to public view because if they want to acesss they need to login so how to change into public view?

Avatar
Annuleer
Beste antwoord

To make your Odoo website publicly viewable:

  1. Publish the Website: In the Website app, ensure your website is published.
  2. Publish Pages: Go to Website > Site > Pages and publish the specific pages you want public.
  3. Check User Rights: Ensure public users have the necessary access rights (usually default).

Avatar
Annuleer
Beste antwoord

Hi,


If your Odoo website is asking users to log in before viewing, you can make it publicly accessible by following these steps:

How to Make Your Odoo Website Public (No Login Required):

    Activate Developer Mode

        Go to Settings > Activate Developer Mode (or add ?debug=1 to the URL).

    Ensure Pages Are Published

        Go to Website > Site > Pages

        Open the page you want to make public.

        Make sure the "Published" toggle is on (green).

    Allow Public Access in Routes (for developers)

        If the page is created via a Python controller, ensure the route uses:

@http.route('/your-page', type='http', auth='public', website=True)


Hope it helps

Avatar
Annuleer
Beste antwoord
Step-by-Step: Make Website Public


1. Set the Website Page(s) to Be Public

  1. Go to WebsiteSitePages .
  2. Open the page you want to make public.
  3. Check the “Published” status is Enabled .
  4. Click on the “Edit” button (if needed), then ensure the page is saved and accessible.


2. Adjust Access Rights

Ensure public access is not restricted by backend ACLs (Access Control Lists):

  • Go to SettingsTechnicalSecurityAccess Control Lists
  • Look for models like:
    • website.page
    • website.menu
    • Any custom models you're displaying

➡ Ensure there is a group: Public or Portal with Read access.

If not:

  • Click Create
    • Model: eg website.page
    • Group: Public
    • Permissions: Check Read


3. Check Controllers (Developers Only)

If you have custom code in a controller that requires login , make sure it does not include this:

@http.route('/your_url', auth='user')

Instead, change to:

@http.route('/your_url', auth='public')


4. Remove Redirects to Login

Check whether login redirection is forced:

  1. Go to WebsiteConfigurationSettings
  2. Make sure there's no force login or authentication module requiring login for homepage.


5. Clear Cache

Once you've made all changes:

  • Go to Website → click on ⚙️ (Settings) → Clear Cache
  • OR restart Odoo service if using custom deployment.


Test:

Open the site in an incognito/private browser window. You should now see the homepage or public pages without being asked to login.

Important Notes:
  • This will not expose internal modules (like Sales, Inventory, etc.) — only pages meant for the website frontend.
  • Be careful exposing sensitive data. Use groups and access rules for any dynamic content shown to the public.


Thanks & Regards,

Email: contact@datainteger.com

Avatar
Annuleer