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.

1

How can I put user email on Header?

By
Josep Marti Oliver
on 5/10/13, 8:56 AM 1,721 views

I try this company.partner_id.email or " but I'd wish that my alias email show on the header, how can I put in the Header?

Thanks

1
Juanjo Algaz
On 7/4/13, 8:38 AM

You can use a workaround to this:

<drawRightString x="7cm" y="24.6cm">[[ user.alias_id.alias_name or '' ]]@[[ user.alias_id.alias_domain or '' ]]  ...
3
TestUser
On 5/13/13, 7:47 AM

You're using OpenERP7 or 6.1?

Well, I just tried it this way and it worked.

I added this line into rml-header:

Example:

<drawstring x="10.0cm" y="25.7cm">[[ o.partner_id.email ]] </drawstring>

I tested it with an invoice report - created with LibreOffice and ReportDesigner. (o is the object I use in my report)

Or did you mean by alias your user email address?

Then it would be:

Example:

<drawstring x="10.0cm" y="25.7cm">[[ user.email ]] </drawstring>

0
Josep Marti Oliver
On 5/17/13, 6:29 AM

Hi, thanks for your reply. I'm using OpenERP 7, and your help don't work.

I'll try another things perhaps someone will work ;)

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: 5/10/13, 8:56 AM
Seen: 1721 times
Last updated: 3/16/15, 8:10 AM