This question has been flagged
2182 Views

Hi everybody,

I have a problem with the "if" syntax for a report. Here is my code :

[[ (o.partner_id.np==True and 'Notify Party' or '') ]]

[[ (o.partner_id.np==True and (o.partner_id.npname)) ]]
[[ (o.partner_id.np==True and (o.partner_id.npstreet)) ]]
[[ (o.partner_id.np==True and (o.partner_id.npstreet2)) ]]
[[ (o.partner_id.np==True and (o.partner_id.npzip)) ]] [[ (o.partner_id.np==True and (o.partner_id.npcity)) ]]
[[ (o.partner_id.np==True and (o.partner_id.npstate.name)) ]]
[[ (o.partner_id.np==True and (o.partner_id.npcountry.name)) ]]
[[ (o.partner_id.np==True and (o.partner_id.npphone)) ]]
[[ (o.partner_id.np==True and (o.partner_id.npfax)) ]]
[[ (o.partner_id.np==True and (o.partner_id.npemail)) ]]

I really don't understand why the first and second lines appear correctyl but after that only the code appear.

Maybe someone could help me ?

Thanks in advance.

JMB

Avatar
Discard