Odoo Help

0

Problem with "if" syntax in report

By
Anne-Sylvie Burri
on 11/6/13, 5:20 AM 699 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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 11/6/13, 5:20 AM
Seen: 699 times
Last updated: 3/16/15, 8:10 AM