Odoo Help


User Access Permissions

Imantha Hashan
on 11/8/16, 1:12 AM 9,928 views

Hi All,

i'm new to odoo 10 and i want to know about how to make user group vise restrictions using recording rules and Access control List. please give me a guidance to do it. As an example i want to do is this .. i want to give permissions to one group to create sales orders and admin can only confirm sales orders. no other can't confirm the sales orders. Please help me to do this ASAP. Your help is highly appreciating..

Thank You....!


Techno-Functional Associate with 7+ years of experience in Odoo (formerly known as OpenERP).

On 11/8/16, 3:27 AM

Check out the standard Odoo documentation for the same, you will understand the necessary rules & semantics for a start.

Security in Odoo8: https://www.odoo.com/documentation/8.0/reference/security.html 

Security in Odoo9: https://www.odoo.com/documentation/9.0/reference/security.html 


Refer this link, which explains with example


thanks for your answer.. do you have any tutorial guideline to do this as step by step...because this bit harder for me..if you have could you please send it..

Thank You....!

Imantha Hashan
on 11/8/16, 3:56 AM

Have edited the above post, the below link as better step-by-step instructions. If you find it helpful, don't miss to accept my answer :) Thanks

on 11/8/16, 4:00 AM
--Hilar AK--



Hilar AK
On 11/9/16, 4:06 AM

HI Imantha,

just override the  action_confirm() function of sale and check the the uid == 1 , if uid confirm the order else raise the Usererror,

def action_confirm(self):
     if self._uid == 1:
        for order in self:
            order.state = 'sale'
            if self.env.context.get('send_email'):
            if not order.project_id:
                for line in order.order_line:
                    if line.product_id.invoice_policy == 'cost':
        if self.env['ir.values'].get_default('sale.config.settings', 'auto_done_setting'):
         "generate your next process"

next case is you have to make the user access rights in user general settings where sale selection to proper neeeds.

Another option is you can hide the confirm button from quotation ,

<button name="action_confirm" states="draft" string="Confirm Sale" type="object" context="{'show_sale': True}"/>


attrs="{'invisible':[(uid, '!=', 1)]}"


Anjana Arora
On 11/8/16, 5:32 AM

Check this to know more:


you can check information of rule with web browser (Settings - Technical - Security - Record Rules) and filter with object product.product. http://thuynthi.webchuyennghiep.net/giai-phap-erp-cho-doanh-nghiep.html

On 2/13/18, 4:01 AM

The most significant area in Odoo/OpenERP is how to deal or manage users. Managing users and assigning groups or role is the key point in every business. In Odoo/OpenERP assigning role or group to the single user is made through Administrator. And its not a good practice to do so using login through admin and do some setting stuff like assigning groups to employee or users.

Why we need role or groups?

The answer is you need to put everything significant to your business. As you have seen that their are couple of things in an ERP system which you don't want to show every user, most of your staff members needs to see only part of the given system. That's why we need groups or user role that will be assigned to each user. In Odoo/ERP the management of users is very flexible, and each user can belong to one or more groups.

To manage users and configure access rights you should start by defining the groups.

How to create / define groups: http://learnopenerp.blogspot.com/2018/01/groups-and-access-rights-in-odoo.html

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

5 follower(s)


Asked: 11/8/16, 1:12 AM
Seen: 9928 times
Last updated: 2/13/18, 4:01 AM