Let us take example of
Sale Order report. Here is the link of sale_order.py report file
Here is the list of basic arguments specified in the last of above link:
report_sxw.report_sxw('report.sale.order', 'sale.order', 'addons/sale/report/sale_order.rml', parser=order, header="external")
'report.sale.order'is a report name. In sale module report name is sale.order but you have to specify report. compulsorily before report name.
'sale.order'is an object. You need to specify object of report here.
'addons/sale/report/sale_order.rml'is the rml file path.
parser=order, in this report file order is a class name. You can see the class in the link above
header="external". It is optional to write. Headers can be of three types : (1) internal (2) external (3) internal_landscape. These three are defined in Company's Header/Footer part. If you dont want any header you can specify
You can refer more reporting information here.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 11/16/13, 2:48 AM|
|Seen: 3177 times|
|Last updated: 9/29/16, 4:29 PM|