Odoo Help


This community 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.


Custom module form : It return 403 : forbiden after submit form

on 2/3/16, 7:58 AM 349 views


i created one custom module in odoo v9

in controller i am not pass any "auth" parameter

after login administrator in odoo it submit form and work perfectly

but when i create another user in odoo from signup form and try to submit form so it return 403:forbidden errore

in log file it look like


AccessError: (u'Sorry, you are not allowed to create this kind of document. Please contact your system administrator if you think this is an error.\n\n(Document model: consulate.afidavit)', None)

so how can i solve this error

Jérémy Hermand
On 2/3/16, 8:20 AM


When you create you new object you should use:


In the old API you should use:

from openerp import SUPERUSER_ID

request.registry['...'].create(cr, SUPERUSER_ID, place.id, ..., context)

Then you are in the super user right.

Best Regards

hi,Thanks for your reply but in my controller i am not create any user,only get login user detail from "cust = http.request.env.user" and save in res.partner(onetomany) fields like "'partner_id': cust.id," it works in only when admin is logged in otherwise it return 403:forbidden error,so how we remove this error

on 2/3/16, 10:59 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 2/3/16, 7:58 AM
Seen: 349 times
Last updated: 2/3/16, 9:29 AM