Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3578 Weergaven

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
Annuleer

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?

Gerelateerde posts Antwoorden Weergaven Activiteit
1
feb. 22
2716
4
okt. 16
31004
1
dec. 15
6900
1
sep. 15
3723
1
jun. 15
695