zl程序教程

您现在的位置是:首页 >  其它

当前栏目

odoo qweb lt gt 为何用不成呢

gt lt 为何 odoo
2023-09-11 14:20:48 时间
<t t-foreach="len(company.csbt.replace(',',',').split(','))" t-as="rec">
     <t t-if=" (rec_index !=  0 ) and (rec_index != 1) and (rec_index lt (rec_size - 2))">
        <td >..</td>
     </t>
 </t>>

lt,gt 通不过,百试不得其解,只有换成其它运算

 

<t t-if=" (rec_index !=  0 ) and (rec_index != 1) and (rec_index != (rec_size - 2)) and (rec_index != (rec_size - 1))">
   <td >..</td>
</t>