Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2189 Ansichten
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

Avatar
Verwerfen
Beste Antwort

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


Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Jan. 24
1471
1
Feb. 25
2367
1
März 24
2408
2
Juni 24
3445
1
Feb. 24
2004