Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5239 Zobrazení

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.

Avatar
Zrušit
Nejlepší odpověď

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

 

 

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
kvě 23
3254
3
čvn 17
8101
0
bře 15
4142
0
bře 15
7435
0
bře 15
3325