Skip to Content
Menu
This question has been flagged
1 Reply
727 Views

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

Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
1
Sep 24
545
2
Jul 24
442
1
Apr 24
2062
0
Jan 24
366
0
Oct 23
350