picking.weight = sum(move.weight for move in picking.move_lines
                                 if move.state != 'cancel')