This question has been flagged
2 Replies
3484 Views

hello,

in openerp v7

I can't update the report PDF sale quotation, I open file /addons/sale/report/sale_order.rml but no change in pdf

I succeeded in updating the report PDF invoice, i open file /addons/account/report/account_print_invoice.rml

Can you help me ? How can we ensure that the file RML is the good one ?

Avatar
Discard

Has the module base_report_designer by any chance installed in the database?

Author Best Answer

I found solution :

1.Open pgAdmin. check your report id in ir_act_report_xml.

2.Open a query.

SELECT id FROM ir_act_report_xml WHERE model = 'sale.order';

3.put the id (ir_act_report_xml.id) result into place of your_id

update ir_act_report_xml SET report_rml_content_data = NULL WHERE id = your_id;

4.Run and enjoy the rml edition. :-)

Avatar
Discard
Best Answer

Alternatively, you could create a module and make your changes in code.  In your XML file, override the view like this:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
    
    <template id="your_new_so_body" inherit_id="sale.report_saleorder_document">

    ...

    </template>

</data>

</openerp>

Here's a link to module building instructions.

Avatar
Discard