Odoo Help

Welcome!

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.

0

how to show logged user email in sales quotation form

By
Santhoshkumar
on 4/17/14, 5:28 AM 1,013 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--
2090
| 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

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

0 follower(s)

Stats

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