Odoo Help

0

Extracting company's information

By
Ognyan Ivanov
on 3/7/13, 4:33 PM 999 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--
5161
| 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 ]]

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

0 follower(s)

Stats

Asked: 3/7/13, 4:33 PM
Seen: 999 times
Last updated: 3/16/15, 8:10 AM