Hello, I would like to create a user with the email address in the res.partner object. But it gives me an error of the AccessError type: ('AccessError', u'Sorry, you are not allowed to create this kind of document.) Only users with the following access !!
i need your help
@http.route('/login/signup', type='http', auth="public")
def web_signup(self, **post):
obj_partner = http.request.env['res.partner']
email = 'toto@gmail.com'
# create partner
partner_id = obj_partner.create({
'name': ' ',
'email': email,
}