Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
4059 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
feb. 23
2255
3
nov. 22
13131
1
sep. 22
2437
4
feb. 25
3241
1
aug. 24
2471