get record data openerp database in xml view



What I want is to compare a boolean from the database with true or false.


My code:



<t t-if="record.myrecord.raw_value === true">
<!--dothis-->
</t>
<t t-if="record.myrecord.raw_value === false">
<!--dothis-->
</t>


this code doesn't work, could someone help me look at it?


No comments:

Post a Comment