diff options
Diffstat (limited to 'bin/addons/base/report/custom_default.xsl')
| -rw-r--r-- | bin/addons/base/report/custom_default.xsl | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/bin/addons/base/report/custom_default.xsl b/bin/addons/base/report/custom_default.xsl new file mode 100644 index 00000000000..c9194789f93 --- /dev/null +++ b/bin/addons/base/report/custom_default.xsl @@ -0,0 +1,36 @@ +<?xml version = '1.0' encoding="utf-8"?> + +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> + <xsl:variable name="signature" select="//corporate-header/signature"/> + <xsl:variable name="title">Tiny ERP Report</xsl:variable> + <xsl:variable name="leftMargin">1cm</xsl:variable> + <xsl:variable name="rightMargin">1cm</xsl:variable> + <xsl:variable name="topMargin">1cm</xsl:variable> + <xsl:variable name="bottomMargin">1cm</xsl:variable> + <xsl:variable name="pageSize">21cm,29.7cm</xsl:variable> + + <xsl:variable name="page_format">a4_letter</xsl:variable> + + <xsl:template name="first_page_frames"> + <frame id="column" x1="1.5cm" y1="1.5cm"> + <xsl:attribute name="width"> + <xsl:value-of select="/report/config/PageWidth - 85"/> + </xsl:attribute> + <xsl:attribute name="height"> + <xsl:value-of select="/report/config/PageHeight - 100"/> + </xsl:attribute> + </frame> + </xsl:template> + + <xsl:template name="other_pages_frames"> + <frame id="column" x1="1.5cm" y1="1.5cm"> + <xsl:attribute name="width"> + <xsl:value-of select="/report/config/PageWidth - 85"/> + </xsl:attribute> + <xsl:attribute name="height"> + <xsl:value-of select="/report/config/PageHeight - 100"/> + </xsl:attribute> + </frame> + </xsl:template> + +</xsl:stylesheet> |
