Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4 Răspunsuri
6379 Vizualizări

hi,

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

Thanks before,

Imagine profil
Abandonează
Cel mai bun răspuns

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....

Imagine profil
Abandonează
Autor

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

Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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. 

 

Imagine profil
Abandonează
Autor

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...

Autor Cel mai bun răspuns

Thank you for all answer ..

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
aug. 15
4526
3
aug. 15
13926
3
aug. 19
9737
0
mai 18
13583
0
ian. 17
3622