Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lut 23
1986
3
lis 22
12718
1
wrz 22
2272
4
lut 25
2334
1
sie 24
1973