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

How to modify a report with a module?

By
Jairo Llopis
on 7/10/14, 5:54 AM 722 views

I'm adding a feature to quotations and sale orders to add related products.

I want those to appear in the PDF report. I know how to do so with OpenOffice, but how can I modify the report just by installing the module?

That way no extra configuration will be needed.

Thanks.

0

Ben Bernard

--Ben Bernard--
1083
| 4 3 6
Jakarta, Indonesia
--Ben Bernard--
Ben Bernard
On 7/17/14, 12:51 AM

I am using OpenERP 6.1. In this version I think you can not update report (sxw) by updating the related module (via --init or --update). If you have several database to update, this is what I will do :

  • save updated sxw file
  • use xmlrpc to object and call execute with model: ir.actions.report.xml and method: upload_method. This is the same method that is used by OpenERP Report Designer.

ref :

  • https://doc.odoo.com/6.1/developer/12_api/#xml-rpc-web-services
  • https://github.com/odoo/odoo/blob/master/addons/base_report_designer/base_report_designer.py#L45

 

 

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

1 follower(s)

Stats

Asked: 7/10/14, 5:54 AM
Seen: 722 times
Last updated: 3/16/15, 8:10 AM