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

pdf format problem

Subscribe

Get notified when there's activity on this post

This question has been flagged
pdf
1633 Views
Avatar
Kareem

i design my pdf and when i add it in templet the format is different 

  • first that my design using normal html 


    • the problem when i use qweb template 
      • first qweb-html
        • bg-color not the same also the table not have bg-color also the row behave differently 
        • i can't even print this page 
        • second  qweb-pdf

          • not formatted also 
        • i searched and i found to add report.url = localhost:portName and did't work 
        • aslo i expected the css file the same class but it's different 
        • bootstrap --> 


          • odoo qweb


            • how i handle format if i did't using bootstrap i still have formatted issue 

qweb-pdf --> it's the same as normal html 

<template id="report_purchase_report">
<t t-foreach="docs" t-as="property">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<div class="page" style="width: 21cm; min-height: 29.7cm;font-size: 14px;">
<style>
table {
font-size: 14px;
}
</style>
<section>
<div class="d-flex justify-content-center mb-3">
<div class="card w-50 shadow">
<div class="card-header text-bg-secondary text-center fw-bold">
Purchase Order
<br/>
(P.O.)
</div>
<div class="card-body d-flex justify-content-around align-items-center">
<div class="fw-bold">PO No.:</div>
<div class="flex-fill text-start">23000874</div>
<div class="fw-bold">Issue Date:</div>
<div class="flex-fill">18-oct-23</div>
</div>
</div>
</div>
</section>
<section>
<div class="card mb-3 shadow">
<div class="card-header text-bg-secondary text-start fw-bold">
Purchase Information
</div>
<div class="card-body">
<table>
<tbody>
<tr>
<td style="width: 3.1cm">Name:</td>
<td class="fw-bold">KCML (Karbala Cement Manufacturing Limited )</td>
</tr>
<tr>
<td>Contact Person:</td>
<td>Mohamed Ali Hamoud Obaiedan Al-tmimi</td>
</tr>
<tr>
<td>Address:</td>
<td class="fw-bold">Karbala Cement Plant , Al-Haj Haighway</td>
</tr>
<tr>
<td>Email:</td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<section>
<div class="card mb-3 shadow">
<div class="card-header text-bg-secondary text-start fw-bold">
Supplier Information
</div>
<div class="card-body d-flex">
<table>
<tbody>
<tr>
<td style="width: 3.1cm">Suppler Name:</td>
<td class="text-uppercase">naffco fzco</td>
</tr>

<tr>
<td>Contact Person:</td>
<td></td>
</tr>

<tr>
<td>Address:</td>
<td>P.O box 262169, Dubai Unted Arab Emirate</td>
</tr>

<tr>
<td>Phone #:</td>
<td></td>
</tr>

<tr>
<td>Email:</td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<section>
<div class="d-flex justify-content-between mb-3">
<div class="card shadow" style="width: 48%">
<div class="card-header text-bg-secondary fw-bold">
Requester Department
</div>
<div class="card-body text-center"></div>
</div>
<div class="card shadow" style="width: 48%">
<div class="card-header text-bg-secondary fw-bold">
Final Approver
</div>
<div class="card-body text-center">Vasilerim Karalia</div>
</div>
</div>
</section>
<section>
<p class="border border-3 rounded-4 border-secondary p-2 mb-3 shadow">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip
</p>
</section>
<section>
<table
class="table shadow align-middle table-bordered table-sm text-center"
style="vertical-align:middle"
>
<thead class="table-secondary">
<tr>
<th>No.</th>
<th>Item Code</th>
<th>Item Description</th>
<th style="width: 1cm">QTY</th>
<th style="width: 1.5cm">UOM</th>
<th style="width: 2.7cm">Delivery Date</th>
<th style="width: 2.1cm">ETA Date</th>
<th style="width: 2cm">Unit Cost</th>
<th style="width: 2.1cm">Total Cost</th>
</tr>
</thead>
<tbody>
<tr>
<th>1</th>
<td>04090100225</td>
<td>
Replacement Of reel 60MTR for firefighting man truck type: TGS
33.360
</td>
<td>10000</td>
<td>EA</td>
<td>31-Aug-23</td>
<td>31-Aug-23</td>
<td>5,000.00</td>
<td>5,000.00</td>
</tr>
<tr>
<th>1</th>
<td>04090100225</td>
<td>
Replacement Of Double pole rocker switch body OFF/ON Momentary
for firefighting man truck type: Tgs 33.360
</td>
<td>1</td>
<td>EA</td>
<td>31-Aug-23</td>
<td></td>
<td>5,000.00</td>
<td>5,000.00</td>
</tr>
<tr>
<th>1</th>
<td>04090100225</td>
<td>
Replacement Of Double pole rocker switch body OFF/ON Momentary
for firefighting man truck type: Tgs 33.360
</td>
<td>1</td>
<td>EA</td>
<td>31-Aug-23</td>
<td></td>
<td>5,000.00</td>
<td>5,000.00</td>
</tr>
<tr>
<th>1</th>
<td>04090100225</td>
<td>
Replacement Of Double pole rocker switch body OFF/ON Momentary
for firefighting man truck type: Tgs 33.360
</td>
<td>1</td>
<td>EA</td>
<td>31-Aug-23</td>
<td></td>
<td>5,000.00</td>
<td>5,000.00</td>
</tr>
</tbody>
<tfoot class="table-secondary">
<tr>
<th class="text-end" colspan="8">Total (USD)</th>
<td>15,055.00</td>
</tr>
</tfoot>
</table>
</section>
<section>
<div class="card mb-3 shadow" style="page-break-before: always;">
<div class="card-header text-bg-secondary text-start fw-bold">
Terms And Conditions
</div>
<div class="card-body">
<table>
<tr>
<td style="width: 4.4cm;">Payment Terms:</td>
<td>100% advance payment</td>
</tr>
<tr>
<td>Delivery Terms:</td>
<td></td>
</tr>
<tr>
<td>Delivery Place:</td>
<td>KCML</td>
</tr>
<tr>
<td>Delivery Duration:</td>
<td>3 three mostla from order confirmation and payment</td>
</tr>
<tr>
<td>Penalty:</td>
<td>
A Delay Penalty of 0.1% from the Po total amount will be applied per
each delay Day/Not Over
than 10%
</td>
</tr>
<tr>
<td>Warranty:</td>
<td></td>
</tr>
<tr>
<td>Conditions:</td>
<td>FE# 20230000824</td>
</tr>
<tr>
<td>Notes and Comments:</td>
<td>Notes and Comments</td>
</tr>
</table>
</div>
</div>

</section>
<section>
<div class="d-flex justify-content-between mb-3">
<div class="card shadow" style="width: 48%">
<div class="card-header fw-bold">
Procurement Representative Signature
</div>
<div class="card-body text-center p-5"></div>
</div>
<div class="card shadow" style="width: 48%">
<div class="card-header fw-bold">
Supplier Representative Signature
</div>
<div class="card-body text-center"></div>
</div>
</div>
</section>
<section>
<div style="font-size: 18px">
<p class="text-uppercase fw-bold">
Purchasing Terms And Conditions
</p>
<p class="fw-bolder">
Application Of Conditions
</p>
</div>
</section>
</div>

</t>
</t>
</t>
</template>

normal html using bootstrap 

<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-SgOJa3DmI69IUzQ2PVdRZhwQ+dy64/BUtbMJw1MZ8t5HZApcHrRKUc4W0kG879m7"
crossorigin="anonymous"
/>

<title>Purchase</title>
</head>
<body>
<div class="page" style="width: 21cm; min-height: 29.7cm;font-size: 14px;">
<style>
table {
font-size: 14px;
}
</style>
<section>
<div class="d-flex justify-content-center mb-3">
<div class="card w-50 shadow">
<div class="card-header text-bg-secondary text-center fw-bold">
Purchase Order
<br/>
(P.O.)
</div>
<div class="card-body d-flex justify-content-around align-items-center">
<div class="fw-bold">PO No.:</div>
<div class="flex-fill text-start">23000874</div>
<div class="fw-bold">Issue Date:</div>
<div class="flex-fill">18-oct-23</div>
</div>
</div>
</div>
</section>
<section>
<div class="card mb-3 shadow">
<div class="card-header text-bg-secondary text-start fw-bold">
Purchase Information
</div>
<div class="card-body">
<table>
<tbody>
<tr>
<td style="width: 3.1cm">Name:</td>
<td class="fw-bold">KCML (Karbala Cement Manufacturing Limited )</td>
</tr>
<tr>
<td>Contact Person:</td>
<td>Mohamed Ali Hamoud Obaiedan Al-tmimi</td>
</tr>
<tr>
<td>Address:</td>
<td class="fw-bold">Karbala Cement Plant , Al-Haj Haighway</td>
</tr>
<tr>
<td>Email:</td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<section>
<div class="card mb-3 shadow">
<div class="card-header text-bg-secondary text-start fw-bold">
Supplier Information
</div>
<div class="card-body d-flex">
<table>
<tbody>
<tr>
<td style="width: 3.1cm">Suppler Name:</td>
<td class="text-uppercase">naffco fzco</td>
</tr>

<tr>
<td>Contact Person:</td>
<td></td>
</tr>

<tr>
<td>Address:</td>
<td>P.O box 262169, Dubai Unted Arab Emirate</td>
</tr>

<tr>
<td>Phone #:</td>
<td></td>
</tr>

<tr>
<td>Email:</td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<section>
<div class="d-flex justify-content-between mb-3">
<div class="card shadow" style="width: 48%">
<div class="card-header text-bg-secondary fw-bold">
Requester Department
</div>
<div class="card-body text-center"></div>
</div>
<div class="card shadow" style="width: 48%">
<div class="card-header text-bg-secondary fw-bold">
Final Approver
</div>
<div class="card-body text-center">Vasilerim Karalia</div>
</div>
</div>
</section>
<section>
<p class="border border-3 rounded-4 border-secondary p-2 mb-3 shadow">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip
</p>
</section>
<section>
<table
class="table shadow align-middle table-bordered table-sm text-center text-"
style="font-size: 14px"
>
<thead class="table-secondary">
<tr>
<th>No.</th>
<th>Item Code</th>
<th>Item Description</th>
<th style="width: 1cm">QTY</th>
<th style="width: 1.5cm">UOM</th>
<th style="width: 2.7cm">Delivery Date</th>
<th style="width: 2.1cm">ETA Date</th>
<th style="width: 2cm">Unit Cost</th>
<th style="width: 2.1cm">Total Cost</th>
</tr>
</thead>
<tbody>
<tr>
<th>1</th>
<td>04090100225</td>
<td>
Replacement Of reel 60MTR for firefighting man truck type: TGS
33.360
</td>
<td>10000</td>
<td>EA</td>
<td>31-Aug-23</td>
<td>31-Aug-23</td>
<td>5,000.00</td>
<td>5,000.00</td>
</tr>
<tr>
<th>1</th>
<td>04090100225</td>
<td>
Replacement Of Double pole rocker switch body OFF/ON Momentary
for firefighting man truck type: Tgs 33.360
</td>
<td>1</td>
<td>EA</td>
<td>31-Aug-23</td>
<td></td>
<td>5,000.00</td>
<td>5,000.00</td>
</tr>
<tr>
<th>1</th>
<td>04090100225</td>
<td>
Replacement Of Double pole rocker switch body OFF/ON Momentary
for firefighting man truck type: Tgs 33.360
</td>
<td>1</td>
<td>EA</td>
<td>31-Aug-23</td>
<td></td>
<td>5,000.00</td>
<td>5,000.00</td>
</tr>
<tr>
<th>1</th>
<td>04090100225</td>
<td>
Replacement Of Double pole rocker switch body OFF/ON Momentary
for firefighting man truck type: Tgs 33.360
</td>
<td>1</td>
<td>EA</td>
<td>31-Aug-23</td>
<td></td>
<td>5,000.00</td>
<td>5,000.00</td>
</tr>
</tbody>
<tfoot class="table-secondary">
<tr>
<th class="text-end" colspan="8">Total (USD)</th>
<td>15,055.00</td>
</tr>
</tfoot>
</table>
</section>
<section>
<div class="card mb-3 shadow" style="page-break-before: always;">
<div class="card-header text-bg-secondary text-start fw-bold">
Terms And Conditions
</div>
<div class="card-body">
<table>
<thead>
<tr>
<td style="width: 4.4cm;">Payment Terms:</td>
<td>100% advance payment</td>
</tr>
<tr>
<td>Delivery Terms:</td>
<td></td>
</tr>
<tr>
<td>Delivery Place:</td>
<td>KCML</td>
</tr>
<tr>
<td>Delivery Duration:</td>
<td>3 three mostla from order confirmation and payment</td>
</tr>
<tr>
<td>Penalty:</td>
<td>
A Delay Penalty of 0.1% from the Po total amount will be applied per each delay Day/Not Over
than 10%
</td>
</tr>
<tr>
<td>Warranty:</td>
<td></td>
</tr>
<tr>
<td>Conditions:</td>
<td>FE# 20230000824</td>
</tr>
<tr>
<td>Notes and Comments:</td>
<td>Notes and Comments</td>
</tr>
</table>

</div>
</div>

</section>
<section>
<div class="d-flex justify-content-between mb-3">
<div class="card shadow" style="width: 48%">
<div class="card-header fw-bold">
Procurement Representative Signature
</div>
<div class="card-body text-center p-5"></div>
</div>
<div class="card shadow" style="width: 48%">
<div class="card-header fw-bold">
Supplier Representative Signature
</div>
<div class="card-body text-center"></div>
</div>
</div>
</section>
<section>
<div style="font-size: 18px">
<p class="text-uppercase fw-bold">
Purchasing Terms And Conditions
</p>
<p class="fw-bolder">
Application Of Conditions
</p>
</div>
</section>
</div>


</body>
</html>
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
Oct 25
662
Quote Builder With Custom Rental Report (Studio)
pdf
Avatar
0
Oct 25
4
How to edit the header of the quote template Solved
pdf
Avatar
Avatar
Avatar
2
Aug 25
1555
Customize Report problem Solved
pdf
Avatar
Avatar
Avatar
3
Aug 25
1850
How to Edit Out the Blank Space in the Quote/Order Confirmation PDFs? Solved
pdf
Avatar
Avatar
Avatar
Avatar
3
Aug 25
2951
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