Odoo Help

0
0
Zbik
On 4/7/15, 10:56 AM

I found the answer:

<t t-if="'xxx' in o">FOO</t> 

Update, or:

<t t-if='o.get("xxx")'>FOO</t> 



0
Rucha Dave (rda)
On 4/8/15, 2:10 AM

You can write, also this,

<t t-if="o.xxx">

FOO

</t>

This is not a good solution, if filed xxx not exists in model cause the error: ... object has no attribute 'xxx'" while evaluating.

Zbik
on 4/8/15, 6:17 AM

You are right, I misunderstood the question.. I forgot to notice "field exists (is defined in model)".

Rucha Dave (rda)
on 4/8/15, 6:26 AM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/7/15, 10:08 AM
Seen: 2413 times
Last updated: 8/25/17, 12:39 PM