Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3874 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 23
2054
3
thg 11 22
12875
1
thg 9 22
2322
4
thg 2 25
2653
1
thg 8 24
2223