Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

method onchange couldn't be defined by openerp

By
Moahmed Richi
on 8/11/15, 6:47 AM 399 views

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

Drees Far
on 8/11/15, 7:26 AM

Can you please provide a snippet of your XML code?

IBS
on 5/12/16, 1:31 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/11/15, 6:47 AM
Seen: 399 times
Last updated: 8/11/15, 7:26 AM