Solved: It was because we had hidden "total cost" and "average cost" on the item head level. We do that because the main company currency is not the same as for this subsidiary. And those fields are in the main company currency for some reason..
So I show them on the form, but hide them with a workflow.