One way to remove the header is that Atul suggested to declare it in the report tag.
<report header="False" auto="False" id="report_product_history" model="product.product" name="stock.product.history" string="Stock Level Forecast"/>
In some situations, there is no report tag. For example, a report can only be created by a wizard. In this case, you can declare it as a parameter when registering the parser. For an example, see the mrp_operations
barcode report module.
class code_barcode(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): super(code_barcode, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, }) report_sxw.report_sxw('report.mrp.code.barcode', 'mrp_operations.operation.code', 'addons/mrp_operations/report/mrp_code_barcode.rml', parser=code_barcode, header=False)
You can also specify a specific title using this parameter. By default, it is equal to 'external'
, but it can be either 'internal'
or 'internal landscape'
use one of the other headers from the company configuration.
source share