Odoo Help


User Access Permissions

Imantha Hashan
on 11/8/16, 1:12 AM 4,497 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....!

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

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

4 follower(s)


Asked: 11/8/16, 1:12 AM
Seen: 4497 times
Last updated: 6/20/17, 12:44 PM