跳至內容
選單
此問題已被標幟
3 回覆
12049 瀏覽次數

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>

 

頭像
捨棄
最佳答案

Hi Kirill,

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

()
Book
Books

Thanks

 iWesabe

頭像
捨棄
作者

Hi thank you for your response

最佳答案

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

頭像
捨棄
作者 最佳答案

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>


 
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
8月 22
4423
3
9月 24
15637
3
3月 16
4316
0
2月 16
4039
3
10月 21
4631