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 ?
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. :-)
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"?>
<template id="your_new_so_body" inherit_id="sale.report_saleorder_document">
Here's a link to module building instructions.
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: 1/16/15, 5:47 AM|
|Seen: 876 times|
|Last updated: 3/16/15, 8:10 AM|