You cannot change the unit of a stock lot which has stock moves. You cannot change the quantity of a stock lot which has stock moves. You cannot use more than %(quantity)s%(unit)s of lot "%(lot)s" in "%(name)s".