[tryton-dev] Add a conditional page break inside report

2018-03-02 Thread Maxime Richez
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

Re: [tryton-dev] Add a conditional page break inside report

2018-03-02 Thread Sergi Almacellas Abellana
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

Re: [tryton-dev] Add a conditional page break inside report

2018-03-02 Thread Maxime Richez
> 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.