Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
12033 Visualizzazioni

How can I add field into notebook/page (Tab) near name?

I want to display number of record in page. For example I have notebook/page  with name ="Books"

and inside this page I have field One2many with books. I want to display count of books in this field in a front of string Books, so it would be look like:

(12) Books


How can I insert field directly to 

<page string="Books">
<field name="book_list" />
</page>

 

Avatar
Abbandona
Risposta migliore

Hi Kirill,

You can create new compute field and display like this ...

()
Book
Books

Thanks

 iWesabe

Avatar
Abbandona
Autore

Hi thank you for your response

Risposta migliore

Hi odoo community,


let me raise this question again. We are having the same issue here. We like to display the amount of records in the tab title.


Is there any solution for that in the meantime?


Thanks for any hint!


Regards,

Riccardo

Avatar
Abbandona
Autore Risposta migliore

Hi Shameen,

Thank you for your respond. I will try to use computed field for this porpouse.

But the question was how can I insert this field in to page name. The structure of page is:

<form>
<sheet>
<notebook>
<page string="Books"> - here I want to insert this computed field.
<field name="book_list"/> - One2many field
</page>
</notebook>
</sheet>
</form>


 
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ago 22
4420
3
set 24
15635
3
mar 16
4308
0
feb 16
4035
3
ott 21
4624