İçereği Atla
Menü
Bu soru işaretlendi
3686 Görünümler

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Mar 15
4448
1
Nis 15
4635
2
Mar 15
6556
2
Eki 23
2567
1
Haz 23
2630