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

Extracting company's information

By
Ognyan Ivanov
on 3/7/13, 4:33 PM 819 views

Hi,

I was able to extract the company's information in the header and footer of reports by using for instance the following piece of code:

[[ company.partner_id.address and company.partner_id.address[0].zip or '' ]]

That was for extracting the zip code. In the attempt of adjusting the new version to our needs, I could not extract the info in the above mentioned way.

Any help would be appreciated.

Thanks.

1

Andreas Brueckl

--Andreas Brueckl--
5056
| 7 8 7
Vienna, Austria
--Andreas Brueckl--
OpenERP Consulting and Development
Andreas Brueckl
On 3/7/13, 5:46 PM

In v7 you can use

[[ company.partner_id.child_ids[0].zip ]]

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: 3/7/13, 4:33 PM
Seen: 819 times
Last updated: 3/16/15, 8:10 AM