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 ?