Odoo Help


Remove Default """""user_id""""" in Lead Form

on 8/8/13, 3:48 AM 1,839 views

Whenever The Lead Form Loaded , The User_id(Salesperson) Is Automatically Populated in Lead Form . My Requirement Is To Make Empty user_id Field When Ever The Lead Form Load . How To Achieve This

Hiral Patel (hip)
On 8/8/13, 4:41 AM

In crm_lead.py remove line from _default:

_defaults = {
    'user_id': lambda s, cr, uid, c: s._get_default_user(cr, uid, c),


No This Is Not Working I Tried. _defaults = { 'user_id' : False }

on 8/8/13, 6:54 AM

Restart the server after applying change, As you make changes in .py file.

Hiral Patel (hip)
on 8/8/13, 6:59 AM

No Even After Restarting Its Not Working :-) I Tried By Commenting The Standard "crm_lead.py " File . No Changes Even After Changing In Standard File In Defaults (I restarted The Server and Upgraded Too)

on 8/12/13, 11:34 AM

About This Community

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


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/8/13, 3:48 AM
Seen: 1839 times
Last updated: 3/16/15, 8:10 AM