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

I would charge an information automatically when i choose another, when I add this fonction to my class i got that error No handler found.

this is my code:

def onchange_medium(self, cr, uid, ids, division_id, context=None):

if division_id:

division = self.pool.get('standard.division').browse(cr, uid, division_id, context)

return {'value':{'medium_id':division.medium_id.id,}}

return {}

アバター
破棄

Try this: def on_change_medium(self, cr, uid, ids, division_id, context=None): if division_id: division = self.pool.get('standard.division').browse(cr, uid, division_id, context) print division print division.medium_id print division.medium_id.id return {'value':{'medium_id':division.medium_id.id,}} return {} Tell me what you have got please

Can you please provide a snippet of your XML code?

関連投稿 返信 ビュー 活動
1
2月 22
2659
4
10月 16
30944
1
12月 15
6847
1
9月 15
3667
1
6月 15
634