Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Problem With Accents With a Custom PDF Report

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
pdf
1 Balas
2045 Tampilan
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
Buang
Avatar
Christoph Farnleitner
Jawaban Terbai

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
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
Quote Builder With Custom Rental Report (Studio)
pdf
Avatar
0
Okt 25
589
Quote Builder With Custom Rental Report (Studio)
pdf
Avatar
0
Okt 25
4
How to edit the header of the quote template Diselesaikan
pdf
Avatar
Avatar
Avatar
2
Agu 25
1385
Customize Report problem Diselesaikan
pdf
Avatar
Avatar
Avatar
3
Agu 25
1701
How to Edit Out the Blank Space in the Quote/Order Confirmation PDFs? Diselesaikan
pdf
Avatar
Avatar
Avatar
Avatar
3
Agu 25
2823
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik 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