跳至內容
選單
此問題已被標幟
1 回覆
2183 瀏覽次數
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


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
1月 24
1465
1
2月 25
2351
1
3月 24
2403
2
6月 24
3438
1
2月 24
1995