eCommerce - Odoo 20 Community Book

Access Rights: What Each User Can Do

The shop is managed from the Website application, so the rights are the levels of Website and Sales. The example company has four users that show each situation, together with the customer who has a portal account and the administrator.

A User Without a Website or Sales Level

A user who works in Odoo but has no Website level and no Sales level, for example Lucas Reed, finds the Website application with only the menus Site and Reporting. The menu eCommerce is not shown, and the button New offers only a Blog Post, which this user is allowed to write, so a product cannot be created.

odoo Development

Website Restricted Editor

A user at the level Restricted Editor, for example Sam Carter, has no menu eCommerce either. The button New answers with a message that says that the user does not have the necessary permissions to create new content pages. The button Edit opens the shop page in the editor, but only with the tabs Blocks and Style. Every block of the Blocks tab carries a warning icon, and a click on a product picture shows only the group Image, with Media and Pop-up on Click. The options of the shop, such as the layout of the product cards, are not offered at this level, and the changes are discarded with the button Discard.

odoo Development odoo Development odoo Development

Website Editor and Designer with Sales

A user who is an Editor and Designer of the website and also a Sales user with the right All Documents, for example Grace Turner, sees the menu eCommerce with every list of this chapter: Shop, Orders, Abandoned Carts, Customers, Products, Pricelists, Categories, Attributes, Ribbons and, in developer mode, Abandoned Carts and Attribute Categories. The menu Configuration is not shown, so the payment providers, the delivery methods and the discount programs are not reachable.

odoo Development

The orders list opens with the same figures as the administrator sees, and an order opens as a normal sales order with its buttons. The button Payments is missing, because the right to read payment transactions belongs to an accountant or an administrator. A product opens with its smart buttons Go to Website, Variants and Documents, and all its tabs, including eCommerce.

odoo Development odoo Development odoo Development

The payment providers are not part of the menus of these levels. They are kept for the administrators of the database, who set up the ways in which the shop is paid.

Administrator

The administrator sees every entry, including the menu Configuration with the Settings, the Payments and the Deliveries, and the Discount & Loyalty programs and the Gift cards & eWallet under eCommerce > Loyalty. The administrator also installs payment providers and gives the Website and Sales levels to the other users in Settings > Users & Companies > Users.

The Portal User

A customer with a portal account, such as Joel Willis, has no access to the Odoo application. When the address of the back end is typed, the portal page My Account opens instead. It shows cards for the quotations to review, the payment methods, the orders, the invoices, the courses, the projects, the tasks and the addresses, and the page My Account > Your Orders lists the orders of the shop, as section 4.5 shows.

odoo Development

The Public Visitor

A visitor who has not signed in sees the shop when the setting Ecommerce Access is All users, and can fill a cart. At checkout the visitor either signs in, creates an account or pays as a guest, according to the setting Sign in/up at checkout.

With the setting Optional, the checkout opens a page Details. It starts with the question Already have an account and a button Sign in. It asks for the Name, the Email, the Phone, the Country, the City, the Zip Code and the Street and Number, and it offers the optional Apartment, Company and TIN. A box asks if the visitor wants the newsletter. Under it, the button Confirm goes on to the payment.

odoo Development

With the setting Disabled, the same form opens, but the question Already have an account and the button Sign in are not shown, so every customer pays as a guest.

odoo Development

With the setting Mandatory, the visitor can still fill the cart, but the button Checkout opens the sign-in page, and the visitor comes back to the checkout after signing in.

odoo Development

With the setting Ecommerce Access set to Logged in users, the shop is closed to visitors. The address of the shop opens the sign-in page, the item Shop is removed from the menu and the cart icon is removed from the header, so a company that sells only to its customers keeps its prices private.

odoo Development
WhatsApp