Hello,
I made an addon and am trying to create a production order from order recommendation. I have an error that is below:

The properties of my items are:
ItemCode : "M1" ,Inventory and Sales Item, Planning method: MRP - Make
ItemCode : "M2" ,it's only Sales Item, Planning method: MRP - Make,
ItemCode : "M3" ,Inventory, Sales and Purchase Item, Planning method: MRP - Purchase
And the product tree M1 --> M2 --> M3
What is the reason of this error? When I try to create production order of M1 on standard MIP without my addon it works succesfully.