Odoo Help


How to add report in two fields in qweb in odoo 9

on 10/19/16, 2:02 AM 740 views

Hi I have a problem in qweb report i had a two fields one in customer invoice and another one in vendor bills but these two fields want to retrieve in same invoice report if click the customer invoice, customer invoice field will come in same report and if i click the vendor bills this one also come in same report 

<strong style="font-size:13px;font-family:Arial">Terms of Payment</strong><br></br> <span t-if="o.payment_term_id.name"></span> <span t-if="o.payment_term_id1.name"></span>

this is my code whats wrong this please help

So, do you want that one field is come in report when we are in Vendor bill and one when we are in Customer Invoice???

Jusab Sida (jsi)
on 10/19/16, 10:11 AM
On 10/20/16, 12:55 AM

@Jusab Sida yes I want one field in customer invoice and another field in vendor bills

--Jignesh Mehta--

Jignesh Mehta
On 10/19/16, 7:28 AM

Hello Arunagiri,

Try below code :-

<strong style="font-size:13px;font-family:Arial">Terms of Payment</strong></br>

<t t-if="o.payment_term_id><span t-field="o.payment_term_id.name"/></t>

<t t-if="o.payment_term_id1><span t-field="o.payment_term_id1.name"/></t>

Hope it works for you.


Thanks For your answer but its not works out and aslo i did this using another method

on 10/19/16, 8:19 AM

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.


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

1 follower(s)


Asked: 10/19/16, 2:02 AM
Seen: 740 times
Last updated: 10/20/16, 12:55 AM