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

Hi everyone,


I'm working on a new report in STUDIO. There's one field that I would like to display on the report but I haven't managed to do so.

It's a "selection" field and whatever I try to display the content of this field does not work.


The field is "x_studio_reseau" and there are 3 possible values : A ; B ; C.

I've tried 




The first one doesn't display anything and the other two generate an error.


I need your help! Thanks

頭像
捨棄
最佳答案

Hi,

By reading your query what I understand us that you have attached images of some methods which you might tried, but its not getting displayed. If you haven't tried the method of adding field using xml code please try this

Method which may work. Follow the below steps:

1) Go to settings and turn on the developer mode by clicking the "Activate the developer mode" button under the Developer Tools.

2) Now go to the module in which the report belongs.

3) Now switch to studio mode by clicking on the "Toggle Studio" button found in the top right corner.

4) Now choose the "Reports" menu in the menu(For reference: https://www.cybrosys.com/odoo/odoo-books/odoo-15-studio/reports/)

5) Now select the report in which you need to add the field.

6) Now follow these steps to get its XML code (https://www.cybrosys.com/odoo/odoo-books/odoo-15-studio/reports/xml-editor/)

7) Find the place in which you need to add the field. And add XML code which may be similar to:

x_studio_reseau:

8) Now Save and Close the studio.

Using the above code the field and value will be shown in PDF, but only if there is value on the field.

Regards

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
9月 24
1601
2
7月 24
1759
1
4月 24
4759
0
1月 24
1374
0
10月 23
1375