Odoo Help

Welcome!

This community 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.

0

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

By
Selverine
on 2/2/16, 8:17 AM 365 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,


Selverine   

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

Temur
on 2/2/16, 8:29 AM

What have you already tried?

Temur
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

Selverine
on 2/7/16, 6:58 AM
0

Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
2988
| 5 3 5
Sudan
--Ahmed M.Elmubarak--


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

Hello,

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

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
0
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

Selverine
on 2/7/16, 6:55 AM

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/2/16, 8:17 AM
Seen: 365 times
Last updated: 2/7/16, 7:54 AM