Skip to Content
Odoo เมนู
  • ลงชื่อเข้าใช้
  • ทดลองใช้ฟรี
  • แอป
    การเงิน
    • ระบบบัญชี
    • ระบบการออกใบแจ้งหนี้
    • ระบบบัญชีรายจ่าย
    • ระบบการจัดการข้อมูลผ่านสเปรดชีต (BI)
    • เอกสาร
    • ระบบลงลายเซ็น
    การขาย
    • ลูกค้าสัมพันธ์
    • การขาย
    • POS ร้านค้า
    • POS ร้านอาหาร
    • ระบบสมัครสมาชิก
    • การเช่า
    การจัดการเว็บไซต์
    • เครื่องมือสร้างเว็บไซต์
    • ระบบการขายออนไลน์
    • บล็อก
    • ฟอรั่ม
    • ไลฟ์แชท
    • ระบบการอบรมออนไลน์
    ซัพพลายเชน
    • คลังสินค้า
    • ระบบการผลิต
    • PLM
    • ระบบการจัดซื้อ
    • การซ่อมบำรุง
    • ระบบจัดการคุณภาพ
    ทรัพยากรบุคคล
    • ข้อมูลพนักงาน
    • ระบบสรรหาบุคลากร
    • ระบบการลา
    • การประเมิน
    • ระบบการแนะนำพนักงาน
    • ระบบจัดการยานพาหนะ
    การตลาด
    • โซเชียลมาร์เก็ตติ้ง
    • การตลาดผ่านอีเมล
    • ระบบการตลาดผ่าน SMS
    • ระบบการจัดงานอีเวนต์
    • การตลาดแบบอัตโนมัติ
    • ระบบแบบสำรวจ
    การบริการ
    • โปรเจกต์
    • ระบบบันทึกเวลา
    • ระบบการจัดการบริการภาคสนาม
    • ระบบดูแลช่วยเหลือ
    • การวางแผน
    • การนัดหมาย
    ประสิทธิผล
    • ระบบแสดงความคิดเห็น
    • ระบบการอนุมัติ
    • ไอโอที
    • VoIP
    • คลังข้อมูล
    • WhatsApp
    แอปพลิเคชันของบุคคลที่สาม Odoo สตูดิโอ แพลตฟอร์มคลาวด์ของ Odoo
  • อุตสาหกรรม
    การค้าปลีก
    • ร้านขายหนังสือ
    • ร้านขายเสื้อผ้า
    • ร้านขายเฟอร์นิเจอร์
    • ร้านขายของชำ
    • ร้านขายฮาร์ดแวร์
    • ร้านขายของเล่น
    Food & Hospitality
    • บาร์และผับ
    • ร้านอาหาร
    • อาหารฟาสต์ฟู้ด
    • Guest House
    • ตัวแทนจำหน่ายเครื่องดื่ม
    • Hotel
    อสังหาริมทรัพย์
    • Real Estate Agency
    • บริษัทสถาปัตยกรรม
    • บริษัทรับเหมา
    • การจัดการอสังหาริมทรัพย์
    • การจัดสวน
    • สมาคมเจ้าของอสังหาริมทรัพย์
    ปรึกษา
    • สำนักงานบัญชี
    • Odoo พาร์ทเนอร์
    • เอเจนซี่การตลาด
    • สำนักงานกฎหมาย
    • บริการสรรหาบุคลากร
    • การตรวจสอบและการรับรอง
    ระบบการผลิต
    • Textile
    • เหล็ก
    • เฟอร์นิเจอร์
    • อาหาร
    • Brewery
    • ของขวัญขององค์กร
    สุขภาพ & ฟิตเนส
    • ชมรมกีฬา
    • ร้านขายแว่นตา
    • ฟิตเนส
    • ผู้ประกอบวิชาชีพด้านสุขภาพ
    • ร้านขายยา
    • ร้านทำผม
    Trades
    • ช่างซ่อม
    • ฮาร์ดแวร์และการสนับสนุนด้านไอที
    • ระบบพลังงานแสงอาทิตย์
    • ช่างทำรองเท้า
    • บริการทำความสะอาด
    • HVAC Services
    อื่น ๆ
    • Nonprofit Organization
    • สำนักงานสิ่งแวดล้อม
    • ร้านเช่าป้ายโฆษณา
    • การถ่ายภาพ
    • ร้านเช่าจักรยาน
    • ตัวแทนจำหน่ายซอฟต์แวร์
    Browse all Industries
  • คอมมูนิตี้
    ศึกษา
    • บทเรียน
    • เอกสารกำกับโปรแกรม
    • การรับรอง
    • การฝึกอบรม
    • บล็อก
    • พอดแคสต์
    เพิ่มศักยภาพให้กับการศึกษา
    • โปรแกรมการศึกษา
    • Scale Up! Business Game
    • เยี่ยมชม 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
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
ช่วยเหลือ

Problem With Accents With a Custom PDF Report

ติดตาม

รับการแจ้งเตือนเมื่อมีกิจกรรมในโพสต์นี้

คำถามนี้ถูกตั้งค่าสถานะ
pdf
1 ตอบกลับ
2050 มุมมอง
อวตาร
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
อวตาร
ละทิ้ง
อวตาร
Christoph Farnleitner
คำตอบที่ดีที่สุด

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
อวตาร
ละทิ้ง
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!

สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!

ลงชื่อ
Related Posts ตอบกลับ มุมมอง กิจกรรม
Quote Builder With Custom Rental Report (Studio)
pdf
อวตาร
0
ต.ค. 25
594
Quote Builder With Custom Rental Report (Studio)
pdf
อวตาร
0
ต.ค. 25
4
How to edit the header of the quote template แก้ไขแล้ว
pdf
อวตาร
อวตาร
อวตาร
2
ส.ค. 25
1392
Customize Report problem แก้ไขแล้ว
pdf
อวตาร
อวตาร
อวตาร
3
ส.ค. 25
1707
How to Edit Out the Blank Space in the Quote/Order Confirmation PDFs? แก้ไขแล้ว
pdf
อวตาร
อวตาร
อวตาร
อวตาร
3
ส.ค. 25
2829
คอมมูนิตี้
  • บทเรียน
  • เอกสารกำกับโปรแกรม
  • ฟอรั่ม
โอเพนซอร์ส
  • ดาวน์โหลด
  • Github
  • Runbot
  • การแปล
บริการ
  • โฮสติ้ง odoo.sh เซิร์ฟเวอร์
  • การสนับสนุน
  • อัปเกรด
  • การพัฒนาที่กำหนดเอง
  • การศึกษา
  • ค้นหานักบัญชี
  • ค้นหาพาร์ทเนอร์
  • ร่วมเป็นพาร์ทเนอร์
เกี่ยวกับเรา
  • บริษัทของเรา
  • ทรัพย์สินในรูปของเครื่องหมายการค้า
  • ติดต่อเรา
  • งาน
  • ระบบการจัดงานอีเวนต์
  • พอดแคสต์
  • บล็อก
  • ลูกค้า
  • กฎหมาย • ความเป็นส่วนตัว
  • ความปลอดภัย
الْعَرَبيّة 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 เป็นชุดแอปธุรกิจแบบเปิดที่ครอบคลุมทุกความต้องการของบริษัทของคุณ อาธิ CRM eCommerce ระบบบัญชี ระบบสินค้าคงคลัง ระบบการขายหน้าร้าน โปรเจกต์ และ อีกมากมาย

ความเหนือกว่าอันเป็นเอกลักษณ์ของ 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