I tried to create and submit a purchase invoice in another instance and it worked. So the problem is only on my real (but still not in production) instance (cloud domain: tsuristudio).
For some strange reason, on my test instance (cloud domain: nununo) the warehouse accounts were all directly created under “Stock Assets” while on my real instance there is an account “All warehouses” in-between. But probably this is not the reason, right?