encoding error in PDF file

Asked by ArtERP.ru

Hi all. PDF generate wrong

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Vinay Rana (OpenERP)
Solved:
Last query:
Last reply:
Revision history for this message
ArtERP.ru (trokbrok) said :
#1

import time
from report import report_sxw

class mmt_invc_lines(report_sxw.rml_parse):

    def __init__(self, cr, uid, name, context):
        super(mmt_invc_lines, self).__init__(cr, uid, name, context)

report_sxw.report_sxw('report.mmt.invc.lines',
 'mmt.invc',
 'addons/MMT/report/mmt_invc_lines.rml',
 header=False,
 parser=mmt_invc_lines)

Revision history for this message
ArtERP.ru (trokbrok) said :
#2
Revision history for this message
Best Vinay Rana (OpenERP) (vra-openerp) said :
#3

Hello,

It is not encoding error, It is font problem for that you need to registered the used font in rml.You can check the related example in l10n_ch module report rml file : "invoice.rml".

Hope this will help you.
Thanks.

Revision history for this message
ArtERP.ru (trokbrok) said :
#4

Thanks vra (openerp), that solved my question.