Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
My problem is i have one Qweb report sales.order. now i want to get bank detail using company_id.
how it's possible?
i inherit the module ['sale.order']. when i try get bank detail i use following code in Qweb Report.
this generates error.
is this possible to get data from other table?
You may try the following code in your sale order report, to get the account details of customer:
But this works only if it contains only one bank account linked. If multiple bank accounts, you need to iterate in bank_ids using t-foreach like in the case o.order_line.
If having multiple accounts, you may try the following code:
<h3> Account Details </h3>
<th style="width:20%;"> Bank </th>
<th style="width:20%;"> Account No. </th>
<tr t-foreach="o.partner_id.parent_id.bank_ids" t-as="b">
<tr t-foreach="o.partner_id.bank_ids" t-as="b">
Hope this helps.
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 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
|Asked: 10/28/15, 12:34 AM|
|Seen: 1520 times|
|Last updated: 10/28/15, 6:12 AM|