Lunch - Odoo 20 Community Book

Access Rights: What Each User Can Do

This part lists what each level can do.

The app has two levels, under the privilege Lunch: User (Order your meal) and Administrator.

The User

odoo Development

A user with the level User sees only the menu My Lunch. The ordering screen is the same, but the box User is only a name: the user cannot choose another person. The favorites are personal: the star that another user marked is empty.

The user sees his or her own balance and can order a meal for himself or herself.

The user cannot create a cash move, a product, a vendor, a location or an alert (refused).

The user cannot change the settings of the company (refused).

The user cannot change an order that is Received, and cannot change the order of another person.

The user can change his or her own order while it is To Order. The user can also cancel and confirm his or her own order. When a user confirms an order, Odoo charges the price at once (for example $1.80 for a Sparkling Water). So the manager does not have to do it.

The user cannot delete an order that is Confirmed or Received. A user can delete only the orders that are To Order or Cancelled.

The Administrator

Odoo describes the level as: be able to create new products, cashmoves and to confirm or cancel orders. It includes the User. It sees the Manager and the Configuration menus, creates and changes vendors, products, categories, locations, alerts and cash moves, changes any order and sees the cash moves of everybody. It does all the steps of this chapter.

A multi-company rule hides the orders, products, vendors and categories of the companies that the user is not allowed to see.

WhatsApp