Affichage des articles dont le libellé est report. Afficher tous les articles
Affichage des articles dont le libellé est report. Afficher tous les articles

dimanche 26 septembre 2010

Currency Symbols in OpenERP

OpenERP is doing lots of Improvement from the usability point of view. There is a small but good improvement in the reports that is allows to print the currency symbol on the report.

Currency configuration with new field Symbol
a
All accounting reports are improved, now all reports are displaying the currency symbol with the amount. It helps lot when the reports are showing the multi-currency transactions. Look at the partner ledger reports which is heaving the multiple currency transaction.

Partner ledger report

Are you waned to add the Indian currency symbol ₹ to OpenERP ?
Click here

vendredi 22 mai 2009

Html Reports Using Mako Templates

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 ms
2. 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-community

Thanks & regards

Open ERP team