Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • होटल
    रियल एस्टेट
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    कंसल्टिंग
    • अकाउंटिंग फ़र्म
    • Odoo पार्टनर
    • मार्केटिंग एजेंसी
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • टेक्सटाइल
    • Metal
    • फ़र्नीचर
    • फ़ूड
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    अन्य
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    डेमो देखें
  • कीमत
  • सहायता

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • सीआरएम
  • e-Commerce
  • लेखांकन
  • इन्वेंटरी
  • PoS
  • प्रोजेक्ट
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

Problem With Accents With a Custom PDF Report

Subscribe

Get notified when there's activity on this post

This question has been flagged
pdf
1 Reply
2051 Views
Avatar
Daniel

Hi, im making a custom pdf report in Spanish, but when i create the pdf, it seem like is not in utf-8. It look like this.

Lenguajes de marcas y sistemas de gestión de información.

I been trying to find, what i can do but i dont find anything.
Here i leave the template.

<?xml version="1.0" encoding="UTF-8"?>

<odoo>

    <template id="report_matricula_document" t-name="gestor_de_matriculas.report_matricula_document">

        <t t-call="web.html_container">

            <t t-foreach="docs" t-as="o">

                <div class="page">

                    <style>

                        * {

                            font-family: DejaVu Sans, sans-serif;

                        }

                    </style>


                    <div class="header">

                        <table style="width:100%;">

                            <tr>

                                <td style="width:20%">

                                    <img t-att-src="'/web/image/res.company/' + str(o.env.user.company_id.id) + '/logo'"

                                         style="max-height:60px;"/>

                                </td>

                                <td style="width:80%; text-align:center">

                                    <h2>

                                        <span t-esc="o.env.user.company_id.name"/>

                                    </h2>

                                </td>

                            </tr>

                        </table>

                    </div>


                    <div class="titulo" style="margin-top:10px">

                        <h3>DATOS DE MATRÍCULA</h3>

                    </div>


                    <table class="table table-sm" style="width:100%; border-collapse: collapse;">

                        <tr>

                            <td><strong>Referencia:</strong></td>

                            <td><span t-esc="o.name"/></td>

                            <td><strong>Fecha:</strong></td>

                            <td><span t-esc="o.create_date and o.create_date.strftime('%d/%m/%Y') or ''"/></td>

                        </tr>

                        <tr>

                            <td><strong>Alumno:</strong></td>

                            <td><span t-esc="o.alumno.name + ' ' + o.alumno.lastName"/></td>

                            <td><strong>DNI/NIE:</strong></td>

                            <td><span t-esc="o.alumno.dni_nie"/></td>

                        </tr>

                        <tr>

                            <td><strong>Fecha Nac.:</strong></td>

                            <td><span t-esc="o.alumno.date_birth and o.alumno.date_birth.strftime('%d/%m/%Y') or ''"/></td>

                            <td><strong>Teléfono:</strong></td>

                            <td><span t-esc="o.alumno.phone"/></td>

                        </tr>

                        <tr>

                            <td><strong>Dirección:</strong></td>

                            <td colspan="3"><span t-esc="o.alumno.adress"/></td>

                        </tr>

                        <tr>

                            <td><strong>Email:</strong></td>

                            <td colspan="3"><span t-esc="o.alumno.email"/></td>

                        </tr>

                    </table>


                    <div class="titulo" style="margin-top:10px">

                        <h3>CURSO</h3>

                    </div>


                    <table class="table table-sm" style="width:100%; border-collapse: collapse;">

                        <tr>

                            <td><strong>Curso:</strong></td>

                            <td><span t-esc="o.curso_id.name"/></td>

                            <td><strong>ID Curso:</strong></td>

                            <td><span t-esc="o.curso_id.id_course"/></td>

                        </tr>

                        <tr>

                            <td><strong>Promoción:</strong></td>

                            <td><span t-esc="o.curso_id.promotion"/></td>

                            <td><strong>Estado Académico:</strong></td>

                            <td><span t-esc="dict(o._fields['state'].selection).get(o.state)"/></td>

                        </tr>

                    </table>


                    <div t-if="o.asignaturas_convalidadas_ids" style="margin-top:10px">

                        <div class="titulo">

                            <h3>ASIGNATURAS CONVALIDADAS</h3>

                        </div>

                        <table class="table table-sm" style="width:100%; border-collapse: collapse;">

                            <thead>

                                <tr style="background-color: #f0f0f0;">

                                    <th>Asignatura</th>

                                </tr>

                            </thead>

                            <tbody>

                                <tr t-foreach="o.asignaturas_convalidadas_ids" t-as="asig">

                                    <td><span t-esc="asig.name"/></td>

                                </tr>

                            </tbody>

                        </table>

                    </div>


                    <div class="footer" style="margin-top:30px; text-align:right;">

                        <p>______________________________</p>

                        <p>Firma del Colegio</p>

                    </div>

                </div>

            </t>

        </t>

    </template>

</odoo>





0
Avatar
Discard
Avatar
Christoph Farnleitner
Best Answer

In general: You really shouldn't write your views - or any source code for that matter - in a language other than English. Use a translation file to make it multi-lingual. See https://www.odoo.com/documentation/18.0/developer/howtos/translations.html

Since 'Lenguajes de marcas y sistemas de gestión de información' translates to 'Markup languages and information management systems.' I assume this is just a show case of what 'ó' becomes (=>'ó') and it's not related to the actual content of your report.

Therefore, about, for example, 'Dirección' supposedly being rendered as 'Dirección', replace 'ó' with '&oacute;' and perform a similar change to all special characters. A list of entities to be used as a replacement can be found for example in https://www.w3schools.com/CHARSETS/ref_utf_latin1_supplement.asp.

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Quote Builder With Custom Rental Report (Studio)
pdf
Avatar
0
अक्तू॰ 25
594
Quote Builder With Custom Rental Report (Studio)
pdf
Avatar
0
अक्तू॰ 25
4
How to edit the header of the quote template Solved
pdf
Avatar
Avatar
Avatar
2
अग॰ 25
1392
Customize Report problem Solved
pdf
Avatar
Avatar
Avatar
3
अग॰ 25
1711
How to Edit Out the Blank Space in the Quote/Order Confirmation PDFs? Solved
pdf
Avatar
Avatar
Avatar
Avatar
3
अग॰ 25
2830
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now