**Background information**
I have used custom fields to set up the following.
I created a selection field in the Sales Order defined like this:
[('1','< halve dag'),('2','> halve dag'),('3','1 dag'),('4','> 1 dag'),('5',' 1,5 dag'),('6','>1,5 dag'),('7','+/- 2 dagen')]
I have also created a field in project.task which is set up like:
[('1','3 uur'),('2','6 uur'),('3','8 uur'),('4','10 uur'),('5','12 uur'),('6','14 uur'),('7','16 uur')]
This field will get copied over from the Sales Order to the project.task through the project_mrp module (Create Task on SO).
Because the values are defined the same way, a field in the SO selected as "> half a day" can be converted to "3 hours" automatically under the tasks.
**Actual question**
I want to show my selection field on a custom report I created for the tasks. However if I just use "[[ o.x_worktime ]]" it will show the value behind the string. E.g.: "1", "2", "3", ...
I want to show the string behind the value on my print-out.
I tried to set it up the same way as the "Payment Term" under SO:
[[ (o.x_worktime and o.x_worktime.name) or '' ]]
But also this doesn't work.
Can anyone tell me how I can show this string behind the value with the Open Office Report Editor?
↧