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

Placeholder for OpenERP User in Templates?

By
Robert Klüsener
on 9/18/13, 6:39 AM 2,614 views

What are the variables for the OpenERP User in an eMail Template? I want to create eMail Templates with an individual signature. Therefore I need the following variables: - User Name - User Phone - User Fax - User eMail

1
Paul Catinean
On 9/18/13, 8:21 AM

Greetings Robert,

Email templates come out of the box with the "Dynamic Value Builder" which you can use to generate the placeholders.

When you refer to the user who is in charge or has generates the sales order you are usually referring to the Salesperson which can be found in the Dynamic Value Builder

This is the placeholder for accessing the data on the user responsible for the sale ${object.user_id}

Here you can just append signature ${object.user_id.signature} and get the signature stored on the res.user obejct (Settings->Users)

If you would like to include more information about the user like email and other things you would have to make a link towards the partner in your system that is linked to the res.user object by using ${object.user_id.partner_id}

This will point towards the partner and all the informations are available by appending "email, phone" and whatever is defined on the res.partner object

Hope this helps!

the object is the business object on which you attach a message (beeing a SalesOrder or a Lead/Opportunity,...) but what would be the placeholder for the current logged on user?

Bert Fabri
on 9/11/15, 9:16 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

1 follower(s)

Stats

Asked: 9/18/13, 6:39 AM
Seen: 2614 times
Last updated: 3/16/15, 8:10 AM