コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4005 ビュー
#Global Variable
context_data = None # contains dictionary

@api.model
def fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False):
res = super(sales_dash_report, self).fields_view_get(
view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
global context_copy

if view_type == 'form' and context_copy.get('key'):

#some code to execute

return res


While execute on local machine it executing normal but while try to run on production server then it gives an error that context_data (None object) has no attribute get.

Please help to solve this issue.

アバター
破棄
関連投稿 返信 ビュー 活動
0
8月 15
3198
3
6月 22
14145
4
9月 16
3300
5
4月 16
4004
0
5月 15
73