OpenERP Report Flow
Creating a Pdf or Xls Report
Types of Report
Report creation using Osv Memory
1.wizard.py file for field and function
2.view.xml file for view
3.report.rml file for report (for pdf report)
1.In .py file add the required fields.
2.model name may be like sample.wiz.
3.define function to do action with required queries.
4.make sure rml file has been parsed with reference to it’s name and rml path(For Pdf report).
5.create a binary field to return xls generated(For Xls report).
6.need python-xlwt module installed(For Xls report).
7.write value in worksheet by write value enter row,column and style etc…(For Xls report).
8.Parse writen value as String by using StringIO(For Xls report).
9.encode the string use base64.Encodestring()(For Xls report)..
10.Then return the binary(For Xls report).
1.Create a form with required fields.
2.Create a action window to call the form with res.model and view type referring above view.
3.Create a Menu to call the above act window referring above act window.
4.Create a Menu for report make sure the correct rml path and resource model(For Pdf report).
report.rml(For Pdf report)
1.create a rml file.
2.make design changes such as styles,tables,layout etc…..
3.print field by calling objects and regular expression.