Odoo Help

0

0
4 Answers
2

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

1 Comment
fencyta
2015/02/10 22:23

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

1
Ajay
2015/02/05 23:57

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

0
fencyta
2015/02/08 22:05

Thank you for all answer ..

0
Andrija Burlic
2015/02/06 5:26

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. 

 

2 Comments
fencyta
2015/02/10 22:05

Can you give me a tutorial to make it? thankz

Andrija Burlic
2015/02/11 3:33

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

Ask a Question
Writer
Keep Informed
2 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register