コンテンツへスキップ
Odoo メニュー
  • サインイン
  • 無料で15日試す
  • アプリ
    財務
    • 会計
    • 請求
    • 経費
    • スプレッドシート(BI)
    • ドキュメント管理
    • 署名
    販売
    • CRM
    • 販売
    • POS店舗
    • POSレストラン
    • サブスクリプション
    • レンタル
    ウェブサイト
    • ウェブサイトビルダー
    • eコマース
    • ブログ
    • フォーラム
    • ライブチャット
    • eラーニング
    サプライチェーン
    • 在庫
    • 製造
    • 製品ライフサイクル管理 (PLM)
    • 購買
    • 整備
    • 品質
    人事業務
    • 従業員管理
    • 採用
    • 休暇管理
    • 人事評価
    • リファラル
    • フリート
    マーケティング
    • ソーシャルマーケティング
    • メールマーケティング
    • SMSマーケティング
    • イベント
    • マーケティングオートメーション
    • アンケート調査
    サービス
    • プロジェクト管理
    • タイムシート
    • フィールドサービス
    • ヘルプデスク
    • 計画
    • アポイントメント
    生産性向上ツール
    • ディスカッション
    • 承認
    • IoT
    • VoIP
    • ナレッジ
    • WhatsApp
    サードパーティアプリ Odooスタジオ Odooクラウドプラットホーム
  • インダストリー(業種別ソリューション)
    小売
    • 書店
    • アパレルショップ
    • 家具専門店
    • 食料品店
    • 金物店
    • 玩具店
    飲食・ホスピタリティ業界
    • バー・パブ
    • レストラン
    • ファストフード
    • ゲストハウス
    • 飲料販売代理店
    • ホテル
    不動産
    • 不動産会社
    • 建築事務所
    • 建設
    • 不動産管理
    • 造園
    • 住宅所有者組合
    コンサルティング
    • 会計事務所
    • Odooパートナー
    • マーケティングエージェンシー
    • 法律事務所
    • 人材派遣
    • 監査・認証
    製造
    • テキスタイル
    • 金属
    • 家具
    • 飲食
    • 醸造所
    • コーポレートギフト
    ヘルス & フィットネス
    • スポーツクラブ
    • 眼鏡店
    • フィットネスセンター
    • ウェルネス専門家
    • 薬局
    • ヘアサロン
    業種
    • 便利屋
    • IT ハードウェア・サポート
    • 太陽エネルギーシステム
    • 靴メーカー
    • クリーニングサービス
    • 空調設備サービス
    その他
    • 非営利団体
    • 環境機関
    • ビルボードレンタル
    • 写真
    • 自転車リース
    • ソフトウェアリセラー
    すべての業種を見る
  • コミュニティ
    学ぶ
    • チュートリアル
    • ドキュメンテーション
    • 認定
    • トレーニング
    • ブログ
    • ポッドキャスト
    教育サポート
    • 教育プログラム
    • Scale Up! ビジネスゲーム
    • Odooオフィス訪問
    ソフトを入手
    • ダウンロード
    • エディションを比較
    • リリース
    コラボレーション
    • 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:

  • CRM
  • e-Commerce
  • 会計
  • 在庫
  • PoS
  • プロジェクト
  • MRP
All apps
コミュニティで交流するには登録する必要があります。
全てのポスト 人々 バッジ
タグ (全て表示)
odoo accounting v14 pos v15
このフォーラムについて
コミュニティで交流するには登録する必要があります。
全てのポスト 人々 バッジ
タグ (全て表示)
odoo accounting v14 pos v15
このフォーラムについて
ヘルプ

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

購読

この投稿に活動があった際に通知を受け取ります

この質問にフラグが付けられました
pdfqwebheaderreporting
3 返信
13600 ビュー
アバター
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 ?

ディスカッションを楽しんでいますか?読むだけでなく、参加しましょう!

今すぐアカウントを作成して、限定機能を利用したり、素晴らしいコミュニティと交流しましょう!

登録
関連投稿 返信 ビュー 活動
Qweb pdf: print a last page horizontaly (landcape)
pdf qweb reporting
アバター
0
6月 20
3213
v10 custom reports module header
qweb header reporting
アバター
アバター
2
5月 17
4692
QWEB Report issue while having large row content. 解決済
qweb header reporting wkhtmltopdf
アバター
アバター
アバター
2
6月 22
8717
Odoo v8: How can old .rml header be embedded in custom qweb report?
qweb rml header reporting
アバター
アバター
2
7月 15
4300
How can I display all tasks (including completed ones) in a QWeb report in Odoo?
qweb reporting
アバター
アバター
2
9月 24
3037
コミュニティ
  • チュートリアル
  • ドキュメンテーション
  • フォーラム
オープンソース
  • ダウンロード
  • 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、eコマース、会計、在庫管理、POS、プロジェクト管理など、企業のさまざまな業務を一つのシステムで管理できる、ベルギー発のオープンソースのERPソフトウェアです。

高機能で使いやすく、完全に統合されたERPとして、ユニークな価値を提供しています。

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