Odoo Help

0

how to show logged user email in sales quotation form

By
Santhoshkumar
on 4/17/14, 5:28 AM 1,113 views

I want to display the logged in user email id in quotation form by default how can I do this..

Could any one help me..

1

Nehal

--Nehal--
2108
| 5 2 8
Ahmadabad, India
--Nehal--
Nehal
On 4/17/14, 5:40 AM

Hi,

Put the following in sale.order object's defaults:

_defaults = {
    'email': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).email,
}

This will set default value as logged in user's email in email field

Thank You very much Mr.Nehal

Santhoshkumar
on 4/17/14, 6:54 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.

Register

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

0 follower(s)

Stats

Asked: 4/17/14, 5:28 AM
Seen: 1113 times
Last updated: 3/16/15, 8:10 AM