[IMP/FIX] base, res_company: changed the default headers in order to add the default styles in generated RML, to allow their modification (and the report printing of chinese characters, for example)
bzr revid: qdp-launchpad@openerp.com-20130528085920-ifabgl11jfimixqd
This commit is contained in:
parent
6fbae5b0e6
commit
a5d944fb87
|
@ -272,6 +272,10 @@ class res_company(osv.osv):
|
||||||
<header>
|
<header>
|
||||||
<pageTemplate>
|
<pageTemplate>
|
||||||
<frame id="first" x1="28.0" y1="28.0" width="%s" height="%s"/>
|
<frame id="first" x1="28.0" y1="28.0" width="%s" height="%s"/>
|
||||||
|
<stylesheet>
|
||||||
|
<!-- Set here the default font to use for all <para> tags -->
|
||||||
|
<parastyle name='Normal' fontName="DejaVu Sans"/>
|
||||||
|
</stylesheet>
|
||||||
<pageGraphics>
|
<pageGraphics>
|
||||||
<fill color="black"/>
|
<fill color="black"/>
|
||||||
<stroke color="black"/>
|
<stroke color="black"/>
|
||||||
|
@ -281,6 +285,9 @@ class res_company(osv.osv):
|
||||||
<drawCentredString x="%s" y="%s">[[ company.partner_id.name ]]</drawCentredString>
|
<drawCentredString x="%s" y="%s">[[ company.partner_id.name ]]</drawCentredString>
|
||||||
<stroke color="#000000"/>
|
<stroke color="#000000"/>
|
||||||
<lines>%s</lines>
|
<lines>%s</lines>
|
||||||
|
<!-- Set here the default font to use for all <drawString> tags -->
|
||||||
|
<!-- don't forget to change the 2 other occurence of <setFont> above if needed -->
|
||||||
|
<setFont name="DejaVu Sans" size="8"/>
|
||||||
</pageGraphics>
|
</pageGraphics>
|
||||||
</pageTemplate>
|
</pageTemplate>
|
||||||
</header>"""
|
</header>"""
|
||||||
|
@ -304,13 +311,16 @@ class res_company(osv.osv):
|
||||||
<pageTemplate>
|
<pageTemplate>
|
||||||
<frame id="first" x1="1.3cm" y1="3.0cm" height="%s" width="19.0cm"/>
|
<frame id="first" x1="1.3cm" y1="3.0cm" height="%s" width="19.0cm"/>
|
||||||
<stylesheet>
|
<stylesheet>
|
||||||
<paraStyle name="main_footer" fontName="DejaVu Sans" fontSize="8.0" alignment="CENTER"/>
|
<!-- Set here the default font to use for all <para> tags -->
|
||||||
<paraStyle name="main_header" fontName="DejaVu Sans" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
|
<parastyle name='Normal' fontName="DejaVu Sans"/>
|
||||||
|
<paraStyle name="main_footer" fontSize="8.0" alignment="CENTER"/>
|
||||||
|
<paraStyle name="main_header" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
|
||||||
</stylesheet>
|
</stylesheet>
|
||||||
<pageGraphics>
|
<pageGraphics>
|
||||||
|
<!-- Set here the default font to use for all <drawString> tags -->
|
||||||
|
<setFont name="DejaVu Sans" size="8"/>
|
||||||
<!-- You Logo - Change X,Y,Width and Height -->
|
<!-- You Logo - Change X,Y,Width and Height -->
|
||||||
<image x="1.3cm" y="%s" height="40.0" >[[ company.logo or removeParentNode('image') ]]</image>
|
<image x="1.3cm" y="%s" height="40.0" >[[ company.logo or removeParentNode('image') ]]</image>
|
||||||
<setFont name="DejaVu Sans" size="8"/>
|
|
||||||
<fill color="black"/>
|
<fill color="black"/>
|
||||||
<stroke color="black"/>
|
<stroke color="black"/>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue