Hello everyone !
I'm having an issue on overriding Create() and Write() methods...
Here is my code :
@api.model
def create(self, vals):
rec=super(Label, self).create(vals)
self._registerLabel(vals['real_id'])
return rec
def write(self, vals):
self._unregisterLabel(self.real_id)
rec=super(Label, self).write(vals)
self._registerLabel(vals['real_id'])
return rec
I'm having an issue now with the _registerLabel(labelid) method. When i edit a record in odoo, _registerLabel is well called But when i create a new one, the same method isn't.
Can someone explain me this please ? :)
Thank you !
Please, post the code of your _registerLabel method