跳至內容
選單
此問題已被標幟
3834 瀏覽次數

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
2月 23
2032
3
11月 22
12800
1
9月 22
2307
4
2月 25
2562
1
8月 24
2137