Skip to Content
Menu
This question has been flagged

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
Discard
Related Posts Replies Views Activity
1
Mar 15
3484
1
Apr 15
3763
2
Mar 15
5355
2
Oct 23
1423
1
Jun 23
1279