Odoo Help


How to see the "state" of the invoices on the sale.order tree view

on 2/2/16, 8:17 AM 800 views

Hi guys,

Does someones knows how to see the "state" of the invoices on the sale.order tree view?

With the field invoice_ids, I can see only the number on he sale.order tree view. I would like to have number + state.

Is it possible?

Many thanks,


Yes, you'll need to customize view for that.

on 2/2/16, 8:29 AM

What have you already tried?

on 2/2/16, 8:31 AM

Hi Temur. Thank you for your answer. I tried to add the field invoice_ids but I have only the number. Or, this field is the only field that connect invoice and sale.order. Is it possible to print a field like invoice_ids.state inside the view ( OpenERP 7?). I got some error everytime I try something like this. Many thanks, Selverine

on 2/7/16, 6:58 AM
--Ahmed M.Elmubarak--

Ahmed M.Elmubarak
On 2/7/16, 7:54 AM


You can add a new functional field of type char, to sale.order, this field contains the invoices number + state. something like

value = ''
for inv in order.inovice_ids:
     value += inv.number + '/' + inv.state + '\n'

check this question with similar concept.

Hope this could help

Hi Ahmed, Thank you for your help. I was thinking to do something like this. However, If I change my state inside the account module. How my field can be updated? How can this field read on "real time" the state of my invoice? I block on this point :-(. Many thanks, Selverine

on 2/7/16, 10:10 AM

Hi, The functional field is always trigger the function whenever the field will appear in the screen so it is always updated. Unless you used the keyword 'store' to enhance the performance.

Ahmed M.Elmubarak
on 2/8/16, 1:22 AM
Clark Steward (cst)
On 2/3/16, 9:06 PM

Hi Selverine,

In developer mode, navigate to the sale.order tree view and in the developer menu click View > Edit Tree View. Change 

<field name="state" invisible="1"/> to

<field name="state"/>

then reload the page.

Hi Clark, Thank you for your answer. However, with this I will have the state of the sale order. Or, I would like to have the state of the invoice inside my sale order view. Do you have any idea? Many thanks, Selverine

on 2/7/16, 6:55 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: 2/2/16, 8:17 AM
Seen: 800 times
Last updated: 2/7/16, 7:54 AM