Ir al contenido
Menú
Se marcó esta pregunta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 15
4414
1
abr 15
4584
2
mar 15
6494
2
oct 23
2508
1
jun 23
2573