Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Unable to print Arabic in Qweb-PDF template

Subscribe

Get notified when there's activity on this post

This question has been flagged
qwebtranslationsqweb-reportQweb-htmlqweb-pdf
2 Replies
4338 Views
Avatar
Ramish

I am having problem converting hardcoded arabic to be printed in Qweb-PDF. It’s working fine in Html but when i print it in pdf arabic is encoded. Any idea why?


like:

Buyer الÙ...Ø ́Øaري

Here: Ø§Ù„Ù...Ø ́Øaري was arabic for buyer which was enforce encoded in pdf but was okay in Qweb-html


code:

Buyer

المشتري



P.s: i am not having this issue in header or footer just in body.

0
Avatar
Discard
Avatar
Ramish
Author Best Answer

This is how my layout works: it works fine for the header but don't work inside page div. I have tried removing page div too...

<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-if="not o" t-set="o" t-value="doc"/>

<t t-if="not company">

<t t-if="company_id">
<t t-set="company" t-value="company_id"/>
t>
<t t-elif="o and 'company_id' in o and o.company_id.sudo()">
<t t-set="company" t-value="o.company_id.sudo()"/>
t>
<t t-else="else">
<t t-set="company" t-value="res_company"/>
t>
t>
<div t-attf-class="header o_company_#{company.id}_layout" t-att-style="report_header_style">
<div class="row">
<div class="col-auto col-3 mw-100 mb-2">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)" style="max-height: 45px;" alt="Logo"/>
<div class="col-9 text-end" style="margin-top:22px;" t-field="company.report_header" name="moto"/>
div>

<div class="col-auto col-3 mw-100 mb-2" >
<div style="border-bottom-style: dotted; font-size: small;">
<strong>Invoice Reference Number:strong>
<span t-field="o.name"/>
<strong>رقم الفاتورةstrong>
div>
<div style="border-bottom-style: dotted; font-size: small;">
<strong>Supply Date:strong>
<span t-field="o.create_date"/>
<strong>اإلصدار تاريخstrong>
div>
div>

 

<div class="page">
<div class="oe_structure"/>

<div style="text-align: center;">
<span><strong>TAX INVOICE / فاتورة الضريبةstrong>span>
div>

0
Avatar
Discard
Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,
Move the content inside the web.html_container and see if it makes any difference



Thanks

0
Avatar
Discard
Niyas Raphy (Walnut Software Solutions)

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

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
How can I use the full width of a page layout (without margins) in a QWEB report?
qweb qweb template view qweb-report Qweb-html qweb-pdf
Avatar
Avatar
1
Jun 24
3293
New image won't display in report
qweb qweb-report Qweb-html
Avatar
Avatar
1
Nov 21
7167
how to tidy up the appearance of the qweb report
qweb qweb-report qweb-css Qweb-html
Avatar
0
Jun 21
3809
Report translation issue.
qweb translations issues odooV8 qweb-report
Avatar
0
Mar 15
3876
[SOLVED]How to remove currency symbol from Monetary field qweb report ?
qweb qweb-report
Avatar
Avatar
Avatar
Avatar
7
Oct 25
29695
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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