Hi Everyone,
I am trying to create a computed field in Studio that is linked to two conditions, but I'm struggling to make it work.
I've used the below :
for record in self :
if record.x_studio_contract_par_sun ==False:
record['x_studio_commission_sun'] = 0
if record.x_studio_contract_par_sun ==True:
record['x_studio_commission_sun'] = record.x_studio_tarif_location * 0.10
Do you have any idea what I am doing wrong ?
I've seen maybe it should be linked to a control_var, but can't find info anywhere.
Thanks a lot for the help !