Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
4049 Visualizações

Is it possible to inherit OpenERP engine classes? For example, report.rml_parse or osv.fields? The purpose is behavior replacement of printing all reports. How can I do this? Maybe there are some methods like this(it's just thoughts, nothing else):

from openerp.report import rml_parse

class my_parser(object):
    ...blah-blah-blah...

rml_parse = my_parser

Or something like this:

from openerp.report import rml_parse

class my_parser(rml_parse):
    ...blah-blah-blah...

Last variant perfectly works with report in same module, but it don't work with another modules.

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
fev. 23
2243
3
nov. 22
13101
1
set. 22
2427
4
fev. 25
3220
1
ago. 24
2463