I have write a report for my model odoo; but when I print my model, I find that all field has an black background, I don't know why, please give me an advice :
report file XML
<?xml version="1.0" encoding="UTF-8" ?>
<!--<?xml-stylesheet type="text/css" href="view.css"?>-->
<openerp>
<data>
<report
id="action_report_omega"
model="omega.model"
string="Report"
report_type="qweb-pdf"
file="model_x.report_omega_document"
name="model_x.report_omega_document"
/>
</data>
</openerp>
and that is my template view :
<?xml version="1.0" encoding="UTF-8" ?>
<openerp>
<data>
<template id="report_omega_document">
<t t-call="report.html_container">
<t t-call="report.external_layout">
<div class="page" style="page-break-after: always;">
<div class="header">
<div class="row">
<div class="col-xs-3">
<img t-if="res_company.logo" t-att-src="'data:image/png;base64,%s' %res_company.logo"/>
</div>
</div>
<hr/>
</div>
<div class="body">
<h2 style="text-align: center; line-height: 2;">ORDER DE MISSION</h2>
<div>
<table style="border: 1px solid black; width: 100%;">
<tr style="padding: 3px;">
<td style="padding: 5px 5px 5px 5px; border: 1px solid black; width: 30%;"><strong>Référence</strong></td>
<td style="padding: 5px 5px 5px 5px; border: 1px solid black;"><p t-field="docs.number"/></td>
</tr>
</table>
</div>
[...]
</template>
</data>
</openerp>
that is the resultI get all time :
and that is the result that I want to see :
I have use this line :
<div class="page" style="page-break-after:always; background-color:white !important;">
this worked for me
<div class="page" style="page-break-after: always;background-color:#fff !important;">