El 02/03/18 a les 10:47, Maxime Richez ha escrit: > Hello, > > Does anyone knows a define a conditional page break inside a report ? > We need to print a page as a "big label" and if i select multiple records, > each record should fill exactly one page. And if i print only one record, i > don't want an empty blank page after the printed page. > Same problem with the purchases: > If i try to print multiple purchases, there is no page break and all the > selected purchases are printed following each other > Thanks for help !
We have some custom modules that need the same behaviour and we implemented it by surrounding the page break with the following if condition: if test="records and record != records[-1]" /if This will add a page break for all pages except the last one. Hope it helps. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/eeb39621-f9e3-20c5-f76e-6f7f21b4b2fa%40koolpi.com.