Skip to Content
Menu
This question has been flagged
2 Replies
4677 Views

I am having a requirement to run a code on condition. For example in following code if employement type is 'Regular' I want to show the lines. Can anyone help me to acheve this?

Condition : [[o.employment_type_id.name == "Regular"]]
Code :  

<para style="terp_default_Bold_7">1. PURPOSE</para>
    <para style="terp_default_8_line">______

</para>    
    <para style="terp_default_8_line">
      <font color="white"> </font>
    </para>    
    <para style="terp_default_8">requirement for competent Professional with qualification and experience.</para>

Avatar
Discard
Author Best Answer

I found the answer for above problem:

<div t-if="o.employment_type_id.name == "Regular" class="col-xs-6">

    <para style="terp_default_Bold_7">1. PURPOSE</para>

    <para style="terp_default_8_line">______</para>

     <para style="terp_default_8_line">

            <font color="white"> </font>

    </para>

    <para style="terp_default_8">requirement for competent Professional with qualification and experience.</para>

</div>


Avatar
Discard
Best Answer

Hi Shiv Modi,

Try this type:

<para style="terp_default_8">[[ repeatIn(objects,'o') ]]</para> 

<para style="terp_header"><b>Refund [[ (o.type=='out_refund' ]] [[ o.number ]]</b></para>

Avatar
Discard