Comment 3 for bug 1038176

Revision history for this message
Mohammed Shekha(Open ERP) (msh-openerp) wrote : Re: Try to create a new state on Leads have trackback

Hello,

I have checked the issue and found that it is due to quick create option which is enabled for the many2one field which has other required field than _rec_name, actually the design of quick_create is something like this, when user tried to create a record using quick create so name_create is called which will considers the _rec_name and whatever data you have entered in many2one field will going to consider as a _rec_name field data, now with that it will going to create record but if there are other fields required so create will raise an Not Null Constraint and will raise exception, so web-client will get response fail for quick create and will call slow create(i.e. it will open form view for that model).

If there are many field than _rec_name than its better to disable the quick create option(if other required field are not filled with default value), because you are sure that it never going to quick create, hence I have set quick_create=false which will always call slow create and saves one RPC call for quick create.

Thanks.