Hi Kids
Im trying to make a computed field and im looking for some assistance
I have 3 prices in a model
Price_1
Price_2
Price_3
a field called selector with 3 values: No repair, Processing, Device repair
and my final float field called Final Price.
Im looking to get in the Final_Price field the price based on the selection.
If no repair then the computed field will get the Value of Price_1
If Processing then the computed field will get the Value of Price_2
If Device repair then the computed field will get the Value of Price_3
Thank in advance
this is what i have so far but i get error at elif line
for record in self:
if str(record.x_studio_repair_category) == '1':
record['x_studio_final_repair_price'] = record.x_studio_no_repair
elif str(record.x_studio_repair_category) == '2':
record['x_studio_final_repair_price'] = record.x_studio_processing
else str(record.x_studio_repair_category) == '3':
record['x_studio_final_repair_price'] = record.x_studio_device_repair