跳至内容
菜单
此问题已终结
2 回复
12143 查看

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

形象
丢弃
最佳答案

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
  • ...
形象
丢弃
编写者 最佳答案

Thanks a lot! That did it!

形象
丢弃
相关帖文 回复 查看 活动
2
11月 20
4492
1
3月 15
6098
2
3月 15
4245
0
3月 15
4340
0
3月 15
4108