Skip to Content
Menu
This question has been flagged
3919 Rodiniai

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
vas. 23
2100
3
lapkr. 22
12924
1
rugs. 22
2357
4
vas. 25
2827
1
rugp. 24
2270