SlideShare une entreprise Scribd logo
1  sur  14
❏ Note:
❏ Please MakeFollowing CompatibleVersion
➔ Reportlab : 2.5
➔ Werkzeug: 0.8.1
➔ Wkhtmltopdf: Upper Version Of0.12.0 Such as
[‘0.12.1’,’0.12.1.1’,’0.12.1.2’]
❏ Please Use Odoo 8.0 LatestVersion
❖ Websites References
https://www.odoo.com/documentation/8.0/reference/reports.html
http://openerp-web-v7.readthedocs.org/en/latest/qweb.html
Report
Every report must be declared by a report action.
For simplicity, a shortcut <report> element is available to define a report, rather than have to set
up the action and its surroundings manually. That <report> can take the following attributes:
id
the generated record’s external id
name (mandatory)
only useful as a mnemonic/description of the report when looking for one in a list of some sort
model (mandatory)
the model your report will be about
report_type (mandatory)
either qweb-pdf for PDF reports or qweb-html for HTML
report_name
the name of your report (which will be the name of the PDF output)
groups
Many2many field to the groups allowed to view/use the current report
attachment_use
if set to True, the report will be stored as an attachment of the record using the name generated
by the attachment expression; you can use this if you need your report to be generated only
once (for legal reasons, for example)
attachment
python expression that defines the name of the report; the record is acessible as the variable
object
Example:
<report
id="account_invoices"
model="account.invoice"
string="Invoices"
report_type="qweb-pdf"
name="account.report_invoice"
file="account.report_invoice"
attachment_use="True"
attachment="(object.state in ('open','paid')) and
('INV'+(object.number or '').replace('/','')+'.pdf')"
/>
Report template
Minimal viable template
A minimal template would look like:
<template id="report_invoice">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="report.external_layout">
<div class="page">
<h2>Report title</h2>
<p>This object's name is <span t-field="o.name"/></p>
</div>
</t>
</t>
</t>
</template>
Calling external_layout will add the default header and footer on your report. The PDF
body will be the content inside the <divclass="page">. The template’s id must be the
name specified in the report declaration; for example account.report_invoice for the
above report. Since this is a QWeb template, you can access all the fields of the docs
objects received bythe template.
There are some specific variables accessible in reports, mainly:
docs
records for the current report
doc_ids
list of ids for the docs records
doc_model
model for the docs records
time
a reference to time from the Python standard library
translate_doc
a function to translate a part of a report. It must be used as follow:
<t t-foreach="doc_ids" t-as="doc_id">
<t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang',
account.report_invoice_document')"/>
</t>
user
res.user record for the user printing the report
res_company
record for the current user‘s company
If you wish to access other records/models in the template, you will need a custom
report.
Translatable Templates
If you wish to translate reports (to the language of a partner, for example), you need to
define two templates:
The main report template
The translatable document
You can then call translate_doc from your main template to obtain the translated
document. If you wish to see the details of the translation in the backend, you can go to
Settings ‣ Reports ‣ Report ‣ <report_name> ‣ Search associated QWeb views ‣
<translatable_document> ‣ Associated translations.
Barcodes
Barcodes are images returned by a controller and can easily be embedded in reports
thanks to the QWeb syntax:
More parameters can be passed as a query string
<img
t-att-src="'/report/barcode/?
type=%s&value=%s&width=%s&height=%s'%('QR',
'text', 200, 200)"/>
Useful Remarks
● Local CSS can be put directly in the template
● Twitter Bootstrap and FontAwesome classes can be used in your report
template
● Global CSS can be inserted in the main report layout by inheriting its
template and inserting your CSS:
Paper Format
Paper
formats are records of report.paperformat and
can contain the following attributes:
name (mandatory)
only useful as a mnemonic/description of the report when looking for one in a list of
some sort
description
a small description of your format
format
either a predefined format (A0 to A9, B0 to B10, Legal, Letter, Tabloid,...) or
custom; A4 by default. You cannot use a non-custom format if you define the page
dimensions.
dpi
output DPI; 90 by default
margin_top, margin_bottom, margin_left, margin_right
margin sizes in mm
page_height, page_width
page dimensions in mm
orientationReports are dynamically generated by the report module and
can be accessed directly via URL:
For example, you can access a Sale Order report in html mode by going
to http://<server-address>/report/html/sale.report_saleorder/38
Or you can access the pdf version at http://<server-
address>/report/pdf/sale.report_saleorder/38
Landscape or Portrait
header_line
boolean to display a header line
header_spacing
header spacing in mm
Custom Reports
The report model has a default get_html function that looks for a model named
report.module.report_name. If it exists, it will use it to call the QWeb engine;
otherwise a generic function will be used. If you wish to customize your reports by
including more things in the template (like records of others models, for example), you
can define this model, overwrite the function render_html and pass objects in the
docargs dictionnary:
Reports are web pages
Reports are dynamically generated bythe report module and can be accessed directly
via URL:
For example, you can access a Sale Order report in html mode by going to http://<server-
address>/report/html/sale.report_saleorder/38
Or you can access the pdf version at http://<server-
address>/report/pdf/sale.report_saleorder/38
QWeb
QWeb is the template engine used by the OpenERP Web Client. It is an XML-based
templating language, similar to Genshi, Thymeleaf or Facelets with a few
peculiarities:
● It’s implemented fully in javascript and rendered in the browser.
● Each template file (XML files) contains multiple templates, where
template engine usually have a 1:1 mapping between template files
and templates.
● It has special support in OpenERP Web’s Widget, though it can be
used outside of OpenERP Web (and it’s possible to use Widget without
relying on the QWeb integration).
Sample Code Of QWeb Report in
Odoo
File Name: your_module/report_comp_employee.xml
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<report
id="report_comp_employee"
string="Employee Details"
model="comp.employee"
report_type="qweb-pdf"
file="comp2.report_employee1"
name="comp2.report_employee1"
/>
</data>
</openerp>
File Name: your_module/reports/report_employee1.xml
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_employee1">
<t t-call="report.html_container">
<t t-foreach="doc_ids" t-as="doc_id">
<t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang',
'comp2.report_employee_document1')"/>
</t>
</t>
</template>
<template id="report_employee1">
<t t-call="report.external_layout">
<t t-foreach="docs" t-as="emp">
<div class="page">
<div class="oe_structure"/>
<div class="row">
<table class="table table-condensed">
<tr>
<td style="width:152px">
<img t-att-src="'data:image/jpg;base64,%s' % emp.photo" style="max-
height:180px;max-width:150px;align:left"/>
</td>
<td>
<h2 style="margin-top:0px">
<span t-field="emp.name"/>
</h2>
<h3>
<span t-field="emp.code"/>
</h3>
<h4>
<span t-field="emp.email_id"/>
</h4>
</td>
</tr>
</table>
<table class="table table-condensed">
<tr style="font-size:24px">
<th class="text-center"><strong>Citizenship And OtherInfo</strong></th>
<th class="text-center"><strong>Birth</strong></th>
</tr>
<tr style="font-size:18px">
<td style="width:50%">
<table>
<tr>
<td>
<span style="margin-left:50px">Nationality:</span>
</td>
<td style="width:25px">
</td>
<td>
<span t-field="emp.country"/><br/>
</td>
</tr>
<tr>
<td>
<span style="margin-left:50px">State:</span>
</td>
<td style="width:25px">
</td>
<td>
<span t-field="emp.state_co"/><br/>
</td>
</tr>
<tr>
<td>
<span style="margin-left:50px">Citizenship:</span>
</td>
<td style="width:25px">
</td>
<td>
<span t-field="emp.citizenship"/><br/>
</td>
</tr>
</table>
</td>
<td style="width:50%">
<table>
<tr>
<td>
<span style="margin-left:50px">Date Of Birth:</span>
</td>
<td style="width:25px">
</td>
<td>
<span t-field="emp.date_of_birth"/>
</td>
</tr>
<tr>
<td>
<span style="margin-left:50px">Age:</span>
</td>
<td style="width:25px">
</td>
<td>
<span t-field="emp.age"/><br/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="table table-condensed">
<tr style="font-size:24px">
<th class="text-center"><strong>Contect Info</strong></th>
<th class="text-center"><strong>Status</strong></th>
</tr>
<tr style="font-size:18px">
<td style="width:50%">
<table>
<tr>
<td style="width:210px">
<span style="margin-left:50px">Working Address:</span><br/>
</td>
<td style="width:25px">
</td>
<td>
<span t-field="emp.address"/><br/>
</td>
</tr>
<tr>
<td style="width:210px">
<span style="margin-left:50px">Contect No(M):</span><br/>
</td>
<td style="width:25px">
</td>
<td>
<span t-field="emp.contect"/><br/>
</td>
</tr>
</table>
</td>
<td style="width:50%">
<table>
<tr>
<td>
<span style="margin-left:50px">Gender:</span><br/>
</td>
<td style="width:25px">
</td>
<td>
<span t-field="emp.gender"/>
</td>
</tr>
<tr>
<td>
<span style="margin-left:50px">Marital Status:</span>
</td>
<td style="width:25px">
</td>
<td>
<span t-field="emp.marital_status"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="table table-condensed">
<tr style="font-size:24px">
<th class="text-center"><strong>Department Info</strong></th>
<th class="text-center"><strong>Position</strong></th>
</tr>
<tr style="font-size:18px">
<td style="width:50%">
<table>
<tr>
<td style="width:210px">
<span style="margin-left:50px">Department Name:</span><br/>
</td>
<td style="width:25px">
</td>
<td>
<span t-field="emp.dept_id"/><br/>
</td>
</tr>
<tr>
<td style="width:210px">
<span style="margin-left:50px">Catagory:</span><br/>
</td>
<td style="width:25px">
</td>
<td>
<span t-field="emp.catagory_id.name"/><br/>
</td>
</tr>
</table>
</td>
<td style="width:50%">
<table>
<tr>
<td>
<span style="margin-left:50px">Join Date:</span><br/>
</td>
<td style="width:25px">
</td>
<td>
<span t-field="emp.join_date"/><br/>
</td>
</tr>
<tr>
<td>
<span style="margin-left:50px">Is Manager:</span><br/>
</td>
<td style="width:25px">
</td>
<td>
<span t-field="emp.is_manager"/><br/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
</t>
</t>
</template>
</data>
</openerp>
❖ QWeb Report Capablity to Genrateboth type report 1).PDF
2).HTML
❖ You Can Change The Setting to Genrate Reporttype follow
bellow steps
★ Go to setting->reports->reports->search and selectyour object
● For Kind Information You can not print Reportin list/tree View

Contenu connexe

Tendances

Using runbot to test all your developments automatically
Using runbot to test all your developments automaticallyUsing runbot to test all your developments automatically
Using runbot to test all your developments automaticallyOdoo
 
An in Depth Journey into Odoo's ORM
An in Depth Journey into Odoo's ORMAn in Depth Journey into Odoo's ORM
An in Depth Journey into Odoo's ORMOdoo
 
Asynchronous JS in Odoo
Asynchronous JS in OdooAsynchronous JS in Odoo
Asynchronous JS in OdooOdoo
 
View Inheritance in Odoo 15
View Inheritance in Odoo 15View Inheritance in Odoo 15
View Inheritance in Odoo 15Celine George
 
Deploying & Scaling your Odoo Server
Deploying & Scaling your Odoo ServerDeploying & Scaling your Odoo Server
Deploying & Scaling your Odoo ServerOdoo
 
Odoo (Build module, Security, ORM)
Odoo (Build module, Security, ORM)Odoo (Build module, Security, ORM)
Odoo (Build module, Security, ORM)sroo galal
 
Tools for Solving Performance Issues
Tools for Solving Performance IssuesTools for Solving Performance Issues
Tools for Solving Performance IssuesOdoo
 
Improving the performance of Odoo deployments
Improving the performance of Odoo deploymentsImproving the performance of Odoo deployments
Improving the performance of Odoo deploymentsOdoo
 
Best Tools for first time Odoo Development
Best Tools for first time Odoo DevelopmentBest Tools for first time Odoo Development
Best Tools for first time Odoo DevelopmentOdoo
 
Odoo - From v7 to v8: the new api
Odoo - From v7 to v8: the new apiOdoo - From v7 to v8: the new api
Odoo - From v7 to v8: the new apiOdoo
 
Odoo ORM Methods | Object Relational Mapping in Odoo15
Odoo ORM Methods | Object Relational Mapping in Odoo15 Odoo ORM Methods | Object Relational Mapping in Odoo15
Odoo ORM Methods | Object Relational Mapping in Odoo15 Celine George
 
How to Use Constraint and SQL Constraint in Odoo 15
How to Use Constraint and SQL Constraint in Odoo 15How to Use Constraint and SQL Constraint in Odoo 15
How to Use Constraint and SQL Constraint in Odoo 15Celine George
 
Simple Odoo ERP auto scaling on AWS
Simple Odoo ERP auto scaling on AWSSimple Odoo ERP auto scaling on AWS
Simple Odoo ERP auto scaling on AWSJulien Lecadou,MSc.
 
Docx Report Module
Docx Report ModuleDocx Report Module
Docx Report ModuleOdoo
 
Translation engine in odoo
Translation engine in odooTranslation engine in odoo
Translation engine in odooRanjit Pillai
 
Odoo's Test Framework - Learn Best Practices
Odoo's Test Framework - Learn Best PracticesOdoo's Test Framework - Learn Best Practices
Odoo's Test Framework - Learn Best PracticesOdoo
 
Odoo - Open chatter integration
Odoo - Open chatter integrationOdoo - Open chatter integration
Odoo - Open chatter integrationOdoo
 
odoo 11.0 development (CRUD)
odoo 11.0 development (CRUD)odoo 11.0 development (CRUD)
odoo 11.0 development (CRUD)Mohamed Magdy
 
Odoo - Create themes for website
Odoo - Create themes for websiteOdoo - Create themes for website
Odoo - Create themes for websiteOdoo
 

Tendances (20)

Using runbot to test all your developments automatically
Using runbot to test all your developments automaticallyUsing runbot to test all your developments automatically
Using runbot to test all your developments automatically
 
An in Depth Journey into Odoo's ORM
An in Depth Journey into Odoo's ORMAn in Depth Journey into Odoo's ORM
An in Depth Journey into Odoo's ORM
 
Asynchronous JS in Odoo
Asynchronous JS in OdooAsynchronous JS in Odoo
Asynchronous JS in Odoo
 
View Inheritance in Odoo 15
View Inheritance in Odoo 15View Inheritance in Odoo 15
View Inheritance in Odoo 15
 
Deploying & Scaling your Odoo Server
Deploying & Scaling your Odoo ServerDeploying & Scaling your Odoo Server
Deploying & Scaling your Odoo Server
 
Odoo (Build module, Security, ORM)
Odoo (Build module, Security, ORM)Odoo (Build module, Security, ORM)
Odoo (Build module, Security, ORM)
 
Tools for Solving Performance Issues
Tools for Solving Performance IssuesTools for Solving Performance Issues
Tools for Solving Performance Issues
 
Improving the performance of Odoo deployments
Improving the performance of Odoo deploymentsImproving the performance of Odoo deployments
Improving the performance of Odoo deployments
 
Best Tools for first time Odoo Development
Best Tools for first time Odoo DevelopmentBest Tools for first time Odoo Development
Best Tools for first time Odoo Development
 
Odoo - From v7 to v8: the new api
Odoo - From v7 to v8: the new apiOdoo - From v7 to v8: the new api
Odoo - From v7 to v8: the new api
 
Odoo ORM Methods | Object Relational Mapping in Odoo15
Odoo ORM Methods | Object Relational Mapping in Odoo15 Odoo ORM Methods | Object Relational Mapping in Odoo15
Odoo ORM Methods | Object Relational Mapping in Odoo15
 
Odoo experience 2018 - Odoo Documents
Odoo experience 2018 - Odoo DocumentsOdoo experience 2018 - Odoo Documents
Odoo experience 2018 - Odoo Documents
 
How to Use Constraint and SQL Constraint in Odoo 15
How to Use Constraint and SQL Constraint in Odoo 15How to Use Constraint and SQL Constraint in Odoo 15
How to Use Constraint and SQL Constraint in Odoo 15
 
Simple Odoo ERP auto scaling on AWS
Simple Odoo ERP auto scaling on AWSSimple Odoo ERP auto scaling on AWS
Simple Odoo ERP auto scaling on AWS
 
Docx Report Module
Docx Report ModuleDocx Report Module
Docx Report Module
 
Translation engine in odoo
Translation engine in odooTranslation engine in odoo
Translation engine in odoo
 
Odoo's Test Framework - Learn Best Practices
Odoo's Test Framework - Learn Best PracticesOdoo's Test Framework - Learn Best Practices
Odoo's Test Framework - Learn Best Practices
 
Odoo - Open chatter integration
Odoo - Open chatter integrationOdoo - Open chatter integration
Odoo - Open chatter integration
 
odoo 11.0 development (CRUD)
odoo 11.0 development (CRUD)odoo 11.0 development (CRUD)
odoo 11.0 development (CRUD)
 
Odoo - Create themes for website
Odoo - Create themes for websiteOdoo - Create themes for website
Odoo - Create themes for website
 

En vedette

Odoo acces rights & groups
Odoo acces rights & groupsOdoo acces rights & groups
Odoo acces rights & groupsLithin Thampan
 
OpenERP - Security in OpenERP
OpenERP - Security in OpenERPOpenERP - Security in OpenERP
OpenERP - Security in OpenERPOdoo
 
How to customize views & menues of OpenERP online in a sustainable way. Frede...
How to customize views & menues of OpenERP online in a sustainable way. Frede...How to customize views & menues of OpenERP online in a sustainable way. Frede...
How to customize views & menues of OpenERP online in a sustainable way. Frede...Odoo
 
Odoo Features | Opensource ERP | Odoo Ecommerce
Odoo Features | Opensource ERP | Odoo EcommerceOdoo Features | Opensource ERP | Odoo Ecommerce
Odoo Features | Opensource ERP | Odoo EcommerceTech Receptives
 
Development Odoo Basic
Development Odoo BasicDevelopment Odoo Basic
Development Odoo BasicMario IC
 
Regalos eco eticos
Regalos eco eticosRegalos eco eticos
Regalos eco eticosecogermen
 
Regalos ecológicos
Regalos ecológicosRegalos ecológicos
Regalos ecológicosecogermen
 
OpenERP - Whole Company Meeting
OpenERP - Whole Company MeetingOpenERP - Whole Company Meeting
OpenERP - Whole Company MeetingOdoo
 
Workflow functional concept on openerp7
Workflow functional concept on openerp7Workflow functional concept on openerp7
Workflow functional concept on openerp7Aziza Mohamed
 
Odoo accounting or financial module:
Odoo accounting or financial module:Odoo accounting or financial module:
Odoo accounting or financial module:Aspirant Labs
 
Odoo 8 tutorial part 2
Odoo 8 tutorial   part 2Odoo 8 tutorial   part 2
Odoo 8 tutorial part 2Md Omar Bare
 
Empezar a trabajar con Odoo 8
Empezar a trabajar con Odoo 8Empezar a trabajar con Odoo 8
Empezar a trabajar con Odoo 8gmartineznieto
 
Odoo - CMS performances optimization
Odoo - CMS performances optimizationOdoo - CMS performances optimization
Odoo - CMS performances optimizationOdoo
 

En vedette (20)

Odoo acces rights & groups
Odoo acces rights & groupsOdoo acces rights & groups
Odoo acces rights & groups
 
Odoo access rights
Odoo access rightsOdoo access rights
Odoo access rights
 
OpenERP - Security in OpenERP
OpenERP - Security in OpenERPOpenERP - Security in OpenERP
OpenERP - Security in OpenERP
 
Connfa! Progressive web app
Connfa! Progressive web appConnfa! Progressive web app
Connfa! Progressive web app
 
OpenERP Formation Web
OpenERP Formation WebOpenERP Formation Web
OpenERP Formation Web
 
Odoo report
Odoo reportOdoo report
Odoo report
 
Informes en Odoo 8
Informes en Odoo 8Informes en Odoo 8
Informes en Odoo 8
 
How to customize views & menues of OpenERP online in a sustainable way. Frede...
How to customize views & menues of OpenERP online in a sustainable way. Frede...How to customize views & menues of OpenERP online in a sustainable way. Frede...
How to customize views & menues of OpenERP online in a sustainable way. Frede...
 
Odoo Features | Opensource ERP | Odoo Ecommerce
Odoo Features | Opensource ERP | Odoo EcommerceOdoo Features | Opensource ERP | Odoo Ecommerce
Odoo Features | Opensource ERP | Odoo Ecommerce
 
Development Odoo Basic
Development Odoo BasicDevelopment Odoo Basic
Development Odoo Basic
 
Regalos eco eticos
Regalos eco eticosRegalos eco eticos
Regalos eco eticos
 
Regalos ecológicos
Regalos ecológicosRegalos ecológicos
Regalos ecológicos
 
Sugerencias
SugerenciasSugerencias
Sugerencias
 
OpenERP - Whole Company Meeting
OpenERP - Whole Company MeetingOpenERP - Whole Company Meeting
OpenERP - Whole Company Meeting
 
Colorer la vue Kanban dans Odoo v9.0
Colorer la vue Kanban dans Odoo v9.0Colorer la vue Kanban dans Odoo v9.0
Colorer la vue Kanban dans Odoo v9.0
 
Workflow functional concept on openerp7
Workflow functional concept on openerp7Workflow functional concept on openerp7
Workflow functional concept on openerp7
 
Odoo accounting or financial module:
Odoo accounting or financial module:Odoo accounting or financial module:
Odoo accounting or financial module:
 
Odoo 8 tutorial part 2
Odoo 8 tutorial   part 2Odoo 8 tutorial   part 2
Odoo 8 tutorial part 2
 
Empezar a trabajar con Odoo 8
Empezar a trabajar con Odoo 8Empezar a trabajar con Odoo 8
Empezar a trabajar con Odoo 8
 
Odoo - CMS performances optimization
Odoo - CMS performances optimizationOdoo - CMS performances optimization
Odoo - CMS performances optimization
 

Similaire à Report Template Examples for Odoo Reports

Reporting - Printed (Pdf) Reports
Reporting - Printed (Pdf) ReportsReporting - Printed (Pdf) Reports
Reporting - Printed (Pdf) ReportsCeline George
 
How to embed reporting into your asp.net core web applications
How to embed reporting into your asp.net core web applications How to embed reporting into your asp.net core web applications
How to embed reporting into your asp.net core web applications Concetto Labs
 
bi-publisher.pptx
bi-publisher.pptxbi-publisher.pptx
bi-publisher.pptxkjkombrink
 
Crystal Reports Review
Crystal Reports ReviewCrystal Reports Review
Crystal Reports ReviewJustin R. Rue
 
Import and synchronize Drupal commerce content using Commerce feeds
Import and synchronize Drupal commerce content using Commerce feedsImport and synchronize Drupal commerce content using Commerce feeds
Import and synchronize Drupal commerce content using Commerce feedsPedro Cambra
 
Pentaho: Reporting Solution Development
Pentaho: Reporting Solution DevelopmentPentaho: Reporting Solution Development
Pentaho: Reporting Solution Developmentpentaho Content
 
Pentaho: Reporting Solution Development
Pentaho: Reporting Solution DevelopmentPentaho: Reporting Solution Development
Pentaho: Reporting Solution DevelopmentDataminingTools Inc
 
Actuate BIRT best practices v1 0
Actuate BIRT best practices v1 0Actuate BIRT best practices v1 0
Actuate BIRT best practices v1 0Aishwarya Savant
 
Tips and tricks for creating cm14 reports white paper (1)
Tips and tricks for creating cm14 reports white paper (1)Tips and tricks for creating cm14 reports white paper (1)
Tips and tricks for creating cm14 reports white paper (1)p6academy
 
Tips and tricks for creating cm14 reports white paper
Tips and tricks for creating cm14 reports white paperTips and tricks for creating cm14 reports white paper
Tips and tricks for creating cm14 reports white paperp6academy
 
XMLPublisher
XMLPublisherXMLPublisher
XMLPublisherJAYAARC
 
Fr net programmermanual-en
Fr net programmermanual-enFr net programmermanual-en
Fr net programmermanual-enMorenita Batista
 
Crystal%20 reports%202008%20reviewer's%20guide%20version%203
Crystal%20 reports%202008%20reviewer's%20guide%20version%203Crystal%20 reports%202008%20reviewer's%20guide%20version%203
Crystal%20 reports%202008%20reviewer's%20guide%20version%203Eric Kruis
 
Datasheet scriptspluginforrd
Datasheet scriptspluginforrdDatasheet scriptspluginforrd
Datasheet scriptspluginforrdMidVision
 
Telerik Reporting for HTML 5 Apps
Telerik Reporting for HTML 5 AppsTelerik Reporting for HTML 5 Apps
Telerik Reporting for HTML 5 AppsMuhammad Umar
 
SAP BI BO Commentary solution
SAP BI BO Commentary solutionSAP BI BO Commentary solution
SAP BI BO Commentary solutionPeter Scheffelt
 

Similaire à Report Template Examples for Odoo Reports (20)

Rtc user en
Rtc user enRtc user en
Rtc user en
 
Reporting - Printed (Pdf) Reports
Reporting - Printed (Pdf) ReportsReporting - Printed (Pdf) Reports
Reporting - Printed (Pdf) Reports
 
How to embed reporting into your asp.net core web applications
How to embed reporting into your asp.net core web applications How to embed reporting into your asp.net core web applications
How to embed reporting into your asp.net core web applications
 
bi-publisher.pptx
bi-publisher.pptxbi-publisher.pptx
bi-publisher.pptx
 
Crystal Reports Review
Crystal Reports ReviewCrystal Reports Review
Crystal Reports Review
 
Import and synchronize Drupal commerce content using Commerce feeds
Import and synchronize Drupal commerce content using Commerce feedsImport and synchronize Drupal commerce content using Commerce feeds
Import and synchronize Drupal commerce content using Commerce feeds
 
ebs xml.ppt
ebs xml.pptebs xml.ppt
ebs xml.ppt
 
Pentaho: Reporting Solution Development
Pentaho: Reporting Solution DevelopmentPentaho: Reporting Solution Development
Pentaho: Reporting Solution Development
 
Pentaho: Reporting Solution Development
Pentaho: Reporting Solution DevelopmentPentaho: Reporting Solution Development
Pentaho: Reporting Solution Development
 
Actuate BIRT best practices v1 0
Actuate BIRT best practices v1 0Actuate BIRT best practices v1 0
Actuate BIRT best practices v1 0
 
oracle-reports6i
oracle-reports6ioracle-reports6i
oracle-reports6i
 
Tips and tricks for creating cm14 reports white paper (1)
Tips and tricks for creating cm14 reports white paper (1)Tips and tricks for creating cm14 reports white paper (1)
Tips and tricks for creating cm14 reports white paper (1)
 
Tips and tricks for creating cm14 reports white paper
Tips and tricks for creating cm14 reports white paperTips and tricks for creating cm14 reports white paper
Tips and tricks for creating cm14 reports white paper
 
XMLPublisher
XMLPublisherXMLPublisher
XMLPublisher
 
Fr net programmermanual-en
Fr net programmermanual-enFr net programmermanual-en
Fr net programmermanual-en
 
Crystal%20 reports%202008%20reviewer's%20guide%20version%203
Crystal%20 reports%202008%20reviewer's%20guide%20version%203Crystal%20 reports%202008%20reviewer's%20guide%20version%203
Crystal%20 reports%202008%20reviewer's%20guide%20version%203
 
Datasheet scriptspluginforrd
Datasheet scriptspluginforrdDatasheet scriptspluginforrd
Datasheet scriptspluginforrd
 
Telerik Reporting for HTML 5 Apps
Telerik Reporting for HTML 5 AppsTelerik Reporting for HTML 5 Apps
Telerik Reporting for HTML 5 Apps
 
Routing
RoutingRouting
Routing
 
SAP BI BO Commentary solution
SAP BI BO Commentary solutionSAP BI BO Commentary solution
SAP BI BO Commentary solution
 

Dernier

What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 

Dernier (20)

What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 

Report Template Examples for Odoo Reports

  • 1. ❏ Note: ❏ Please MakeFollowing CompatibleVersion ➔ Reportlab : 2.5 ➔ Werkzeug: 0.8.1 ➔ Wkhtmltopdf: Upper Version Of0.12.0 Such as [‘0.12.1’,’0.12.1.1’,’0.12.1.2’] ❏ Please Use Odoo 8.0 LatestVersion ❖ Websites References https://www.odoo.com/documentation/8.0/reference/reports.html http://openerp-web-v7.readthedocs.org/en/latest/qweb.html Report Every report must be declared by a report action. For simplicity, a shortcut <report> element is available to define a report, rather than have to set up the action and its surroundings manually. That <report> can take the following attributes: id the generated record’s external id name (mandatory) only useful as a mnemonic/description of the report when looking for one in a list of some sort model (mandatory) the model your report will be about report_type (mandatory) either qweb-pdf for PDF reports or qweb-html for HTML report_name the name of your report (which will be the name of the PDF output) groups Many2many field to the groups allowed to view/use the current report attachment_use
  • 2. if set to True, the report will be stored as an attachment of the record using the name generated by the attachment expression; you can use this if you need your report to be generated only once (for legal reasons, for example) attachment python expression that defines the name of the report; the record is acessible as the variable object Example: <report id="account_invoices" model="account.invoice" string="Invoices" report_type="qweb-pdf" name="account.report_invoice" file="account.report_invoice" attachment_use="True" attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/','')+'.pdf')" /> Report template Minimal viable template A minimal template would look like: <template id="report_invoice"> <t t-call="report.html_container"> <t t-foreach="docs" t-as="o"> <t t-call="report.external_layout"> <div class="page"> <h2>Report title</h2> <p>This object's name is <span t-field="o.name"/></p> </div> </t> </t> </t> </template> Calling external_layout will add the default header and footer on your report. The PDF body will be the content inside the <divclass="page">. The template’s id must be the name specified in the report declaration; for example account.report_invoice for the above report. Since this is a QWeb template, you can access all the fields of the docs objects received bythe template. There are some specific variables accessible in reports, mainly: docs records for the current report
  • 3. doc_ids list of ids for the docs records doc_model model for the docs records time a reference to time from the Python standard library translate_doc a function to translate a part of a report. It must be used as follow: <t t-foreach="doc_ids" t-as="doc_id"> <t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', account.report_invoice_document')"/> </t> user res.user record for the user printing the report res_company record for the current user‘s company If you wish to access other records/models in the template, you will need a custom report. Translatable Templates If you wish to translate reports (to the language of a partner, for example), you need to define two templates: The main report template The translatable document You can then call translate_doc from your main template to obtain the translated document. If you wish to see the details of the translation in the backend, you can go to Settings ‣ Reports ‣ Report ‣ <report_name> ‣ Search associated QWeb views ‣ <translatable_document> ‣ Associated translations. Barcodes Barcodes are images returned by a controller and can easily be embedded in reports thanks to the QWeb syntax: More parameters can be passed as a query string <img t-att-src="'/report/barcode/? type=%s&value=%s&width=%s&height=%s'%('QR', 'text', 200, 200)"/>
  • 4. Useful Remarks ● Local CSS can be put directly in the template ● Twitter Bootstrap and FontAwesome classes can be used in your report template ● Global CSS can be inserted in the main report layout by inheriting its template and inserting your CSS: Paper Format Paper formats are records of report.paperformat and can contain the following attributes: name (mandatory) only useful as a mnemonic/description of the report when looking for one in a list of some sort description a small description of your format format either a predefined format (A0 to A9, B0 to B10, Legal, Letter, Tabloid,...) or custom; A4 by default. You cannot use a non-custom format if you define the page dimensions. dpi output DPI; 90 by default margin_top, margin_bottom, margin_left, margin_right margin sizes in mm page_height, page_width page dimensions in mm orientationReports are dynamically generated by the report module and can be accessed directly via URL: For example, you can access a Sale Order report in html mode by going to http://<server-address>/report/html/sale.report_saleorder/38
  • 5. Or you can access the pdf version at http://<server- address>/report/pdf/sale.report_saleorder/38 Landscape or Portrait header_line boolean to display a header line header_spacing header spacing in mm Custom Reports The report model has a default get_html function that looks for a model named report.module.report_name. If it exists, it will use it to call the QWeb engine; otherwise a generic function will be used. If you wish to customize your reports by including more things in the template (like records of others models, for example), you can define this model, overwrite the function render_html and pass objects in the docargs dictionnary:
  • 6. Reports are web pages Reports are dynamically generated bythe report module and can be accessed directly via URL: For example, you can access a Sale Order report in html mode by going to http://<server- address>/report/html/sale.report_saleorder/38 Or you can access the pdf version at http://<server- address>/report/pdf/sale.report_saleorder/38 QWeb QWeb is the template engine used by the OpenERP Web Client. It is an XML-based templating language, similar to Genshi, Thymeleaf or Facelets with a few peculiarities: ● It’s implemented fully in javascript and rendered in the browser. ● Each template file (XML files) contains multiple templates, where template engine usually have a 1:1 mapping between template files and templates. ● It has special support in OpenERP Web’s Widget, though it can be used outside of OpenERP Web (and it’s possible to use Widget without relying on the QWeb integration). Sample Code Of QWeb Report in Odoo
  • 7. File Name: your_module/report_comp_employee.xml <?xml version="1.0" encoding="utf-8"?> <openerp> <data> <report id="report_comp_employee" string="Employee Details" model="comp.employee" report_type="qweb-pdf" file="comp2.report_employee1" name="comp2.report_employee1" /> </data> </openerp> File Name: your_module/reports/report_employee1.xml <?xml version="1.0" encoding="utf-8"?> <openerp> <data> <template id="report_employee1"> <t t-call="report.html_container"> <t t-foreach="doc_ids" t-as="doc_id"> <t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', 'comp2.report_employee_document1')"/> </t> </t> </template> <template id="report_employee1"> <t t-call="report.external_layout"> <t t-foreach="docs" t-as="emp"> <div class="page"> <div class="oe_structure"/> <div class="row"> <table class="table table-condensed"> <tr> <td style="width:152px"> <img t-att-src="'data:image/jpg;base64,%s' % emp.photo" style="max- height:180px;max-width:150px;align:left"/> </td> <td>
  • 8. <h2 style="margin-top:0px"> <span t-field="emp.name"/> </h2> <h3> <span t-field="emp.code"/> </h3> <h4> <span t-field="emp.email_id"/> </h4> </td> </tr> </table> <table class="table table-condensed"> <tr style="font-size:24px"> <th class="text-center"><strong>Citizenship And OtherInfo</strong></th> <th class="text-center"><strong>Birth</strong></th> </tr> <tr style="font-size:18px"> <td style="width:50%"> <table> <tr> <td> <span style="margin-left:50px">Nationality:</span> </td> <td style="width:25px"> </td> <td> <span t-field="emp.country"/><br/> </td> </tr> <tr> <td> <span style="margin-left:50px">State:</span> </td> <td style="width:25px"> </td> <td> <span t-field="emp.state_co"/><br/> </td> </tr> <tr> <td>
  • 9. <span style="margin-left:50px">Citizenship:</span> </td> <td style="width:25px"> </td> <td> <span t-field="emp.citizenship"/><br/> </td> </tr> </table> </td> <td style="width:50%"> <table> <tr> <td> <span style="margin-left:50px">Date Of Birth:</span> </td> <td style="width:25px"> </td> <td> <span t-field="emp.date_of_birth"/> </td> </tr> <tr> <td> <span style="margin-left:50px">Age:</span> </td> <td style="width:25px"> </td> <td> <span t-field="emp.age"/><br/> </td> </tr> </table> </td> </tr> </table> <table class="table table-condensed"> <tr style="font-size:24px"> <th class="text-center"><strong>Contect Info</strong></th> <th class="text-center"><strong>Status</strong></th> </tr>
  • 10. <tr style="font-size:18px"> <td style="width:50%"> <table> <tr> <td style="width:210px"> <span style="margin-left:50px">Working Address:</span><br/> </td> <td style="width:25px"> </td> <td> <span t-field="emp.address"/><br/> </td> </tr> <tr> <td style="width:210px"> <span style="margin-left:50px">Contect No(M):</span><br/> </td> <td style="width:25px"> </td> <td> <span t-field="emp.contect"/><br/> </td> </tr> </table> </td> <td style="width:50%"> <table> <tr> <td> <span style="margin-left:50px">Gender:</span><br/> </td> <td style="width:25px"> </td> <td> <span t-field="emp.gender"/> </td> </tr> <tr>
  • 11. <td> <span style="margin-left:50px">Marital Status:</span> </td> <td style="width:25px"> </td> <td> <span t-field="emp.marital_status"/> </td> </tr> </table> </td> </tr> </table> <table class="table table-condensed"> <tr style="font-size:24px"> <th class="text-center"><strong>Department Info</strong></th> <th class="text-center"><strong>Position</strong></th> </tr> <tr style="font-size:18px"> <td style="width:50%"> <table> <tr> <td style="width:210px"> <span style="margin-left:50px">Department Name:</span><br/> </td> <td style="width:25px"> </td> <td> <span t-field="emp.dept_id"/><br/> </td> </tr> <tr> <td style="width:210px"> <span style="margin-left:50px">Catagory:</span><br/> </td> <td style="width:25px"> </td> <td> <span t-field="emp.catagory_id.name"/><br/> </td>
  • 12. </tr> </table> </td> <td style="width:50%"> <table> <tr> <td> <span style="margin-left:50px">Join Date:</span><br/> </td> <td style="width:25px"> </td> <td> <span t-field="emp.join_date"/><br/> </td> </tr> <tr> <td> <span style="margin-left:50px">Is Manager:</span><br/> </td> <td style="width:25px"> </td> <td> <span t-field="emp.is_manager"/><br/> </td> </tr> </table> </td> </tr> </table> </div> </div> </t> </t> </template> </data> </openerp> ❖ QWeb Report Capablity to Genrateboth type report 1).PDF 2).HTML ❖ You Can Change The Setting to Genrate Reporttype follow bellow steps
  • 13. ★ Go to setting->reports->reports->search and selectyour object
  • 14. ● For Kind Information You can not print Reportin list/tree View