Skip to Content
Menu
This question has been flagged
4 Replies
6374 Views

hi,

i don't know how to make report in OpenERP v.7, can you tell me about it ?

Thanks before,

Avatar
Discard
Best Answer

HI fencyta

    It is really easy to make report using webkit while compared to Qweb here is the sample...

<report
                auto="False"
                id="report_test_report"
                model="report.model"
                name="report_testing_model"
                file="hello_report/report/report_webkit.mako"
                string="Webkit report"
                report_type="webkit"
               />

 in which model denotes your model name(_name="report.model"), name is user defined name, file is your location of your report file name, string is the name you have given for the menu. And the report file is as follows....

<html>
<head>

</head>
    <body>
      <hr  size="20">
        <br><br>
        <table border="1.0" width="100%" >
                <tr>
                    <th>Name</th>
                    <th>Experience</th>
                    <th>Salary</th>
                    <th>Company</th>
                </tr>
            %for obj in objects:
                <tr>
                    <td>${obj.name}</td>
                    <td>${obj.exp}</td>
                    <td>${obj.sal}</td>
                    <td>${obj.company}</td>
                </tr>
                %endfor
            </table>
    </body>
</html>

......you have to save this file as .mako eg report_webkit.mako, what ever you have defined in your class you can accesed using $(obj.) format, Its a simple html you can do it very easily try this....

Avatar
Discard
Author

where can I set it? Can you tell me a tutorial?

Best Answer

Hi fencyta,

the following links will usefull for you to create reports:

https://www.odoo.com/forum/help-1/question/put-report-in-module-5224

https://www.odoo.com/forum/help-1/question/link-the-best-rml-report-tutorial-70591

https://www.odoo.com/forum/help-1/question/how-to-modify-a-simple-report-74350

Avatar
Discard
Best Answer

I solved my problem by integrating Jasper reports with OpenERP v7.

Jasper reports offers many formats (doc, pdf, excell and much more), so it's great if you need all that stuffs. there are some modules that integrates Jasper with OpenERP, so it makes your lifee much easier.

If you are not familiar with Jasper (thus for very simply reports you can figure out it very quickly), maybe OpenOffice can do the trick for you- simply reports are very easy to make with OpenOffice and there are several tutorials for that. 

 

Avatar
Discard
Author

Can you give me a tutorial to make it? thankz

https://www.odoo.com/forum/help-1/question/jasperreport-and-openerp-7-with-parameters-how-to-33534 Here you can find very good explanation how to connect jasper anfd openerp. Remember, you need to install Jasper Server on your machine. Easy task. Then you need to set up JasperServer- this manual is for that purpose (from 6)). If you set all OK, you can run your reports from JasperServer, w/o Openerp. Then you just have to connect JasperServer with Openerp (from 20)). Hope this helps. hint: in JasperServer, you create folders by right click...

Author Best Answer

Thank you for all answer ..

Avatar
Discard
Related Posts Replies Views Activity
1
Aug 15
4520
3
Aug 15
13911
3
Aug 19
9736
0
May 18
13579
0
Jan 17
3615