Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4203 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
úno 23
2477
3
lis 22
13425
1
zář 22
2558
4
úno 25
3618
1
srp 24
2674