Odoo Help

1

Placeholder for OpenERP User in Templates?

By
Robert Klüsener
on 9/18/13, 6:39 AM 2,811 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

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

1 follower(s)

Stats

Asked: 9/18/13, 6:39 AM
Seen: 2811 times
Last updated: 1/18/17, 4:51 AM