Code: Select all
<p><span><input type="checkbox" />Quotation(RFQ) </span></p>
Code: Select all
t-field = "o.quotation"
if ยังไงบ้างครับ
Moderator: mindphp
Code: Select all
<p><span><input type="checkbox" />Quotation(RFQ) </span></p>
Code: Select all
t-field = "o.quotation"
code check boxthatsawan wrote:เอา code เต็ม
t-field = "o.quotation" ใส่ไปอย่างไง
ต้องการผลอย่างไร
Code: Select all
<td><p><span><input type="checkbox"/>Quotation(RFQ)</span></p></td>
Code: Select all
checked="checked"
Code: Select all
<t t-if="o.quotation" == 1>
<input checked="checked" type="checkbox"/>
</t>
Code: Select all
<t t-if="o.quotation" == 0>
<input type="checkbox"/>
</t>
Code: Select all
<span class="d-inline-block text-center o_thread_tooltip_snailmail">
<t t-if="status === 'sent'">
<i class='fa fa-check o_thread_tooltip_snailmail_icon' title="Sent" role="img" aria-label="Sent"/>
Sent
</t>
<t t-elif="status === 'canceled'">
<i class='fa fa-trash-o o_thread_tooltip_snailmail_icon' title="Canceled" role="img" aria-label="Canceled"/>
Canceled
</t>
<t t-elif="status === 'pending'">
<i class='fa fa-clock-o o_thread_tooltip_snailmail_icon' title="Awaiting Dispatch" role="img" aria-label="Awaiting Dispatch"/>
Awaiting Dispatch
</t>
<t t-else="">
<i class='fa fa-exclamation text-danger o_thread_tooltip_snailmail_icon' title="Error" role="img" aria-label="Error"/>
Error
</t>
</span>
Users browsing this forum: No registered users and 8 guests