I have defined a field in my script that is _inherint res.partners
lookup_status = fields.Integer(string = "Lookup status",
tracking = True,
readonly = True,
default = 0)
The field is on the screen, it is internal by my script changed, when changed, the changed value is visible. The write function will not see the changed in the vals.
def write(self, vals):
if 'ep_lookup_status' in vals:
count = vals['ep_lookup_status']
if count == 0:
raise ValidationError(_('EP Lookup status cannot be 0'))
super().write(vals)
Why is the changed value of lookup_status not in vals, it should be. What to to
Is lookup_status and ep_lookup_status meant to be the same? What and how is it even changed?
Thanks for this :)