Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1335 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 24
1677
2
thg 7 24
1812
1
thg 4 24
4821
0
thg 1 24
1399
0
thg 10 23
1403