I want to include the details of the bank account selected from the Invoice>>Other info(tab)>>Bank Account onto a printed invoice. I want to know the variable name of the bank account choosen so that i can do something like this on the invoice design:
[[ (o.partner_bank_id and o.partner_bank_id.note and format(o.partner_bank_id and o.partner_bank_id.note)) or removeParentNode('para') ]]
In summary i dont know the variable name to reference the bank account choosen.
@sepuuya, I'm also interested in this. Please post back if you find a solution. I will do the same.
@guillaume, Thanks for your help! Do you know how I would call this on in a QWeb format invoice? I've tried the following: Bank Name: Bank BIC/SWIFT: however i'm getting the following traceback: QWebException: ""'sale.order' object has no attribute 'partner_bank_id'" while evaluating 'o.partner_bank_id'" while evaluating "translate_doc(doc_id, doc_model, 'partner_id.lang', 'sale.report_saleorder_document')" I'm working in Odoo 8.0 (latest pull from github today).
You have this error because partner_bank_id only exist in account.invoice not in sale.order !
@Guillaume, Thanks for your help, I will try to add partner_bank_id to the saleorder document.