Difference between with and without sudo() in Odoo

Viewed 12196

What is different between:

test = self.env['my.example'].sudo().create({'id':1, 'name': 'test'})

test = self.env['my.example'].create({'id':1, 'name': 'test'})

All example work, but what is the advantages when using sudo()?

3 Answers
Related