コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3679 ビュー

Hello,

I need for quotation, sale, invoice, .... always the reports with header/footer (1) and header/footer (2)

I need this, because when I send to printer, the paper has this already printet at the sheet.


What is the shortest way?

header/footer (1) is the original version


The Invoice report start with:

<?xml version="1.0"?>

<t t-name="account.report_invoice_document">

<t t-call="report.external_layout">

<t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})"/>

<div class="page" style="width:90%; margin: 0 auto">

<div class="row">


I need exact the same report, but with:

 <?xml version="1.0"?>

<t t-name="account.report_invoice_document">

<t t-call="report.external_layout_bg">

<t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})"/>

<div class="page" style="width:90%; margin: 0 auto">

<div class="row">


So I add one new report and inherit the original report:

<?xml version="1.0"?>

<data inherit_id="account.report_invoice_document">

<xpath expr="//table[@class='table table-condensed']" position="replace">


Can I set a "replace" for this one line? All other lines should be the same.


Thank you

アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 15
4448
1
4月 15
4619
2
3月 15
6552
2
10月 23
2562
1
6月 23
2627