Skip to Content
Menu
This question has been flagged
1866 Views

Hi,

I have created a class which is inherited from the "res.users" class :

class User(models.Model):

_name = 'affichage2.user'
_inherit = 'res.users'

Inside this i have modified the creation function :

#this is the solution
@api.model
def create(self, vals):
.
.
.

My modification have worked for me well, untill i have created another class which is inherited from "res.users". I tried to delete this class, but i am still have the same problem : when i create new user my function didn't called ...

Avatar
Discard