Hello everybody
I need to add python code for my field:
I'd like a boolean_toggle field that is set to true if warranty date - current date is less than 2 years.
can you help me?
because I have some errors with
for record in self:
if datetime.now().date() - record.x_studio_date_achat_apisolis
record['x_studio_garantie'] = True
else:
record['x_studio_garantie'] = False
thanks