Odoo Help


How to force rml read

on 5/3/13, 1:04 AM 1,104 views


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),))

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??

Denes Nagy
On 7/18/14, 4:37 AM

Szia Laci!


Én nem tudok ebben segíteni, viszont harmadmagammal foglalkozunk egy ideje OpenERP-vel/Odoo-val és egyrészt szerintem tudok valakit, aki fog tudni segíteni a kérdésben, majd elküldöm neki, másrészt pedig keresünk olyan embert, akit komolyan érdekel az OpenERP/Odoo és szeretne kifejezetten/elsősorban erre épülő vállalkozást indítani velünk közösen. Érdekelne a dolog esetleg?

Jelenleg is van két futó projektünk, de természetesen, abban bízunk, hogy lesz még jó pár a jövőben.


üdv, Dénes

For feature reference, do you mind translating the answer into English? People who have the same question will end up on this page and have no clue what the answer was. Thnx!

21south, Ludo - 21South
on 7/18/14, 7:50 AM

Hi Dénes my mail for the backgroung info's is:kozmalg@gmail.com Regards

on 7/22/14, 6:28 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 5/3/13, 1:04 AM
Seen: 1104 times
Last updated: 3/16/15, 8:10 AM