When purchase order created through a stock rule job is cancelled, it does not set the 'Pending Delivery' flag on the stock rule to 'false'DescriptionWhen a Purchase Order is created by the Stock Rule job, then the 'Pending Delivery' flag is set to 'true'. However, if that Purchase Order is cancelled, then the 'Pending Delivery' flag does not revert back to 'false'.CauseThis is an expected behavior.ResolutionWhen a Purchase Order is cancelled the 'pending_delivery' flag is not set to 'false', this is because, on cancellation of purchase order(which is created to fulfill low stock) ,if we reset the flag, a new purchase order would be created next day when "Stock rule runner" job runs. This would create an infinite loop kind of situation. Hence we do not reset the flag until quantity of assets is above threshold. If your use case needs reset of this flag, then you can update it manually.