summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>2013-05-28 10:59:20 +0200
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>2013-05-28 10:59:20 +0200
commita5d944fb87b43ba4045b67a80e568f65ea1df99f (patch)
tree52328394f0cb7f7c426d0ddf20bf71af4b65e6ed
parent6fbae5b0e6c956c950b6e261d94c419e2a348651 (diff)
[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
-rw-r--r--openerp/addons/base/res/res_company.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/openerp/addons/base/res/res_company.py b/openerp/addons/base/res/res_company.py
index cd17f6da3d9..20e94b3e631 100644
--- a/openerp/addons/base/res/res_company.py
+++ b/openerp/addons/base/res/res_company.py
@@ -272,6 +272,10 @@ class res_company(osv.osv):
<header>
<pageTemplate>
<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>
<fill color="black"/>
<stroke color="black"/>
@@ -281,6 +285,9 @@ class res_company(osv.osv):
<drawCentredString x="%s" y="%s">[[ company.partner_id.name ]]</drawCentredString>
<stroke color="#000000"/>
<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>
</pageTemplate>
</header>"""
@@ -304,13 +311,16 @@ class res_company(osv.osv):
<pageTemplate>
<frame id="first" x1="1.3cm" y1="3.0cm" height="%s" width="19.0cm"/>
<stylesheet>
- <paraStyle name="main_footer" fontName="DejaVu Sans" fontSize="8.0" alignment="CENTER"/>
- <paraStyle name="main_header" fontName="DejaVu Sans" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
+ <!-- Set here the default font to use for all <para> tags -->
+ <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>
<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 -->
<image x="1.3cm" y="%s" height="40.0" >[[ company.logo or removeParentNode('image') ]]</image>
- <setFont name="DejaVu Sans" size="8"/>
<fill color="black"/>
<stroke color="black"/>