Price rule problem

When i try to use price rule in invoice in the form of free product it gives the error AttributeError: ‘NoneType’ object has no attribute ‘options’.
I have managed to get it to work if i disable update stock. The issue seems to be that the second free product doesent have its accounting details entered. Even when i add it manuallyit doesent work it gives the same error.