How can i avoid to print when i have many records in my reports context?

(Carlos chicata) #1

Hi community!
i’m trying to generate a a report using many entries in my tree view, it works fine if i only select one entry but with several entries print them instead to generate a report.

(Sergi Almacellas Abellana) #2

How you defined you report template?

In order to support multiple record the template nust have a for loop that iterates over the records variable. This variable wil be set with all the selected records.

(Cédric Krier) #3

You can define the with single field set to True (like the invoice). With this setup, records will always contain a single record.

(Carlos chicata) #4

Cedric, thanks for your idea; but my program print a report when i selected several records automatically before to display the report; and i don’t want that.

(Cédric Krier) #5

I do not understand what you mean.

(Sergi Almacellas Abellana) #6

Could you explain what do you want?

(Carlos chicata) #7

well, when i select several records and i want to generate a report from them first the report to print and then to display the report in office program; but i don’t want the report print, only display it

(Cédric Krier) #8

Sorry, for me there are too many words put together to understand the meaning.

So do not print it.