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

Qweb Report

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
qwebreportQWebException
13396 Tampilan
Avatar
Vigneshwaran

    I am creating report in odoo using qweb template, while I am editing the paper format, I am not getting the desired view, here is my code.
        
        <?xml version="1.0" encoding="UTF-8"?>
        <openerp>
        <data>
        <template id="leave_card_report_temp">
        <!--    <t t-call="report.html_container">-->
        <!--        <t t-foreach="docs" t-as="doc">-->
                    <t t-call="report.external_layout">
                        <div class="page" style="width:860px;">
                          <!--<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height:60px;align:left"/>-->
                            <h3><p style="text-center;">Leave Card</p></h3>
                                
                            <br/>    
                            
                            <style>
                                    table, th, td {
                                    border: 2px solid black;
                                    
                                    border-collapse: collapse;
                                    }
                                    th, td {
                                    padding: 5px;
                                    text-align: left;    
                                    }
                            </style> 
                            
                            <table style="width:860px;font-Size:11px; border:1px solid black;border-collapse:collapse;border-bottom:1px solid white;">
        <!--                      <t t-foreach="docs" t-as="doc">-->
        <!--                        <t t-if="o.name">-->
                                <tr> 
                                   
                                   <td><strong>Name:</strong></td>
                                   <td>
                                       
        <!--                               <span t-field="doc.name"/>-->
                                       
                                   </td>
                                   
                                    <td><strong>Designation:</strong></td>
        <!--                            <td><span t-field="designation"/></td>-->
                                    <td><strong>Department:</strong></td>
        <!--                            <td><span t-field="department"/></td>-->
                                     <td><strong>Employee Code:</strong></td>
        <!--                            <td><span t-field="name"/></td>-->
                               </tr>
                               <tr> 
                               <td><strong>DOJ(C):</strong></td><td></td>
                               <td><strong>DOJ(R):</strong></td><td></td>
                               </tr>
        <!--                      </t>   -->
                               
                            </table> 

                            <br/>
                            <br/>    
                            <table cellspacing="1" cellpadding="4" border="3" class = "table table-striped">
                              <!--<table style="width:860px;font-Size:11px; border:1px solid black;border-collapse:collapse;border-bottom:1px solid white;">-->
                                <tr>                       
                                    <th width="70" rowspan="2" >DATE FROM</th>
                                    <th width="70" rowspan="2" >DATE TO</th>
                                    <th width="70" rowspan="2" >No Of Days</th>
                                    <th colspan="3"> CL</th>
                                    <th colspan="4"> EL</th>
                                    <th width="70" rowspan="2">LOP</th>
                                    <th colspan="2">INITIALS</th>
                                    <th width="70" rowspan="2"> REMARKS</th>
                                </tr>
                                
                                <tr align="right"> 
                                    <th width="70">Earned</th>
                                    <th width="70">Availed</th>
                                    <th width="70">Balance</th>
                                    <th width="70">Earned</th>
                                    <th width="70">Availed</th>
                                    <th width="70">Balance</th>
                                    <th width="70">Encashment</th>
                                    <th width="70">Reporting Officer</th>
                                    <th width="70">Reviewing Officer</th>
                                    
                                </tr>   
                                <tbody>                               
                                <t t-foreach = "docs" t-as = "doc">
                                <tr>
                                    
                                    <td><span t-field="doc.date_from"/></td>
                                    <td><span t-field="doc.date_to"/></td>
                                    <td><span t-field="doc.no_of_days"/></td>
                                    <td><span t-field = "doc.earned_cl"/></td>
                                    <td><span t-field = "doc.availed_cl"/></td>
                                    <td><span t-field = "doc.balance_cl"/></td>
                                    <td><span t-field = "doc.earned_el"/></td>
                                    <td><span t-field = "doc.availed_el"/></td>
                                    <td><span t-field = "doc.balance_el"/></td>
                                    <td><span t-field = "doc.encash"/></td>
                                    <td><span t-field = "doc.loss_of_pay"/></td>
                                    <td><span t-field = "doc.reporting_officer"/></td>
                                    <td><span t-field = "doc.reviewing_officer"/></td>
                                    <td><span t-field = "doc.remark"/></td>   
                                </tr>
                                </t>
                                </tbody>
                              </table>
        
                           
        
                        </div>
                    
               </t>
        <!--        </t>-->
        <!--    </t>-->
        </template>
        <template id="leave_card_view">
            <t t-call="report.html_container">
                <t t-foreach="doc_ids" t-as="doc_id">
                    <t t-raw="translate_doc(doc_id, doc_model, 'leaves_management.leave_card_report_temp')"/>
                </t>
            </t>
        </template>
        
        </data>
        </openerp>
                                            
The problem is, When I try to make a print I am getting multiple documents. In my first table, if I assign the value "doc.name", its create problem

I like to have multiple records in my second table but in the case of my first it should display ones i.e the table in "bold" should print once and normal table record should print according to the number of check box ticked in the list view.

p.s both the table value are render in postrgresql and initialized in the column section.                                            
                                       
                                            
                                            
                                         

-1
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
Import data in qweb report
qweb report QWebException
Avatar
0
Okt 15
4958
How to display address on Qweb report? Diselesaikan
qweb report QWebException 12.0
Avatar
Avatar
Avatar
4
Jan 24
14950
odoo 16 report target new page scss
qweb report
Avatar
Avatar
1
Apr 25
2182
Missing external identifier on new external layout template Diselesaikan
qweb report
Avatar
Avatar
2
Mar 25
2775
Translate month name in t-esc Qweb report Diselesaikan
qweb report
Avatar
Avatar
Avatar
Avatar
Avatar
4
Nov 24
8139
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