Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Qweb Report

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
qwebreportQWebException
13418 Widoki
Awatar
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
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Import data in qweb report
qweb report QWebException
Awatar
0
paź 15
4985
How to display address on Qweb report? Rozwiązane
qweb report QWebException 12.0
Awatar
Awatar
Awatar
4
sty 24
14977
odoo 16 report target new page scss
qweb report
Awatar
Awatar
1
kwi 25
2202
Missing external identifier on new external layout template Rozwiązane
qweb report
Awatar
Awatar
2
mar 25
2804
Translate month name in t-esc Qweb report Rozwiązane
qweb report
Awatar
Awatar
Awatar
Awatar
Awatar
4
lis 24
8166
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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