Odoo Help

Welcome!

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

0

what attributes should be put in report_sxw.report_sxw(......)

By
R.sridevi
on 11/16/13, 2:48 AM 3,406 views

what attributes should be put in report_sxw.report_sxw(......) while creating report module....please help

3

Acespritech

--Acespritech--
839
| 3 2 6
India
--Acespritech--

Having 8+ years of OpenERP Experience. We are Specialized in OpenERP/CRM Solutions, software development, Web development, E commerce solutions & other open source solutions.


Skype : acespritech

Email : info@acespritech.com

Acespritech
On 11/16/13, 8:03 AM

Hi,

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")
  1. '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.
  2. 'sale.order' is an object. You need to specify object of report here.
  3. 'addons/sale/report/sale_order.rml' is the rml file path.
  4. parser=order, in this report file order is a class name. You can see the class in the link above
    class order(report_sxw.rml_parse):
  5. 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 header="False"

You can refer more reporting information here.

Thanks,
www.acespritech.com

thanks a lot.....i understood very well.....i created a report module for a module to print a form with out fetching any objects.....my issue is when i try to install a module xml architecture error i do not know where i am going wrong....please view this link and help me https://www.dropbox.com/sh/x90ykrocworffkz/rusLpiXGVE

R.sridevi
on 11/18/13, 7:04 AM

If this answer is right then please mark it as correct. For other issue I recommend you to ask another question with enough description.Thanks.

Acespritech
on 11/19/13, 2:53 AM

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 11/16/13, 2:48 AM
Seen: 3406 times
Last updated: 9/29/16, 4:29 PM