Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3556 Zobrazení

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 {}

Avatar
Zrušit

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?

Related Posts Odpovědi Zobrazení Aktivita
1
úno 22
2687
4
říj 16
30985
1
pro 15
6875
1
zář 15
3708
1
čvn 15
661