Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3683 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 15
4448
1
apr 15
4627
2
mar 15
6554
2
ott 23
2565
1
giu 23
2628