Hello Every One,
Now you can create your HTML reports using
Mako Templates for faster and formatted output.Open ERP has added new type of report called mako2html.
Mako is a template library written in Python. It provides a familiar, non-XML syntax which compiles into Python modules for maximum performance. This enables end user to make changes in format of report easily and faster as per her need.
Advantages:
1.
Fast: simple three-sectioned layout mako template report takes
1.10 ms2.
Control structures constructed from real Python code (i.e. loops, conditionals) Which will allow user to create reports faster.
3.
Straight Python blocks, inline or at the module-level
You can format the report as you need
using HTML.
Requirements:
Mako 0.2.4 should be installed on your system.
openERP-server : Trunk version
openERP-client : Trunk version
openERP-addons : Trunk version
As an overview lets see a small example,
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<html>
<head>
<%include file=”mako_header.html”/>
</head>
<body>
% for o in objects:
<div style=”white-space: nowrap; float: left;”>
<address>
<p><small><b>Shipping address :</b></small></br></p>
<small>${ o.partner_id.title or ‘ ‘ } ${ o.partner_id.name }</small></br>
<small>${ o.partner_shipping_id.title or ‘ ‘ } ${ o.partner_shipping_id.name }</small></br>
<small>${ o.partner_shipping_id.street }</small></br>
<small>${ o.partner_shipping_id.street2 or ‘ ‘ }</small></br></address>
</div>
% endfor
</body>
<%include file=”mako_footer.html”/>
</html>
for your company header you need to include <%include file=”mako_header.html”/>
for your company footer you need to include <%include file=”mako_footer.html”/>
This files will bring the header and footer that you have defined for your company in the database.

Sale Order
For Complete Example of Sale_order please Refer the module sale_report_html from :
https://code.launchpad.net/~openerp-community/openobject-addons/trunk-addons-communityThanks & regards
Open ERP team