0
votes

I have set the value default=1 for my many2one fields, now I would like to remove it or replace by an other function, however the affect seem maintain when the value still be set. Could you guy please explain to me what is happening with the field, and why even I try to create the new database the function still keep working? Thank for your time.

1

1 Answers

0
votes

if you change anything in the python you need to restard the server if nothing is happened then you didn't upgrade your module correctly and if you want to cancel the default value in the first database you cannot just remove it from the code but set it to False default = False this is the default value for every field if you change it then you need to return it by default = False because this information is stored in the database in ir.fields