Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
783 Ansichten

  t t-if="object.state == 'draft'"

                        Your invoice has been paid. t t-out="object.name"

                    /t

                    t t-else=""

                        Your invoice is pending payment.

                    /t

in view the output is Your invoice has been paid. Your invoice is pending payment. and didn't show the value of object.name so how to render the variable and take the if statement into consideration

Avatar
Verwerfen
Autor Beste Antwort

didnt work, I need a method to render html content consideration of which model and record exist.


Avatar
Verwerfen
Beste Antwort

Hi,

Try to use t-field instead of t-out.


Hope it helps

Avatar
Verwerfen