Hi.
I want to refresh the rml from python, bacause I changed it from the code. How can I force to load into the system?
I try this:
f = open(rml_file,'r')
binary = f.read()
cr.execute("Update ir_act_report_xml Set report_rml_content_data = %s Where report_file = 'csysc_nhm_reports/report/account_print_nhm_invoice.rml'",(psycopg2.Binary(binary),))
f.close()
the rml_file is ok. I tested it the system can open close But without effect...
I try to catch the rml in other way from my py but also no effect....
openerp.report.report_sxw.report_sxw.rml = f.read()
super(openerp.report.report_sxw.report_sxw, self).rml =f.read() ???
So I want to manipulate the rml string, what is in part of report_sxw. Under pascal:
(Sender as Tobject).rml = variable
who can I do that under python??