Added debug statement to upload_document
Refined domain filter on get_stock_pickings to avoid having other picking types returned to result page history.