تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5414 أدوات العرض

Hello,

I have a RML template using STORY structure exactly like addons/base/res/report/business_card.xsl

In each card there is a date. So I need to print this date in the good TimeZone. So I tried with FormatLang in different ways :

<xsl:template match="order_line" mode="story">
    <xsl:variable name="d"><xsl:value-of select="due_date"/></xsl:variable>
    <para style="nospace">[[ formatLang($d,date_time=True) ]]</para>
    <para style="nospace"><xsl:value-of select="qty"/><xsl:text> </xsl:text><xsl:value-of select="product_name"/></para>
    <para style="nospace"><xsl:value-of select="customer_name"/></para>
    <xsl:if test="position() < last()">
        <nextFrame/>
    </xsl:if>
</xsl:template>


<xsl:template match="order_line" mode="story">
    <xsl:variable name="d"><xsl:value-of select="due_date"/></xsl:variable>
    <para style="nospace"><xsl:value-of select="[[ formatLang($d,date_time=True) ]]/></para>
    <para style="nospace"><xsl:value-of select="qty"/><xsl:text> </xsl:text><xsl:value-of select="product_name"/></para>
    <para style="nospace"><xsl:value-of select="customer_name"/></para>
    <xsl:if test="position() < last()">
        <nextFrame/>
    </xsl:if>
</xsl:template>

But either I get a Internal Error or it prints the function prototype without calling it (as plain text). What's wrong ?

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
يوليو 24
8010
0
أبريل 17
2844
1
أبريل 17
4172
2
نوفمبر 15
4572
0
مارس 15
4369