On 2017-03-24 07:14, Richard PALO wrote: > Another question I have in this report, is I'm trying > to avoid printing the 'Reference:' field if empty (mostly client invoices). > > So I first tried simply putting > > <if test="invoice.origins or invoice.reference"> > > </if> > around the 'Reference:' clause, but it still printed a blank 'Reference:' > field. > > Tried just "invoice.reference" and some other combinations to no avail. > > Is there some special magic needed to add a guard here? > I doubled checked to see that it wasn't using a cached file, and that > Reference was indeed empty, > so there seems to be something with the logic.
I see only two possibilities: - the report is cached because you are testing on a posted invoice - the "invoice.origins or invoice.reference" is not false. Maybe a space in the reference field. -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/20170324081009.GM43953%40tetsuo.
