تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (BI)
    • المستندات
    • توقيع إلكتروني
    المبيعات
    • إدارة علاقات العملاء
    • المبيعات
    • نقطة البيع للمتاجر
    • نقطة البيع للمطاعم
    • الاشتراكات
    • تأجير
    المواقع الإلكترونية
    • أداة بناء المواقع الإلكترونية
    • متاجر إلكترونية
    • مدونة
    • المنتدى
    • دردشة مباشرة
    • التعليم الإلكتروني
    سلسلة التوريد
    • المستودعات
    • التصنيع
    • إدارة دورة حياة المنتج
    • المشتريات
    • الصيانة
    • الجودة
    الموارد البشرية
    • موظفون
    • التوظيف
    • إجازة عمل
    • التقييمات
    • الإحالات
    • تطبيق الأسطول
    التسويق
    • التسويق الإجتماعي
    • التسويق عبر البريد الإلكتروني
    • التسويق عبر الرسائل النصية
    • فعاليات
    • أتمتة التسويق
    • الاستطلاعات
    الخدمات
    • المشاريع
    • الجداول الزمنية
    • الخدمة الميدانية
    • مكتب المساعدة
    • التخطيط
    • مواعيد
    اﻹنتاجية
    • مناقشة
    • الموافقات
    • إنترنت الأشياء "IoT"
    • بروتوكول ربط المحادثات الصوتية عبر الإنترنت
    • المعرفة
    • WhatsApp
    التطبيقات الخارجية ستوديو أودو منصة أودو السحابية
  • قطاعات الأعمال
    البيع بالتجزئة
    • متجر كتب
    • متجر ملابس
    • متجر أثاث
    • متجر بقالة
    • متجر معدات
    • متجر ألعاب
    الطعام والضيافة
    • بار وحانة
    • المطعم
    • مطعم للوجبات السريعة
    • نزل للضيوف
    • موزّع مشروبات
    • فندق
    العقارات
    • وكالة عقارات
    • شركة هندسة معمارية
    • البناء
    • إدارة العقارات
    • العناية بالحدائق
    • اتحاد مُلاّك العقارات
    استشارة
    • مؤسسة محاسبية
    • شريك أودو
    • وكالة تسويقية
    • منشأة قانونية
    • استقطاب المواهب
    • التدقيق والتوثيق
    التصنيع
    • الأقمشة
    • معدني
    • الأثاث
    • الطعام
    • مصنع خمور
    • هدايا الشركات
    الصحة واللياقة البدنية
    • نادي رياضي
    • متجر نظارات
    • مركز لياقة بدنية
    • الممارسون الصحيون
    • صيدلية
    • صالون تصفيف الشعر
    التجارة
    • عامل صيانة
    • الأجهزة والمعدات التقنية ودعمها
    • أنظمة الطاقة الشمسية
    • صانع أحذية
    • خدمات التنظيف
    • خدمات التكييف (HVAC)
    غير ذلك
    • منظمة غير ربحية
    • وكالة بيئية
    • تأجير لوحات إعلانية
    • تصوير
    • تأجير دراجات
    • بائع وسيط للبرمجيات
    تصفح كافة قطاعات الأعمال
  • مجتمع أودو
    تعلم
    • دروس
    • التوثيق
    • شهادات
    • التدريب
    • مدونة
    • بودكاست
    قم بتعزيز التعليم
    • برنامج تعليم
    • Scale UP! لعبة الأعمال
    • قم بزيارة أودو
    احصل على البرنامج
    • تحميل
    • قارنْ الإصدارات
    • إطلاق
    تعاون
    • جيت هاب "Github"
    • المنتدى
    • فعاليات
    • الترجمات
    • كنْ شريكاً
    • خدمات الشركاء
    • سجل مكتب المحاسبة الخاص بك
    احصل على الخدمات
    • اعثر على شريك
    • اعثر على محاسب
    • قابل أحد مرشدي الأعمال
    • خدمات التنفيذ
    • مراجع العملاء
    • الدعم
    • الترقيات
    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
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
المساعدة

Qweb Report

اشتراك

تسلم الإشعارات عندما يكون هناك نشاط في هذا المنشور

لقد تم الإبلاغ عن هذا السؤال
qwebreportQWebException
13350 أدوات العرض
الصورة الرمزية
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
الصورة الرمزية
إهمال
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!

أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
Import data in qweb report
qweb report QWebException
الصورة الرمزية
0
أكتوبر 15
4930
How to display address on Qweb report? تم الحل
qweb report QWebException 12.0
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
4
يناير 24
14886
odoo 16 report target new page scss
qweb report
الصورة الرمزية
الصورة الرمزية
1
أبريل 25
2144
Missing external identifier on new external layout template تم الحل
qweb report
الصورة الرمزية
الصورة الرمزية
2
مارس 25
2725
Translate month name in t-esc Qweb report تم الحل
qweb report
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
4
نوفمبر 24
8091
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "Github"
  • المشغل الآلي رنبوت
  • الترجمات
خدماتنا
  • استضافة أودو إس إتش
  • الدعم
  • الترقية
  • التطويرات المخصصة
  • التعليم
  • اعثر على محاسب
  • اعثر على شريك
  • كنْ شريكاً
معلومات عنا
  • شركتنا
  • أصول العلامة التجارية
  • اتصلْ بنا
  • الوظائف
  • فعاليات
  • بودكاست
  • مدونة
  • عملاء
  • قانوني • الخصوصية
  • الحماية
الْعَرَبيّة 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

أودو هو عبارة عن مجموعة من تطبيقات الأعمال مفتوحة المصدر التي تغطي جميع احتياجات شركتك، مثل: إدارة علاقات العملاء والتجارة الإلكترونية والمحاسبة والمخزون ونقاط البيع وإدارة المشاريع وما إلى ذلك.

ما يجعل من أودو مميزاً هو هدفه بأن يكون سهل الاستخدام للغاية ومتكاملاً تمامًا في الوقت ذاته.

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