コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3333 ビュー

I am trying to override a method from JasperReports/JasperServer.py within my own module, I have the following class defined

class JasperServer():
    # tried all still doesnt work
    #_inherit = 'JasperServer'   
    #_inherit = 'jasper_reports.JasperServer'
    _inherit = 'jasper_report.JasperServer'

def start(self):
    # code goes here

JasperServer()

import statement for this class has been added to __init__.py
dependency for jasper_reports has been added to __openerp__.py of my custom-module

what am I doing wrong? I notice the original jasper code does not define any _name variables, does that mean it cannot be overriden?

I would prefer not to change the code directly into the original JasperServer.py if possible.

アバター
破棄
関連投稿 返信 ビュー 活動
4
2月 25
3480
1
8月 24
2591
2
11月 24
3919
3
10月 23
15351
2
2月 23
2834