Creating A User in res_partner with python controller in website signup

8/20/16, 12:28 AM1,862 views

env = request.env(context=dict(request.env.context, show_address=True, no_tag_br=True))env['res.partner'].sudo().create({'name': qcontext['student_name'], 'grade': qcontext['grade'],'school': school.id, 'parent_id': school.partner_id.id, 'lang': values['lang'], 'company_type': 'student'})i am getting and integrity error when i run this command.I know that there is signup function for res_users is there a similar function for the res_partner?Error also contain bad query but the query created using the pdb is given below