Skip to Content
Odoo เมนู
  • ลงชื่อเข้าใช้
  • ทดลองใช้ฟรี
  • แอป
    การเงิน
    • ระบบบัญชี
    • ระบบการออกใบแจ้งหนี้
    • ระบบบัญชีรายจ่าย
    • ระบบการจัดการข้อมูลผ่านสเปรดชีต (BI)
    • เอกสาร
    • ระบบลงลายเซ็น
    การขาย
    • ลูกค้าสัมพันธ์
    • การขาย
    • POS ร้านค้า
    • POS ร้านอาหาร
    • ระบบสมัครสมาชิก
    • การเช่า
    การจัดการเว็บไซต์
    • เครื่องมือสร้างเว็บไซต์
    • ระบบการขายออนไลน์
    • บล็อก
    • ฟอรั่ม
    • ไลฟ์แชท
    • ระบบการอบรมออนไลน์
    ซัพพลายเชน
    • คลังสินค้า
    • ระบบการผลิต
    • PLM
    • ระบบการจัดซื้อ
    • การซ่อมบำรุง
    • ระบบจัดการคุณภาพ
    ทรัพยากรบุคคล
    • ข้อมูลพนักงาน
    • ระบบสรรหาบุคลากร
    • ระบบการลา
    • การประเมิน
    • ระบบการแนะนำพนักงาน
    • ระบบจัดการยานพาหนะ
    การตลาด
    • โซเชียลมาร์เก็ตติ้ง
    • การตลาดผ่านอีเมล
    • ระบบการตลาดผ่าน SMS
    • ระบบการจัดงานอีเวนต์
    • การตลาดแบบอัตโนมัติ
    • ระบบแบบสำรวจ
    การบริการ
    • โปรเจกต์
    • ระบบบันทึกเวลา
    • ระบบการจัดการบริการภาคสนาม
    • ระบบดูแลช่วยเหลือ
    • การวางแผน
    • การนัดหมาย
    ประสิทธิผล
    • ระบบแสดงความคิดเห็น
    • ระบบการอนุมัติ
    • ไอโอที
    • VoIP
    • คลังข้อมูล
    • WhatsApp
    แอปพลิเคชันของบุคคลที่สาม Odoo สตูดิโอ แพลตฟอร์มคลาวด์ของ Odoo
  • อุตสาหกรรม
    การค้าปลีก
    • ร้านขายหนังสือ
    • ร้านขายเสื้อผ้า
    • ร้านขายเฟอร์นิเจอร์
    • ร้านขายของชำ
    • ร้านขายฮาร์ดแวร์
    • ร้านขายของเล่น
    Food & Hospitality
    • บาร์และผับ
    • ร้านอาหาร
    • อาหารฟาสต์ฟู้ด
    • Guest House
    • ตัวแทนจำหน่ายเครื่องดื่ม
    • Hotel
    Real Estate
    • Real Estate Agency
    • บริษัทสถาปัตยกรรม
    • บริษัทรับเหมา
    • การจัดการอสังหาริมทรัพย์
    • การจัดสวน
    • สมาคมเจ้าของอสังหาริมทรัพย์
    Consulting
    • Accounting Firm
    • Odoo พาร์ทเนอร์
    • เอเจนซี่การตลาด
    • สำนักงานกฎหมาย
    • บริการสรรหาบุคลากร
    • การตรวจสอบและการรับรอง
    ระบบการผลิต
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • ของขวัญขององค์กร
    สุขภาพ & ฟิตเนส
    • ชมรมกีฬา
    • ร้านขายแว่นตา
    • ฟิตเนส
    • ผู้ประกอบวิชาชีพด้านสุขภาพ
    • ร้านขายยา
    • ร้านทำผม
    Trades
    • ช่างซ่อม
    • ฮาร์ดแวร์และการสนับสนุนด้านไอที
    • Solar Energy Systems
    • ช่างทำรองเท้า
    • บริการทำความสะอาด
    • HVAC Services
    Others
    • Nonprofit Organization
    • สำนักงานสิ่งแวดล้อม
    • ร้านเช่าป้ายโฆษณา
    • การถ่ายภาพ
    • ร้านเช่าจักรยาน
    • ตัวแทนจำหน่ายซอฟต์แวร์
    Browse all Industries
  • คอมมูนิตี้
    ศึกษา
    • บทเรียน
    • เอกสารกำกับโปรแกรม
    • การรับรอง
    • การฝึกอบรม
    • บล็อก
    • พอดแคสต์
    เพิ่มศักยภาพให้กับการศึกษา
    • โปรแกรมการศึกษา
    • Scale Up! Business Game
    • เยี่ยมชม Odoo
    รับซอฟต์แวร์
    • ดาวน์โหลด
    • เปรียบเทียบรุ่น
    • เผยแพร่
    ทำงานร่วมกัน
    • Github
    • ฟอรั่ม
    • ระบบการจัดงานอีเวนต์
    • การแปล
    • ร่วมเป็นพาร์ทเนอร์
    • Services for Partners
    • ลงทะเบียนเพื่อสร้างบัญชีบริษัทของคุณ
    รับบริการ
    • ค้นหาพาร์ทเนอร์
    • ค้นหานักบัญชี
    • พบกับที่ปรึกษา
    • บริการติดตั้งระบบเพื่อใช้งาน
    • ข้อมูลอ้างอิงลูกค้า
    • การสนับสนุน
    • อัปเกรด
    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
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
ช่วยเหลือ

How to put company header only on the first page of a report?

ติดตาม

รับการแจ้งเตือนเมื่อมีกิจกรรมในโพสต์นี้

คำถามนี้ถูกตั้งค่าสถานะ
pdfqwebheaderreporting
3 ตอบกลับ
13539 มุมมอง
อวตาร
Pascal Tremblay

Hello gang!

I have now beautifull qweb report in PDF. But if my reports (sale order, for example) have more than one page, the header is on EACH page. 

How to put company header only on the first page?

Thanks

1
อวตาร
ละทิ้ง
Pascal Tremblay
ผู้เขียน

Somebody manage to do it? We still did not.

Pascal Tremblay
ผู้เขียน

May be an idea : the pseudo class :first-of-type in CSS?

อวตาร
Pascal Tremblay
ผู้เขียน คำตอบที่ดีที่สุด

Ref :
        http://lolierp.blogspot.ca/2015/03/odoo-8-editions-qweb-suppression-entete.html?showComment=1430604942124

It works here. We are very happy of this!

Look image, header is only on the first page of the saleorder!!!! Great



If somebody needs XML code, it will be a pleasure to put it here. Just ask.


UPDATE 7 AUGUST 2015 - SOME CODES TO HELP!

<template id="report_lapagept.report_header_pt">

<!--Ici l'en-tête de La Page PT-->

<div class="row zero_min_height">

<div class="col-xs-12">

<div style="border-bottom: 3px solid #881111;" />

</div>

</div>

<div class="row" style="">

<div class="col-xs-3">

<span>&nbsp;</span>

<img t-if="user.company_id.logo" t-att-src="'data:image/png;base64,%s' % user.company_id.logo" style="max-height: 60px; margin-left: 5px; margin-top: 5px;" /> </div>

<div class="col-xs-9 text-right" style="padding-top: 20px;">

<span style="font-size: 20px;" t-field="user.company_id.rml_header1" />

<span>&nbsp;&nbsp;</span>

</div>

</div>

<div class="row zero_min_height">

<div class="col-xs-12">

<div style="margin-top: 5px; border-bottom: 3px ridge #222222;" />

</div>

</div>

<div class="row">

<div style="margin-top: 5px;" class="col-xs-4">

<div t-field="user.company_id.partner_id" t-field-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": true}" style="padding-left: 5px; padding-bottom: 5px; border-bottom: 3px solid #555544;" />

</div>

<div style="margin-top: 5px; font-size: 10px;" class="col-xs-4">

<div>TPS : 85890 5656 RT0001</div>

<div>TVQ : 1028299113 TQ0002</div>

<div>TVD : 858905656 MT0001</div>

</div>

<div style="margin-top: 5px; font-size: 11px;" class="col-xs-4">

<div>NE : 858905656</div>

<div>NEQ : 2265894800</div>

</div>

</div>

</template>

 

<template id="report_saleorder_document_lapagept" inherit_id="sale.report_saleorder_document">

<xpath expr="//div[@class='page']" position="replace">

<div style="font-family: Ubuntu;" class="page">

<div t-if="user.company_id.x_company_prefix == 'AS'">

<t t-call="report_lapagept.report_header_as" />

</div>

<div t-if="user.company_id.x_company_prefix == 'PT'">

<t t-call="report_lapagept.report_header_pt" />

</div>

<div t-if="user.company_id.x_company_prefix == 'IV'">

<t t-call="report_lapagept.report_header_iv" />

</div>

<div class="oe_structure"/>

<div class="row">

<div class="col-xs-4" style="">

<h4>

<strong t-if="o.partner_shipping_id == o.partner_invoice_id">Invoice and shipping address :</strong>

<strong t-if="o.partner_shipping_id != o.partner_invoice_id">Invoice address :</strong></h4>

<div style="margin-left: 20px;">

<div t-field="o.partner_invoice_id" t-field-options="{"widget": "contact","fields": ["address", "name", "phone", "fax"], "no_marker": true}"/>

<p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p>

</div>

</div>

<div class="col-xs-4" style="">

<div t-if="o.partner_shipping_id != o.partner_invoice_id" class="mt8">

<h4><strong>Shipping address :</strong></h4>

<div style="margin-left: 20px;">

<div t-field="o.partner_shipping_id" t-field-options="{"widget": "contact", "fields":

["address", "name", "phone", "fax"], "no_marker": true }"/>

<p t-if="o.partner_id.vat">VAT : <span t-field="o.partner_id.vat"/></p>

</div>

</div>

</div>

<div class="col-xs-4" style="">

<h4><strong>Partner address : </strong></h4>

<div style="margin-left: 20px;">

<div t-field="o.partner_id" t-field-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": true}"/>

</div>

</div>

</div>

 

<h1>

<span t-if="o.state not in ['draft','sent']">Order : N° </span>

<span t-if="o.state in ['draft','sent']">Quotation : N° </span>

<span t-field="o.name"/>

</h1>

<div class="row mt32 mb32" id="informations">

<div t-if="o.client_order_ref" class="col-xs-3">

<strong>Your reference :</strong>

<p t-field="o.client_order_ref"/>

</div>

<div t-if="o.date_order" class="col-xs-3">

<strong t-if="o.state not in ['draft','sent']">Date ordered :</strong>

<strong t-if="o.state in ['draft','sent']">Quotation date :</strong>

<div style="margin-left: 6px;">

<p t-field="o.date_order" t-field-options='{"format": "d MMMM y"}'/> </div>

</div>

<div t-if="o.user_id.name" class="col-xs-3">

<strong>Salesperson :</strong>

<div style="margin-left: 6px;">

<p t-field="o.user_id.name"/></div>

</div>

<div t-if="o.payment_term" class="col-xs-3">

<strong>Payment term :</strong>

<div style="margin-left: 6px;"><p t-field="o.payment_term"/></div>

</div>

</div>

<table class="table table-condensed">

<thead>

<tr>

<th> Picture</th>

<th>Name</th>

<th>Description</th>

<th>Taxes</th>

<th class="text-right">Quantity</th>

<th class="text-right">Unit price</th>

<th groups="sale.group_discount_per_so_line">Discount (%)</th>

<th class="text-right">Price</th>

</tr>

</thead>

<tbody class="sale_tbody">

<tr t-foreach="o.order_line" t-as="l">

<td>

<span t-field="l.product_id.image_small" t-field-options="{"widget": "image", "height": "64"}" />

</td>

<td>

<span t-field="l.product_id.name"/>

</td>

<td>

<span t-field="l.name"/>

</td>

<td>

<span t-esc="', '.join(map(lambda x: x.name, l.tax_id))"/>

</td>

<td class="text-right">

<span t-field="l.product_uom_qty"/>

<span groups="product.group_uom" t-field="l.product_uom"/>

</td>

<td class="text-right">

<span t-field="l.price_unit"/>

</td>

<td groups="sale.group_discount_per_so_line">

<span t-field="l.discount"/>

</td>

<td class="text-right">

<span t-field="l.price_subtotal" t-field-options="{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}"/>

</td>

</tr>

</tbody>

</table>

<div class="row">

<div class="col-xs-4 pull-right">

<table class="table table-condensed">

<tr class="border-black">

<td><strong>Total without taxes</strong></td>

<td class="text-right">

<span t-field="o.amount_untaxed" t-field-options="{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}"/>

</td>

</tr>

<tr>

<td>Taxes</td>

<td class="text-right">

<span t-field="o.amount_tax" t-field-options="{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}"/>

</td>

</tr>

<tr class="border-black">

<td><strong>Total</strong></td>

<td class="text-right">

<span t-field="o.amount_total" t-field-options="{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}"/>

</td>

</tr>

</table>

</div>

</div>

<p t-field="o.note"/>

<p t-if="o.payment_term.note">

<strong>Payment Term:</strong>

<span t-field="o.payment_term.note"/>

</p>

<div class="oe_structure"/>

</div>

</xpath>

</template>

</data>



0
อวตาร
ละทิ้ง
Aiden Andrews-McDermott

Any chance you could post other sample reports?

Pascal Tremblay
ผู้เขียน

Just say to me what you would want to see. No prob.

Erhuvwu Akpobaro

Hey Pascal is it possible to see some sample xml code ?

สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!

สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!

ลงชื่อ
Related Posts ตอบกลับ มุมมอง กิจกรรม
Qweb pdf: print a last page horizontaly (landcape)
pdf qweb reporting
อวตาร
0
มิ.ย. 20
3141
v10 custom reports module header
qweb header reporting
อวตาร
อวตาร
2
พ.ค. 17
4640
QWEB Report issue while having large row content. แก้ไขแล้ว
qweb header reporting wkhtmltopdf
อวตาร
อวตาร
อวตาร
2
มิ.ย. 22
8675
Odoo v8: How can old .rml header be embedded in custom qweb report?
qweb rml header reporting
อวตาร
อวตาร
2
ก.ค. 15
4254
How can I display all tasks (including completed ones) in a QWeb report in Odoo?
qweb reporting
อวตาร
อวตาร
2
ก.ย. 24
2963
คอมมูนิตี้
  • บทเรียน
  • เอกสารกำกับโปรแกรม
  • ฟอรั่ม
โอเพนซอร์ส
  • ดาวน์โหลด
  • Github
  • Runbot
  • การแปล
บริการ
  • โฮสติ้ง odoo.sh เซิร์ฟเวอร์
  • การสนับสนุน
  • อัปเกรด
  • การพัฒนาที่กำหนดเอง
  • การศึกษา
  • ค้นหานักบัญชี
  • ค้นหาพาร์ทเนอร์
  • ร่วมเป็นพาร์ทเนอร์
เกี่ยวกับเรา
  • บริษัทของเรา
  • ทรัพย์สินในรูปของเครื่องหมายการค้า
  • ติดต่อเรา
  • งาน
  • ระบบการจัดงานอีเวนต์
  • พอดแคสต์
  • บล็อก
  • ลูกค้า
  • กฎหมาย • ความเป็นส่วนตัว
  • ความปลอดภัย
الْعَرَبيّة 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 เป็นชุดแอปธุรกิจแบบเปิดที่ครอบคลุมทุกความต้องการของบริษัทของคุณ อาธิ CRM eCommerce ระบบบัญชี ระบบสินค้าคงคลัง ระบบการขายหน้าร้าน โปรเจกต์ และ อีกมากมาย

ความเหนือกว่าอันเป็นเอกลักษณ์ของ 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