When (re)generating the stock.move.lots in the workorder, it should use the unit_factor on the move like everywhere else. This makes sure we do well with the explosion of phantom boms too. It is also important that if there is no operation_id given explicitly in the "consumed in operation" on the bom line, that it still generates the necessary stock.move.lots in the last work order. Also, in the work order it is better to set the quantities done already. That way we don't forget to consume them.