Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2181 มุมมอง
class="partner-list-contents">
t-foreach="partners"
t-as="partner"
t-key="partner.id">
t-if="partner.parent_id==False">
partner="partner"
selectedPartner="state.selectedPartner"
detailIsShown="state.detailIsShown"
isBalanceDisplayed="isBalanceDisplayed"
onClickEdit.bind="editPartner"
onClickPartner.bind="clickPartner"/>


the parent_id is many2one field.  I need to display in the pos customer list, the customer who dont have the parent id

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Verify the variable you're using in the t-ifcondition. Ensure that the variable name is accurate, and confirmthat the condition you're utilizing is suitable. For instance, ifyou're verifying a boolean value, the condition should be structuredlike this:

<divt-if="partner.parent_id == false">

So, instead of usingFalse, you should use falsein your t-if condition.

       


Hope it helps


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ม.ค. 24
1464
1
ก.พ. 25
2343
1
มี.ค. 24
2402
2
มิ.ย. 24
3436
1
ก.พ. 24
1991