Odoo Help


method Onchange Odoo 8.0

on 4/13/15, 9:59 AM 925 views

hi all,

I wonder why every time I make a method onchange always out erorr " One of the documents you are trying to access has been deleted , please try again after refreshing . " syntax that I made like this

def onchange_mata_kuliah(self,cr,uid,ids, mata_kuliah_id,context={}):

        if mata_kuliah_id:


            if mata_kuliah:

                return {









hi , you have to declare return value in the end of your method

Ajeng Shilvie
on 4/13/15, 11:15 AM
Alby Antony
On 4/13/15, 11:34 PM

make sure that you have a many2one reference on the field "mata_kuliah_id" to some other table and that table have a field named "name".

if yes try with a different database. 

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/13/15, 9:59 AM
Seen: 925 times
Last updated: 4/13/15, 11:34 PM