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

Display bank account number on header of company

By
Wim Van den Borre
on 3/7/13, 6:07 AM 3,520 views

Hey everyone,

I've managed to put my vat ID on the header of my company for report purposes:

<drawstring x="1.3cm" y="25.7cm">[[ company.vat ]]</drawstring>

Now I want to do the same for my bank account, I've looked in the database and found it in the table res_partner_bank in the field acc_number

Now how can I get this on my header? I've tried everything but i'm not familiar with the syntax..

Kind regards,

Wim

2

Andreas Brueckl

--Andreas Brueckl--
5056
| 7 8 7
Vienna, Austria
--Andreas Brueckl--
OpenERP Consulting and Development
Andreas Brueckl
On 3/7/13, 8:28 AM

You can have several bank accounts registered to your company. This prints the account number of the first bank account:

[[ company.bank_ids[0].acc_number ]]

You can also use the other available bank details (instead of acc_number):

  • name
  • bank_name
  • bank_bic
  • owner_name
  • ...
0
Wim Van den Borre
On 3/7/13, 8:30 AM

Thanks a lot! That did it!

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, 6:07 AM
Seen: 3520 times
Last updated: 3/16/15, 8:10 AM